Search code examples
javaswingjframejinternalframe

Java - Another JFrame On Same Window


What I want is to make a new JFrame, keeping my current JFrame visible, but not create a new window/program. I can't explain it well, so here is a picture of what I mean:

http://screensnapr.com/e/mkCMlm.png

Sorry if this is confusing in any way. Any help is appreciated.


Solution

  • You can try http://docs.oracle.com/javase/tutorial/uiswing/components/internalframe.html

    Also you can try to use a dialog rather than frame for the new window.