Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2010
    Posts
    10
    Rep Power
    0

    Default jswing window problem

    hii..
    thank you all who posted replies to my previous problems..
    they helped me to learna a lot..

    now i am having a problem..
    i have made a GUI using Jswing..
    it is completely ready..
    but i am having following problem..
    wen i click a button in the window..
    it needs to popout another window...

    so wen i click the button another window pops out..
    but wen u close the window which is popped out
    whole program shuts down..
    i dont want that
    i want that only te popped out window gets closed...



    note- the window that is pooped out is the output of Jfreechart and outputs a graph.. in another window..
    so its like i give parameters in a window..
    and see the numeric results in same window but the graph is pooped out..
    so wen i close the graph
    whole program shudnt be closed...



    please help

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    How did you implement the window?
    Generally you can control the default close operation of Frames and you can override listeners for the close button click.

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    I second all of r035298x's recommendations. Also, it's usually best to make the second window a modal/non-modal JDialog rather than another JFrame.

    Finally, in the future, please avoid non-standard abbreviations as they can be difficult for non-native English speakers to interpret. Thanks for your cooperation.

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

Similar Threads

  1. Replies: 4
    Last Post: 01-10-2010, 07:48 AM
  2. Problem resizing JPanel on window resize
    By Nyet in forum AWT / Swing
    Replies: 4
    Last Post: 11-27-2009, 03:13 AM
  3. window.open problem
    By praveenkumar14 in forum NetBeans
    Replies: 2
    Last Post: 10-12-2009, 11:18 AM
  4. change url in parent window from child window
    By rakesh_n_mehta in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 07-09-2009, 12:17 PM
  5. how can i move one frame window to another window
    By santhosh_el in forum AWT / Swing
    Replies: 8
    Last Post: 06-10-2009, 03:36 PM

Posting Permissions

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