[3240] in java-interest
window sizing and menu bar
daemon@ATHENA.MIT.EDU (Gary Aitken)
Sat Nov 4 01:28:08 1995
Date: Fri, 3 Nov 1995 21:30:23 -0700
From: garya@village.org (Gary Aitken)
To: java-interest@java.sun.com
Why is the menu bar left out of geometry calculations?
Or did I miss something (not unlikely...)
Create a Frame and add nothing but a MenuBar and display it.
The MenuBar won't show up unless the user resizes the window.
The window comes up with a tiny (zero?) vertical size and a minimal
horizontal size, not long enough for either the title or the
menu bar. I understand the window manager has control over
the title bar, but one can establish initial size hints which
make more sense.
In particular, this causes problems for applications where the menu bar
is longer than the stuff in the window itself, a not an uncommon
situation in real apps.
I notice that the demos, like VisualTest, specifically resize the
window to compensate for this. However, that is not a reliable
solution, given the ability of the user to override defaults such
as font sizes. If the code says resize(200,200) and the user
forces the font to a large one, the resize is guaranteed to
force the menu bar to be clipped.
Gary Aitken garya@village.org
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com