| View previous topic :: View next topic |
| Author |
Message |
Laird Nelson Guest
|
Posted: Wed Mar 03, 2004 2:30 pm Post subject: Native window decorations and layout |
|
|
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
|
Posted: Wed Mar 03, 2004 2:44 pm Post subject: Re: Native window decorations and layout |
|
|
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 . 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
|
Posted: Wed Mar 03, 2004 3:02 pm Post subject: Re: Native window decorations and layout |
|
|
Thomas Weidenfeller wrote:
| Quote: | This was always the case as fare as I can remember (and I do remember
Java 1.0 . 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
|
Posted: Wed Mar 03, 2004 3:17 pm Post subject: Re: Native window decorations and layout |
|
|
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
|
Posted: Wed Mar 03, 2004 3:29 pm Post subject: Re: Native window decorations and layout |
|
|
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
|
Posted: Wed Mar 03, 2004 3:36 pm Post subject: Re: Native window decorations and layout |
|
|
| 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 |
|
 |
|