Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail From: "Steve W. Jackson" Subject: Re: Maximize JInternalFra Message-ID: X-Comment-To: comp.lang.java.gui Newsgroups: comp.lang.java.gui In-Reply-To: <1165864757.632873.3270@79g2000cws.googlegroups.com> References: <1165864757.632873.3270@79g2000cws.googlegroups.com> Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92] Lines: 43 Date: Wed, 27 Apr 2011 15:27:10 GMT NNTP-Posting-Host: 96.60.20.240 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1303918030 96.60.20.240 (Wed, 27 Apr 2011 10:27:10 CDT) NNTP-Posting-Date: Wed, 27 Apr 2011 10:27:10 CDT Organization: TDS.net Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.gui:373 To: comp.lang.java.gui In article <1165864757.632873.3270@79g2000cws.googlegroups.com>, "Jason Cavett" wrote: > When I try to maximize a JInternalFrame inside a JDesktopPane, it seems > to only work half of the time. For example, here is the portion of my > code used to maximize the internal frame. > > try { > projectView.setMaximum(true); > } catch (PropertyVetoException e) { > e.printStackTrace(); > } > > The problem is, the first project that I open is maximized. The second > is not (both projects are their normal size). The third project is > maximized, and so on. I'm really unsure why this is happening. Also, > I only noticed the problem when I switched from Java 1.4.2 to Java > 1.5.0. I'm just not sure what's different between the two that would > cause this issue. > > What is causing this issue? Is there a way to fix/workaround it? I > appreciate any help. > > > Thanks I'm not sure what you mean by "project", so I suppose there's possibly something there. But we've been using a JInternalFrame in our app for a long time without issue. When creating it, we call setMaximizable(true) against it. After calling setVisible(true), we call setMaximum(true) much as your sample does. Since switching from 1.4.2 up to 1.5, we've seen no issues or unusual behavior of any kind. = Steve = -- Steve W. Jackson Montgomery, Alabama --- * 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