javaswinguser-interfaceigoogle

How to make iGoogle like UI using java swing


I am developing desktop GUI application using java swing. And I want to show several "subwindow" on the same window(JFrame). And I want the layout is similar to iGoogle such that user can add and remove new subwindow. To be simple, I assume all the "subwindows" have the same size and similar content(all are showing chart). By the way, the maximum number of "subwindow" would not be a huge number. I think it is less than 8.

  1. if there is no drag and drop, can I just use grid layout to implement it?
  2. if there is drag and drop, what is the easy way to do it?

Thank You very much.

FYI: iGoogle http://www.google.com.hk/ig


Solution

  • I don't know what iGoogle is, but it sounds like you should be using internal frames. See the section from the Swing tutorial on How to Use Internal Frames.