-
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.
-
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
}