diff options
author | Roman Kennke <roman@kennke.org> | 2005-11-01 23:13:30 +0000 |
---|---|---|
committer | Roman Kennke <roman@kennke.org> | 2005-11-01 23:13:30 +0000 |
commit | 28b476ff370d86765803a2c7faab8209d1bfd65a (patch) | |
tree | e16c3f2070462966e9d160fb6c525cdbf84cc61f | |
parent | 949f5d1e430deccbd58a8602d1cfc4f8f183a119 (diff) | |
download | classpath-28b476ff370d86765803a2c7faab8209d1bfd65a.tar.gz |
2005-11-01 Roman Kennke <kennke@aicas.com>
* java/awt/Window.java
(show): Don't set size of the window here.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/awt/Window.java | 6 |
2 files changed, 6 insertions, 5 deletions
@@ -1,5 +1,10 @@ 2005-11-01 Roman Kennke <kennke@aicas.com> + * java/awt/Window.java + (show): Don't set size of the window here. + +2005-11-01 Roman Kennke <kennke@aicas.com> + * javax/swing/plaf/metal/MetalScrollPaneUI.java (instance): Removed unnecessary field. (createUI): Always return a new instance instead of returning a diff --git a/java/awt/Window.java b/java/awt/Window.java index 5819f9882..c6bf86a26 100644 --- a/java/awt/Window.java +++ b/java/awt/Window.java @@ -286,11 +286,7 @@ public class Window extends Container implements Accessible parent.addNotify(); if (peer == null) addNotify(); - - Dimension size = getSize(); - if (size.width == 0 && size.height == 0) - setSize(getPreferredSize()); - + // Show visible owned windows. Iterator e = ownedWindows.iterator(); while(e.hasNext()) |