Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!news-out.readnews.com!news-xxxfer.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Andrew Thompson" Subject: Re: A DesktopPane and Int Message-ID: <71ce00fa6858a@uwe> X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: <133t7sk8rk7h6ff@corp.supernews.com> References: <133t7sk8rk7h6ff@corp.supernews.com> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 69 Date: Wed, 27 Apr 2011 15:34:11 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918451 96.60.20.240 (Wed, 27 Apr 2011 10:34:11 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:34:11 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:1587 To: comp.lang.java.gui D.M.Jackson wrote: .. >I observe that I am able to add a jPanel to a jDesktopPane, but not a >jFrame. Why not? 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 cannot immediately explain why you are not able to do it. Several possiblilities spring to mind, but it would probably be considered 'rude' to mention them. >I wanted to set the "undecorated" property in my > jInternalFrame to TRUE, .. Stop, ..STOP. Besides hurting my head with the constant use of the lower case 'j', I read your entire paragraphs of 'what you want to do' but still do not understand what you want to offer the end user. What amazing ability do you wish to offer the end user? What can this GUI do for them that others cannot? Assuming the application had a group of floating, undecorated areas contained within a larger GUI element. How do I (as potential user) control these elements? How do I close them, or drag them around to rearrange them? Assuming the areas are opened and closed by other application logic (buttons, menu items, the end of a long running process), that really only leaves positioning. Using a group of JInternalFrame instances does not makes much sense unless the user can rearrange the order, or drag them about. Assuming only one of the undecorated areas needs to be viewed at a time, a CardLayout or JTabbedPane that flips between them, might be better. Otherwise putting the GUI Elements in a layout where they can all be viewed, such as a GridLayout in a JScrollPane might be best. All this might occur within a JFrame or JWindow or JApplet.. as most appropriate, but I cannot understand the use of a JDesktopPane with undecorated GUI elements floating inside it. .. >I want .. Yes yes. 'You want', 'you need'.. tell us what the user is supposed to get on-screen (on terms of what it looks like and how it works) and we might be able to assist further. -- Andrew Thompson http://www.athompson.info/andrew/ Message posted via http://www.javakb.com --- * 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