CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Dialog control

  1. #1
    Join Date
    Apr 1999
    Location
    singapore
    Posts
    3

    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.

  2. #2
    Join Date
    Apr 2001
    Posts
    9

    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
  •  





Click Here to Expand Forum to Full Width

Featured