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

    How do you make a JFrame modal?

    There's a parm to do this for JDialog, but haven't found anything on how to do this for a JFrame.


  2. #2
    Join Date
    Apr 1999
    Posts
    64

    Re: How do you make a JFrame modal?

    I do not see a way either.

    What I did was add a JOptionPane to the JFrame.

    The JOption frame is modal.


  3. #3
    Join Date
    Mar 2000
    Posts
    123

    Re: How do you make a JFrame modal?

    I tried a variation of your response with JDialog, but lost some of my JFrame functionality. Will tinker with it. Thank you for the hint.


  4. #4
    Join Date
    May 1999
    Location
    Pune, MH, India.
    Posts
    453

    Re: How do you make a JFrame modal?

    Well there is no direct support in Java for making JFrame modal. However using 'wait' and 'notify' in your sub-class of JFrame, you might be able to achieve that effect.

    - UnicMan
    http://members.tripod.com/unicman

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