aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Multi-console interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Multi-console interface" Watch "Multi-console interface" New topic
Author

Multi-console interface

Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
I am going to create a complex GUI, for a securities trading application game. The user will have different consoles, for example, there will be consoles for:
- trading stocks
- looking at ones account
- getting news bulletins
- financial calculators
etc
For any given console, there will be different versions the console. Not every feature will be available to everyone, since the players will have to "buy" the components. The components will talk back to either a database directly or to a middle layer web server or application server.
How should I do this?
I'm thinking I should create a JWindow and then put each console in a JFrame within the window. I'm thinking JSPs probably aren't right, because the interface will be changing during the course of the game as the player buys more tools. Also, players may want to layout the tools differently, putting them where they are most convienent.
Does that sound right? Any other suggestions? Any recommended tools for this?

--Mark
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Sorry Mark...

A JWindow is just a JFrame without any decorations... or a JFrame is a JWindow with decorations, depending on how you look at it... In any case, you can't place top-level components(which JFrame and JWindow are) inside other components like that...

You may want to look into JDesktopPane and JInternalFrame to make an MDI (Multiple Document Interface) kind of like MS Word. Your JDesktopPane will be contained inside a top level component, like a JWindow or JFrame, and the JDesktopPane can contain multiple JInternalFrames. (Which can look just like JFrames... only they are not top-level components...)

You could also use JTabbedPane if the user only needs to see one screen at a time... or yout could nest JSplitPanes containing the screens if you want the user to see all the screens at the same time...

There are lots of different ways to do this...


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Bill Liteplo
Ranch Hand

Joined: Oct 16, 2002
Posts: 88
First of all, Mark, you should employ a certain friend of yours from the other side of Mass Ave. He has many bright ideas.
As Nathan said, there are so many ways to do this. As you know, when starting a project one should gather some customer data first, use case scenarios, etc. if possible. In lieu of that, make some basic UI decisions. For example, do users like many windows, one main window with some helper windows, MDI, etc.? Will this be the only/main application they will need to run/look at at once on their desktop?
As far as tools, well, I don't have to mention my little plug.
Bill
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
Yes, yes, JDesktopPane, that's the ticket!
I think that's what I want. Just as is done in MS Word, where I can have multiple documents and open one, and minimize others, or layout multiple documents to be shown at once--and MDI (yay, I learned a new term, even better another TLA :-p).
I'm familiar with tabbed panes and split panes, but wanted more flexibility.
Thanks for the help.

--Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multi-console interface