Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Implementing Dashboard to centralize different swing editors  RSS feed

 
Manupriya Sinha
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We have a Swing application that has different editors. We want to have a dashboard as single point of entry. This dashboard is a JFrame that has a menu bar. On selecting the menu items, respective editors open up. Currently the new editor opens up as a seperate window.

As a part of requirement, we want to be similar to web application and do not want different editors to open up in new windows. We would want the dashboard window to be replace with the new window.

We are not in favor of card layout, because there are not much back and forth movement that we envision.

Another option is using JInternal frame. But as per my understanding is, internal frames is for opening up multiple internal frames. But our requirement is to replace one window with another seamlessly.

One of the other option is to remove the contentPane of Jframe with new content. This is the one i am planning to use.

Let me know if my thought process is wrong... and what should be preferred approach?? Is their any other alternative?? This question is put up at another forum as well - http://forums.sun.com/thread.jspa?threadID=5404210&tstart=0

Regards,
Manu
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
really sounds ideally suited to a CardLayout
(which is just a JTabbedPane without the tabs, in your scenario the tabs are replaced by menu items)

[EDIT]

I just love wasting my time

http://forums.sun.com/thread.jspa?threadID=5404210&tstart=0

won't happen again (personal ignore list +1)
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
 
Manupriya Sinha
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry... !! I understand. Actually I had thought of including the link from the Java Swing forum and I missed out on that.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!