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 

Native window decorations and layout

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





PostPosted: Wed Mar 03, 2004 2:30 pm    Post subject: Native window decorations and layout Reply with quote



Is it a known bug that if your JFrame is natively decorated you can
resize it such that the minimum size constraints of its contents are
violated?

If I put a bunch of stuff in a JFrame's content pane (using
GridBagLayout), and if that JFrame is natively decorated, then I can
resize it so that it effectively disappears. If the JFrame is NOT
natively decorated, I cannot resize it smaller than the computed minimum
size.

?!

Laird
Back to top
Thomas Weidenfeller
Guest





PostPosted: Wed Mar 03, 2004 2:44 pm    Post subject: Re: Native window decorations and layout Reply with quote



Laird Nelson wrote:
Quote:
Is it a known bug that if your JFrame is natively decorated you can
resize it such that the minimum size constraints of its contents are
violated?

This was always the case as fare as I can remember (and I do remember
Java 1.0 Smile. Bug, feature, whatever ... Maybe there is a bug report
about this - check Sun's bug parade. But I would be surprised if this
will be fixed in the near or fare future.

/Thomas


Back to top
Laird Nelson
Guest





PostPosted: Wed Mar 03, 2004 3:02 pm    Post subject: Re: Native window decorations and layout Reply with quote



Thomas Weidenfeller wrote:

Quote:
This was always the case as fare as I can remember (and I do remember
Java 1.0 Smile. Bug, feature, whatever ... Maybe there is a bug report
about this - check Sun's bug parade. But I would be surprised if this
will be fixed in the near or fare future.

Argh. OK; thanks. Hmm; maybe I could use a ComponentListener to query
my GridBagLayout and figure out whether the resize operation would
violate the minimum size constraint, and if so reset the size back.
YeeeeUCK.

Laird

Back to top
Thomas Weidenfeller
Guest





PostPosted: Wed Mar 03, 2004 3:17 pm    Post subject: Re: Native window decorations and layout Reply with quote

Laird Nelson wrote:
Quote:
Hmm; maybe I could use a ComponentListener to query
my GridBagLayout and figure out whether the resize operation would
violate the minimum size constraint, and if so reset the size back.
YeeeeUCK.

You will get "jumping" windows. Very ugly. People have the same problem
when they want to ensure their window keeps a certain aspect ration.

/Thomas


Back to top
Laird Nelson
Guest





PostPosted: Wed Mar 03, 2004 3:29 pm    Post subject: Re: Native window decorations and layout Reply with quote

Thomas Weidenfeller wrote:
Quote:
You will get "jumping" windows. Very ugly. People have the same problem
when they want to ensure their window keeps a certain aspect ration.

Yeah...the more I think about it the more I think I'll just ignore it.
Sigh.

Laird

Back to top
ak
Guest





PostPosted: Wed Mar 03, 2004 3:36 pm    Post subject: Re: Native window decorations and layout Reply with quote

Quote:
Thomas Weidenfeller wrote:
You will get "jumping" windows. Very ugly. People have the same problem
when they want to ensure their window keeps a certain aspect ration.

Yeah...the more I think about it the more I think I'll just ignore it.
Sigh.

if you use Timer instead of changing JFrame size immediately, than it is not
so ugly
--

____________

http://reader.imagero.com the best java image reader.



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.