Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1602
| From | "D.M.Jackson" <d.m.jackson@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: A DesktopPane and Int |
| Message-ID | <133vrtqhqbo3u62@corp.supernews.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <463ee540$0$10738$db0fefd9@news.zen.co.uk> |
| Date | 2011-04-27 15:34 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui Thanks for the advice Ian. I suppose that what I am trying to do doesn't seem to fit squarely in either design model. I was just wondering. Does it make sense to use a JPanel inside of a JDesktopPane at times when the functionality of your app doesn't call for document presentation, but to provide some other kind of functionality? Or should I never create anything inside of a JDesktopPane but JInternalFrames? (And use the JInternalFrame to contain the additional functionality instead of a JPanel?) It just seems that there are things that I may want to do that would appear more cluttered and confusing if it were contained inside of a whole other frame, but on the otherhand, there are times I would just like to be able to display documents in that area. Thanks, Mark "Ian Wilson" <scobloke2@infotop.co.uk> wrote in message news:463ee540$0$10738$db0fefd9@news.zen.co.uk... > D.M.Jackson wrote: >> "Andrew Thompson" <u32984@uwe> wrote in message news:71ce00fa6858a@uwe... >> >>>D.M.Jackson wrote: >> >> >>>If you actually mean JPanel, JDesktopPane and JFrame >>>(classes in the J2SE - cannot speak for the ones you >>>mentioned), then I will add that I am entirely capable of >>>adding a JPanel (or many) to a JFrame (JDialog, >>>JOptionPane, JWindow, JApplet etc.). >> >> >> I find that I am unable to add a JFrame to a JDesktopPane and get >> anything useful during design time. >> >> > > As you probably know, there are two popular models of application design > known as Multiple Document Interface (MDI) and Single Document Interface > (SDI). I suspect it is unwise to try to mix them, particularly if your > toolset supports them using separate families of top-level components. I > think of JFrames as useful for SDI and JDesktopPanes + JInternalFrames as > useful for MDI. > > http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar | Unroll thread
A DesktopPane and Interna "D.M.Jackson" <d.m.jackson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: A DesktopPane and Int "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: A DesktopPane and Int "D.M.Jackson" <d.m.jackson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: A DesktopPane and Int "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: A DesktopPane and Int "D.M.Jackson" <d.m.jackson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: A DesktopPane and Int "Ian Wilson" <ian.wilson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: A DesktopPane and Int "D.M.Jackson" <d.m.jackson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
csiph-web