-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.1.3
-
None
-
x86
-
windows_95
Name: rlT66838 Date: 07/21/97
I've got a frame window that has a single component that shows a fixed-sized bitmap (about 400x400).
That component inherits directly from Component to take advantage of the Lightweight UI.
It overrrides getMaximumSize, getMinimumSize and getPreferredSize to return in all cases the bitmap's size.
After calling pack() everything works as expected, but if the frame has a menu bar the component won't be sized correctly and so the bitmap won't be completely displayed.
I've tried with several layout managers and with a heavyweight canvas but the frame never packs correctly if it has a menu bar.
======================================================================
- duplicates
-
JDK-4068386 Insets are incorrect for Frame w/MenuBar
-
- Closed
-