|
-
March 30th, 1999, 07:11 PM
#1
Dialog control
Hi,
I came from Visual C++ to Java. I am developing one application,
which has a form. In the form user selects any one of the listed option,
it should display different controls.
for example,
if user option is personal, it should ask for His/Her Name or
if user option is Business, it should ask for business Name.
But these controls are not shown until user selects any option.
Please help me any one.
Thanks in advance,
Nataraj.
-
May 27th, 2001, 11:14 PM
#2
Re: Dialog control
you do is:
create 3 different radio button and add it into a ButtonGroup();
then you can get the value of the option.
base the option call up the dialog.
example:
ButtonGroup g = new ButtonGroup();
g.add(radiobutton1); //assume you have created this Radio Button
g.add(radiobutton2);
g.add(radiobutton3);
if(g.hasFocus()){
// if return true
//pop up dialog
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|