CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 1999
    Posts
    3

    Going From One dialog to another



    I ahve an applet in which I have a dialog which has two buttons. I just want to go to another dialog by clicking a button.When in the action I say

    if(arg.equals("Next") {

    AnotherDialog f = AnotherDialog(this,"Next");

    f.show();

    }

    It is giving a compiler error.

    Can you help?

    Thanks in Advance,

    bsat

  2. #2
    Join Date
    Apr 1999
    Posts
    10

    Re: Going From One dialog to another



    It is an extremely bad idea to open dialogs from applets.

    This is because applets could fake system dialogs and request passwords...etc.

    That said, my guess is that the first dialog is modal... but you should specify

    more details on the error.

  3. #3
    Join Date
    Mar 1999
    Posts
    3

    Re: Going From One dialog to another



    Hi,

    Thank you.Even from the application also I am facing the same problem.Eventhough I make it modeless,

    It is saying about the first parameter i.e.

    AnotherDialog fd = new AnotherDialog(parameter1,parameter2);

    I think the problem is with parameter1.What i have to pass to it?

    Thank you,

    Satyendra

  4. #4
    Join Date
    Mar 1999
    Posts
    19

    Re: Going From One dialog to another



    Hi satendra

    The problem that u facing can be solved if u do foolowing things


    If ur using awt-event delegation model then the "this" reference

    should be the frame object-reference . I think ur implementing following code

    in listener class so make some arrangement to pass the object of calling

    frame to that listener class . then it will be ok


    ======

    if(arg.equals("Next") {

    AnotherDialog f = AnotherDialog(this,"Next");

    f.show();

    }

    ======

    If u till not getting proper result . Then send ur code to me

    at : [email protected] or

    : [email protected]


    best wishes


    sunil



  5. #5
    Join Date
    Mar 1999
    Posts
    3

    Re: Going From One dialog to another



    Hi,

    Thank you for ur response. I got the problem solved.

    Satyendra

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