Results 1 to 4 of 4
Thread: jswing window problem
- 06-25-2010, 07:13 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 10
- Rep Power
- 0
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
- 06-25-2010, 07:56 AM #2
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
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.
-
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.
-
Similar Threads
-
Need to pass a value from a parent window to a pop up or child window
By blackpanther in forum Advanced JavaReplies: 4Last Post: 01-10-2010, 07:48 AM -
Problem resizing JPanel on window resize
By Nyet in forum AWT / SwingReplies: 4Last Post: 11-27-2009, 03:13 AM -
window.open problem
By praveenkumar14 in forum NetBeansReplies: 2Last Post: 10-12-2009, 11:18 AM -
change url in parent window from child window
By rakesh_n_mehta in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 07-09-2009, 12:17 PM -
how can i move one frame window to another window
By santhosh_el in forum AWT / SwingReplies: 8Last Post: 06-10-2009, 03:36 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks