Results 1 to 2 of 2
  1. #1
    $@ndeep is offline Member
    Join Date
    Aug 2013
    Posts
    1
    Rep Power
    0

    Question freezing parent Jframe on opening another Jframe from parent frame

    i have 2 jframes in my java desktop application. when i click on a button in first jframe the second jframe pops out. But the problem is that when i am working in jframe2 any changes on jframe1 should not be effected. i have used setAlwaysOnTop(true) for the object of jframe2,, but when i click on any button in jframe1 changes are effected. How to avoid this?

    Any help is greatly appreciated.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,252
    Rep Power
    19

    Default Re: freezing parent Jframe on opening another Jframe from parent frame

    Moved from Advanced Java. This is in no way an 'advanced' question either.

    Don't use a second JFrame, use a modal JDialog.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Jwindow covered by parent Jframe title bar .
    By Anil_502 in forum AWT / Swing
    Replies: 1
    Last Post: 08-20-2012, 02:03 PM
  2. Replies: 7
    Last Post: 12-27-2011, 03:06 AM
  3. Replies: 1
    Last Post: 12-20-2011, 02:05 PM
  4. Replies: 3
    Last Post: 06-14-2011, 01:13 AM
  5. JFrame and CardLayout -- Wrong Parent
    By AutoRobin in forum New To Java
    Replies: 11
    Last Post: 04-21-2011, 12:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •