This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
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?
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...
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
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
Joined: Dec 04, 2000
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.