• Post Reply Bookmark Topic Watch Topic
  • New Topic

multiple windows in single Jframe  RSS feed

 
sushant patil
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody.

i am developing a project in swing. i want show multiple windows in single frame like eclipse is showing one window for class files, one window for package explorer, another for console. i know it is possible to add multiple frames using JInternalFrame, but i want show same way that eclipse do and it should be resizable. Please is there any example to do that.

Thank you
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All you have to do is add more than one component to a container, as shown in the Panel tutorial. You will have to do this a lot in any non-trivial GUI.
You probably want to have a look at SplitPane which allows you to resize the two sections.
 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ye, the previous reply was right for the literal meaning of your question, but I wonder did you actually wanted a MDI kind of thing in which case you should use DesktopPanes and JInternalFrames

Cheers,
Suraj
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!