I'm trying to add a JFrame
(bar) to a JFrame
(foo), which would force bar
to be closed before foo
can be intergrated with once again.
Such as this, where the "About Eclipse" frame must be closed before I can write code once again:
Something like this won't do the trick (simplified):
JFrame foo = new JFrame("Base");
JFrame bar = new JFrame("About");
foo.add(bar); // IllegalArgumentException: adding a window to a container
How to achieve this?