aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt/Window.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@gcc.gnu.org>2003-07-25 12:50:44 +0000
committerMark Wielaard <mark@gcc.gnu.org>2003-07-25 12:50:44 +0000
commitec8a1dd5a8fca1b4c134522a337e2f66e1de686b (patch)
tree8d66ae82e4f61f694871339ba9479724ddce0bea /libjava/java/awt/Window.java
parent0fe37f686827a4d6c12d766ecb6d2b99fb0a286b (diff)
downloadgcc-ec8a1dd5a8fca1b4c134522a337e2f66e1de686b.zip
gcc-ec8a1dd5a8fca1b4c134522a337e2f66e1de686b.tar.gz
gcc-ec8a1dd5a8fca1b4c134522a337e2f66e1de686b.tar.bz2
[multiple changes]
2003-07-25 Mark Wielaard <mark@klomp.org> * Makefile.am (awt_java_source_files): java/awt/GridBagLayoutInfo.java added. * Makefile.in: Likewise. 2003-07-25 Jeroen Frijters <jeroen@frijters.net> * java/awt/Component.java (getPreferredSize): Call preferredSize. (preferredSize): Moved body of getPreferredSize here. (getMinimumSize): Call minimumSize. (minimumSize): Moved body of getMinimumSize here. (prepareImage): Fall back on Toolkit.prepareImage if there is no peer (checkImage(Image,ImageObserver)): Don't call getWidth/getHeight, but pass -1 * java/awt/Container.java (validate): Don't validate if there is no peer. (update): Clear background before calling paint. * java/awt/GridBagLayout.java Completed the implementation and fixed several bugs. * java/awt/MediaTracker.java (MediaEntry.imageUpdate): Fixed typo. & instead of | was used to combine flags. * java/awt/Window.java (Window): Don't call setVisible(false). Windows are invisible by default and calling virtual methods from constructor causes compatibility problems (e.g. subclasses may assume that the peer already exists). 2003-07-25 Michael Koch <konqueror@gmx.de> * java/awt/GridBagLayout.java: Totally reworked and partly implemented. * java/awt/GridBagLayoutInfo.java: New file. From-SVN: r69785
Diffstat (limited to 'libjava/java/awt/Window.java')
-rw-r--r--libjava/java/awt/Window.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/libjava/java/awt/Window.java b/libjava/java/awt/Window.java
index 1491ec6..ebaa0d1f 100644
--- a/libjava/java/awt/Window.java
+++ b/libjava/java/awt/Window.java
@@ -84,7 +84,6 @@ public class Window extends Container implements Accessible
*/
Window()
{
- setVisible(false);
setLayout(new BorderLayout());
}
@@ -106,7 +105,7 @@ public class Window extends Container implements Accessible
peer = ((EmbeddedWindowSupport) getToolkit())
.createEmbeddedWindow (window_id, width, height);
}
-
+
/**
* Initializes a new instance of <code>Window</code> with the specified
* parent. The window will initially be invisible.