Article View: borland.public.jbuilder.java.swing
Article #8394Re: JFrame and JDialog (Very Difficult Question)
From: X_Aki Nieminen_X
Date: Mon, 18 Sep 2000 00:00
Date: Mon, 18 Sep 2000 00:00
54 lines
2852 bytes
2852 bytes
Our end-users like a new concept of windowing system. They don't want to use a traditional MDI approach anymore. Several ERPs are doing the same way, they do not not create internal MDI frames, but always open a top-level window for each frame. It is very easy to switch windows only by clicking the button at taskbar. I suggest you to create similar Java application as it tends to work better, and of cource Swing alternatives for frames and dialogs. Use JFrame for frames and JDialog for modal dialogs. Application's main window looks clumsy if you use pull-down menu. It has nothing else, but empty window body and menu at the top of it. This was my first implementation, but I modified it to have a tree component. Tree represents menu hierarchy, so window body is in real use. This approach does not necessary require any pull-down menus. Let me know if you need an example code for main window's tree handling. Menu entries can be loaded from textfile at startup. >Thanks for your detail information! >Honestly, we are thinking using JFrame or MDI application with JInternalFrame? >I would like clarify that your user like JFrame or MDI? > >Betty > >X_Aki Nieminen_X wrote: > >> Should you use MDI application with JInternalFrames in it? >> >> I have a project, where we convert old native MDI application to Java. I >> made a decision, that it is more feasible not to use MDI application. >> We have FrameMain window with tree structure displaying the menu hierarchy. >> Users can open windows by clicking the tree leafs. Each window is JFrame, so >> task bar has several buttons in it. I have found this very convinient after >> longer usage. It is very easy to jump from one window to another using the >> task bar buttons. Buttons have a text, which says the "title of window" so >> proper window is found immediately. >> >> MDI applications tend to have problem with several windows overlapping each >> other. It is annoying to move them around just to find a one window. Doing >> so means, that other windows must be moved back when continuing working with >> them. Only few end users realize the meaning of "window" menu entry. It is >> more general and intuitive to have buttons in a task bar for each opened >> window.
Technical Details
Message-ID:
<39c608a0_1@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39BD8DC4.15B1257E@net.polyu.edu.hk> <39bf981a$1_2@dnews> <39C03CE0.FB8862A0@net.polyu.edu.hk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,bf46e48d4e441390 X-Google-Attributes: gid111d45,public From: "X_Aki Nieminen_X" <no@email.abc> Subject: Re: JFrame and JDialog (Very Difficult Question) Date: 2000/09/18 Message-ID: <39c608a0_1@dnews> X-Deja-AN: 671173148 References: <39BD8DC4.15B1257E@net.polyu.edu.hk> <39bf981a$1_2@dnews> <39C03CE0.FB8862A0@net.polyu.edu.hk> X-Trace: 18 Sep 2000 05:20:48 -0800, 194.197.151.34 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3