-
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
-
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.
-
Cross-post locked. OP, please do not cross-post.