Article View: borland.public.jbuilder.java.swing
Article #8502Re: JFrame and JDialog (Very Difficult Question)
From: Betty
Date: Thu, 14 Sep 2000 00:00
Date: Thu, 14 Sep 2000 00:00
75 lines
4163 bytes
4163 bytes
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? > > Do keep in mind, that JInternalFrame is not a real native window in > operating system so you cannot take "print screen" from the active window. > You will always get "print screen" from entire Java application (main window > + internal frames). > > 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. > > Only feature I would like to see is an ability to open JFrame as modal. > JDialog does not have min/max buttons, so it is not always best possible > solution (but only solution, if must have a modal windows in Java, > unfortunately). > > My advice is to take same approach as I did. Our end users like this new > system more better than previous one. It is true, that their first > impression was "we don't like this, we want old-style windows". Changes are > a pain sometimes. But after few days, they realized the true benefit of the > new windowing system and never want to go back. > > There are some more differences between JFrame, JDialog and JInternalFrame. > It would nice to have a list of different features. This is my start: > JFrame: > * opened as native OS window (can take "print screen") > * displays a button in task bar > * has min/max/close icons at top-right corner > * cannot be opened as modal (=blocks GUI until is closed) > > JDialog: > * opened as native OS window > * does not display a button in task bar > * does not display min/max icons at top-right corner > * requires a frame as parent window (thought, can be invisible window) > * can be opened as modal > > JInternalFrame > * used within MDI application (within main Frame window) > * is not a native OS window > > > My Platform is Window environment.... > > When I create a JFrame, I find that there is display in the Task Bar(at > >the bottom). > > When I create a JDialog, there is no display in the Task Bar(at the > >bottom). > > In my project, I would like to create a JDialog/JFrame but without > >displaying anything in the Task Bar. > > I think the JDialog can achieve it. However, it hasn't provided any > >minimze, maximize button at the right > > hand corner. For JFrame, it do provide the minimize, maxiimize button > >at the right corner but it display > > in the Task Bar. > > So, How can I achieve both points (1-not display in the Task Bar, > >2-provide minimize and maximize button)?
Technical Details
Message-ID:
<39C03CE0.FB8862A0@net.polyu.edu.hk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39BD8DC4.15B1257E@net.polyu.edu.hk> <39bf981a$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,bf46e48d4e441390,start X-Google-Attributes: gid111d45,public From: Betty <cutepang@net.polyu.edu.hk> Subject: Re: JFrame and JDialog (Very Difficult Question) Date: 2000/09/14 Message-ID: <39C03CE0.FB8862A0@net.polyu.edu.hk> X-Deja-AN: 669467833 Content-Transfer-Encoding: 7bit References: <39BD8DC4.15B1257E@net.polyu.edu.hk> <39bf981a$1_2@dnews> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 13 Sep 2000 19:40:35 -0800, 202.77.183.3 MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing