Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java MDI Style application help wanted

807354Oct 22 2010 — edited Oct 22 2010
Dear All

I'm fairly new to Java and I've found some stuff out about Swing and JDesktopPane and JInternalFrame and stuff like that. What I'd like to do is to develop an app that uses those but the examples I've come across are all a bit simplistic and basically use pretty much a single class with internal classes to handle the frames. I'm assuming that a "production quality" MDI style app would separate classes out properly.

If any of you can point me to a relatively simple, but well-structured app that uses JDesktopPane and JInternalPane that would be really useful. Some of the particular features I'd like to understand are:

1) Basic structuring of an app like this (I think this is one of the main problems I've got at the minute with Swing - I'm not really sure how you fit all the classes, dependencies and references together and all the examples in books and tutorials seem to bundle everything inside a single class to avoid that issue!)

2) Using threads and, e.g. SwingUtilities.invokeLater or SwingWorker inside the JInternalFrame

3) Updating the UI from inside the JInternalFrame

4) Handle UI events inside the JInternalFrame (e.g. mouse clicks, menu actions etc)

5) Having a "log" pane on the main desktop

6) Having JInternalFrames of different types (well, where the main content components are different and have different uses)

7) Having different main frame menu bars for the different types of internal frames

That's about it. If anyone's got an otherwise simple but well structured app they could let me see the code to that has features like this in it I think it will help me a lot and it will be very much appreciated. Obviously if I'm barking up the wrong tree here (as I understand how this sort of thing is done in MFC) please let me know. I may be expecting more than can be achieved currently with Swing.

Thanks in advance for your help.

John

PS - I've been writing software professionally since 1987 so I shuld hopefully understand most of what you tell me :-)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 19 2010
Added on Oct 22 2010
2 comments
298 views