AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Maximize JInternalFrame

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits
View previous topic :: View next topic  
Author Message
Jason Cavett
Guest





PostPosted: Tue Dec 12, 2006 1:19 am    Post subject: Maximize JInternalFrame Reply with quote



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
Back to top
Steve W. Jackson
Guest





PostPosted: Tue Dec 12, 2006 3:23 am    Post subject: Re: Maximize JInternalFrame Reply with quote



In article <1165864757.632873.3270 (AT) 79g2000cws (DOT) googlegroups.com>,
"Jason Cavett" <jason.cavett (AT) gmail (DOT) com> wrote:

Quote:
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
Back to top
Jason Cavett
Guest





PostPosted: Tue Dec 12, 2006 8:07 pm    Post subject: Re: Maximize JInternalFrame Reply with quote



On Dec 11, 4:23 pm, "Steve W. Jackson" <stevewjack...@knology.net>
wrote:
Quote:
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java GUI Toolkits All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.