Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #376

Re: Maximize JInternalFra

From "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this>
Subject Re: Maximize JInternalFra
Message-ID <1165932442.973907.105360@16g2000cwy.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <stevewjackson-F65D3F.15235311122006@individual.net>
Date 2011-04-27 15:27 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui


On Dec 11, 4:23 pm, "Steve W. Jackson" <stevewjack...@knology.net>
wrote:
> In article <1165864757.632873.3...@79g2000cws.googlegroups.com>,
>  "Jason Cavett" <jason.cav...@gmail.com> 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.
>
> > ThanksI'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- Hide quoted text -- Show quoted text -

This actually explains my problem.  (projectView is just a
JInternalFrame, BTW)

http://forum.java.sun.com/thread.jspa?threadID=479678&messageID=3529012

---
 * 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 | NextPrevious in thread | Find similar


Thread

Maximize JInternalFrame "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
  Re: Maximize JInternalFra "Steve W. Jackson" <steve.w..jackson@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000
    Re: Maximize JInternalFra "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:27 +0000

csiph-web