By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,871 Members | 2,418 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,871 IT Pros & Developers. It's quick & easy.

Deprecated hide and show for Choice

P: n/a
Hi,

I am using Choice to provide a dropdown menu in an Applet. I create the
Choice and then need to hide it until it is needed and then show it. I use
c.hide() and c.show() where 'c' is the choice.

This works fine except that when I use javac to compile the code I get the
message that I am using a deprecated API. That is, hide() and show() for
choices (and presumably other items) is no longer used. I have tried doing a
search to find the new way of doing this but do not get any useful results.

Can someone tell me how to hide and show a choice dropdown menu using newer
code?

Thank you.

Doug van Vianen
co*****@shaw.ca
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Doug van Vianen" <co*****@shaw.ca> wrote in message
news:Vp60c.621937$JQ1.143180@pd7tw1no...
Hi,

I am using Choice to provide a dropdown menu in an Applet. I create the
Choice and then need to hide it until it is needed and then show it. I use
c.hide() and c.show() where 'c' is the choice.

This works fine except that when I use javac to compile the code I get the
message that I am using a deprecated API. That is, hide() and show() for
choices (and presumably other items) is no longer used. I have tried doing a search to find the new way of doing this but do not get any useful results.
Can someone tell me how to hide and show a choice dropdown menu using newer code?

Thank you.

Doug van Vianen
co*****@shaw.ca

The JavaDocs are your friend:
http://java.sun.com/j2se/1.4.2/docs/api/index.html

The hide and show methods of java.awt.Component have been deprecated for a
*long* time. Who told you to use them? The proper way to set the visibility
of a component is setVisible(boolean b)
Jul 17 '05 #2

P: n/a
Thank you for the information and the reference.
"Ryan Stewart" <zz********@gSPAMo.com> wrote in message
news:N_********************@texas.net...
"Doug van Vianen" <co*****@shaw.ca> wrote in message
news:Vp60c.621937$JQ1.143180@pd7tw1no...
Hi,

I am using Choice to provide a dropdown menu in an Applet. I create the
Choice and then need to hide it until it is needed and then show it. I use c.hide() and c.show() where 'c' is the choice.

This works fine except that when I use javac to compile the code I get the message that I am using a deprecated API. That is, hide() and show() for
choices (and presumably other items) is no longer used. I have tried
doing a
search to find the new way of doing this but do not get any useful results.

Can someone tell me how to hide and show a choice dropdown menu using

newer
code?

Thank you.

Doug van Vianen
co*****@shaw.ca

The JavaDocs are your friend:
http://java.sun.com/j2se/1.4.2/docs/api/index.html

The hide and show methods of java.awt.Component have been deprecated for a
*long* time. Who told you to use them? The proper way to set the

visibility of a component is setVisible(boolean b)

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.