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


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

Re: Maximize JInternalFra

From "Steve W. Jackson" <steve.w..jackson@THRWHITE.remove-dii-this>
Subject Re: Maximize JInternalFra
Message-ID <stevewjackson-F65D3F.15235311122006@individual.net> (permalink)
Newsgroups comp.lang.java.gui
References <1165864757.632873.3270@79g2000cws.googlegroups.com>
Date 2011-04-27 15:27 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
In article <1165864757.632873.3270@79g2000cws.googlegroups.com>,
 "Jason Cavett" <jason.cavett@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.
> 
> 
> 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

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next 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