Re: Deprecated hide and show for Choice
From: Ryan Stewart (zzanNOtozz_at_gSPAMo.com)
Date: 02/29/04
- Previous message: someone: "Re: HTTPS client throws "javax.net.ssl.SSLHandshakeException: unknown certificate""
- In reply to: Doug van Vianen: "Deprecated hide and show for Choice"
- Next in thread: Doug van Vianen: "Re: Deprecated hide and show for Choice"
- Reply: Doug van Vianen: "Re: Deprecated hide and show for Choice"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 28 Feb 2004 18:27:48 -0600
"Doug van Vianen" <courses@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
> courses@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)
- Previous message: someone: "Re: HTTPS client throws "javax.net.ssl.SSLHandshakeException: unknown certificate""
- In reply to: Doug van Vianen: "Deprecated hide and show for Choice"
- Next in thread: Doug van Vianen: "Re: Deprecated hide and show for Choice"
- Reply: Doug van Vianen: "Re: Deprecated hide and show for Choice"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|