473,548 Members | 2,683 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Deprecated hide and show for Choice

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
2 4687
"Doug van Vianen" <co*****@shaw.c a> wrote in message
news:Vp60c.6219 37$JQ1.143180@p d7tw1no...
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.Compon ent 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(bool ean b)
Jul 17 '05 #2
Thank you for the information and the reference.
"Ryan Stewart" <zz********@gSP AMo.com> wrote in message
news:N_******** ************@te xas.net...
"Doug van Vianen" <co*****@shaw.c a> wrote in message
news:Vp60c.6219 37$JQ1.143180@p d7tw1no...
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.Compon ent 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(bool ean b)

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
148536
by: Steve Speirs | last post by:
Hi I'm trying to show/hide a simple piece of text and a text field on a form based on what choice is made from a drop down box. <select name="dropdown" size="1"> <option selected value="">Please make a selection</option> <option value="1">Choice 1</option> <option value="2">Choice 2</option> <option value="3">Choice 3</option>
18
2264
by: Michael Skind | last post by:
Hello, I use a simple Table : <TABLE> <TR 1> <TD></TD> </TR> <TR 2> <TD></TD> </TR>
2
12175
by: MOHSEN KASHANI | last post by:
Hi, I am trying to hide some form elements in a form by default and show/hide depending on which radio button is clicked. This is what I have but it is not working: <head> <style> ..noshow { display: none; }
3
2816
by: Tony | last post by:
At http://www.quirksmode.org/js/placejs.html I found a discussion on how & where to place your javascript. Toward the bottom of the page, PPK has a section titled Deprecated: Direct JavaScripts, with a small blurb that says "Do not use direct JavaScripts. This section is only maintained for historical reasons." For clarity, he is...
5
8417
by: ali | last post by:
Hello every one i need you help regarding div hide and show. i am having a link like <a href="#" onClick="expandWin()">show/hide </a> <div id=showHide> </div> within div i have lots of form tags and div elements say n. The problem
1
4152
by: pamate | last post by:
hi, I want to show hide layers. I am able to show and hide layers but i am facing problem that, cant view the cursor in Mozilla,but i can type in input text box, its overlapping the layers. I don`t want to change the way i have used to show and hide layers. check down code :- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
2
2133
by: dusk | last post by:
Hi, I have a page with lots of hidden divs which are revealed based on choices made at each 'layer'. So I've used naming convention which represents the order in which each div becomes visible - 'a100', 'a200', 'a300' for the first 'layer'; 'b100', 'b200', 'b300' for the second; 'c100, 'c200', 'c300' for the third ... etc I'm writing...
2
5903
by: shapper | last post by:
Hello, In a simple HTML page, index.html, I have: - 3 anchors: A, B and C; - 3 divs: dA, dB and dC; Each anchor should load, when clicked, index.html but anchor A should make dA visible and the other invisible, anchor B should show dB and hide the others.
2
2743
by: richard | last post by:
I'm working on a menu system where I have a 3 column table affair. On start, you see a menu list in column 1. Column2 will have some general information. Column3 is an iframe for final data input. About every damn thing I've seen on how to do this is the pure bare bones basics. That is, click button 1 to hide, click button 2 to show. Not...
0
7438
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7707
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7951
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6036
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5082
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3495
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.