Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Multi-pane User Interface

 
Rajiv Jackson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! I am trying to figure out how to build a more advanced UI using a multi-pane interface similar to Togerther Control Center or Eclipse. While I can nested JSpliPanes... it is just not the effect I want to have. Can anyone direct me to any resources that can describe how to build a multi-pane UI in Java?
Thanks
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean to have multiple frames floating around inside one big frame then have a look at JDesktopPane and JInternalFrame.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"rutherware" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Thanks! and welcome to the JavaRanch!
 
Rajiv Jackson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chantal,
Thanks for the reply, but the functionality of JDesktopPane and JInternalFrame for floating frames is not what I was looking for. I guess the best way to describe what I am looking for is the functionality provided by JSplitPane if JSplitPane supported n number of panes as opposed to just two (or like a multiframe HTML page).
While I realize I can nest JSplitPanes, nesting them does not have the same look or functionality that a multi-pane applications like Eclipse has. In my search for this I have seen a reference to a WindowSash or Sash object in other languages but I am still trying to understand how to program that functionality in Java.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Eclipse UI is pretty advanced... it doesn't just use something like split panes... it's using some kind of dockable window, since you can grab sections and pull it completely out of the main application... You can look at the Eclipse code to see how they are doing this, since Eclipse is now an Open Source project. But this wouldn't tell you how to do this in pure Java, since Eclipse is built using SWT...

Java supports dockable components, just look at the JToolBar class... However, you have to implement quite a framework of classes to get this to work in something like Eclipse.

As far as JSpitPanes go... the following UI pretty closely approximates what is seen in some of Eclipse's views...

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!