From 2e9c0dc38e2692b04281844366dbb367ae1294e1 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Mon, 22 Sep 2003 21:39:00 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'objc-improvements-candidate-20030922'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/objc-improvements-candidate-20030922@71666 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/awt/Frame.java | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) (limited to 'libjava/java/awt/Frame.java') diff --git a/libjava/java/awt/Frame.java b/libjava/java/awt/Frame.java index 82fed1656ae..b6a34272449 100644 --- a/libjava/java/awt/Frame.java +++ b/libjava/java/awt/Frame.java @@ -237,12 +237,15 @@ Frame(String title) { super(); this.title = title; + // Top-level frames are initially invisible. + visible = false; } public Frame(GraphicsConfiguration gc) { super(gc); + visible = false; } public @@ -250,6 +253,7 @@ Frame(String title, GraphicsConfiguration gc) { super(gc); setTitle(title); + visible = false; } /*************************************************************************/ @@ -433,25 +437,6 @@ addNotify() /*************************************************************************/ -/** - * Destroys any resources associated with this frame. This includes - * all components in the frame and all owned toplevel windows. - */ -public void -dispose() -{ - Enumeration e = ownedWindows.elements(); - while(e.hasMoreElements()) - { - Window w = (Window)e.nextElement(); - w.dispose(); - } - - super.dispose(); -} - -/*************************************************************************/ - /** * Returns a debugging string describing this window. * @@ -468,8 +453,6 @@ getFrames() { //Frame[] array = new Frames[frames.size()]; //return frames.toArray(array); - - // see finalize() comment String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg); } -- cgit v1.2.3