summaryrefslogtreecommitdiff
path: root/javax/swing/JRootPane.java
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2005-04-12 21:15:31 +0000
committerRoman Kennke <roman@kennke.org>2005-04-12 21:15:31 +0000
commit25b09f9656dd0f6625017ffb6ba4e4ffec5d605a (patch)
treec18b37a87a3dfc25cea3cf21ffa06369e73978b7 /javax/swing/JRootPane.java
parent593e19e7df5bbae0ce23cbdc30d44f2477d4def5 (diff)
downloadclasspath-25b09f9656dd0f6625017ffb6ba4e4ffec5d605a.tar.gz
2005-04-12 Roman Kennke <roman@kennke.org>
* javax/swing/plaf/basic/BasicMenuUI.java (getMaximumSize): Now returns preferredSize because JMenu should never be bigger than that. * javax/swing/JRootPane (RootLayout.layoutContainer): Make JMenuBars take the whole width.
Diffstat (limited to 'javax/swing/JRootPane.java')
-rw-r--r--javax/swing/JRootPane.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/javax/swing/JRootPane.java b/javax/swing/JRootPane.java
index 15f141ef6..ee05d27f9 100644
--- a/javax/swing/JRootPane.java
+++ b/javax/swing/JRootPane.java
@@ -218,7 +218,7 @@ public class JRootPane extends JComponent
menuBarSize = menuBar.getPreferredSize();
if (menuBarSize.height > containerSize.height)
menuBarSize.height = containerSize.height;
- menuBar.setBounds(0, 0, menuBarSize.width, menuBarSize.height);
+ menuBar.setBounds(0, 0, containerSize.width, menuBarSize.height);
int remainingHeight = containerSize.height - menuBarSize.height;
glassPane.setBounds(0, menuBarSize.height, containerSize.width,
containerSize.height - menuBarSize.height);