From: Fernando Nasser Date: Mon, 19 Jan 2004 17:32:29 +0000 (+0000) Subject: TestAWT.java (DialogWindow): Make text not visible so that dialog can be reused. X-Git-Tag: releases/gcc-4.0.0~10928 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f9f8d71c7d262a532f15248f0fef672ea465161;p=thirdparty%2Fgcc.git TestAWT.java (DialogWindow): Make text not visible so that dialog can be reused. * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not visible so that dialog can be reused. From-SVN: r76160 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index cd7d66af18b0..afe9565655bf 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2004-01-19 Fernando Nasser + + * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not + visible so that dialog can be reused. + 2004-01-19 Fernando Nasser * java/awt/EventQueue.java (getCurrentEvent): Consider that system diff --git a/libjava/gnu/java/awt/peer/gtk/TestAWT.java b/libjava/gnu/java/awt/peer/gtk/TestAWT.java index c4847bb51e6c..0074555357a7 100644 --- a/libjava/gnu/java/awt/peer/gtk/TestAWT.java +++ b/libjava/gnu/java/awt/peer/gtk/TestAWT.java @@ -272,6 +272,7 @@ class DialogWindow extends Dialog implements SubWindow public void windowClosing (WindowEvent e) { System.out.println ("Window Closing"); + text.setVisible (false); hide (); } }); @@ -305,7 +306,8 @@ class DialogWindow extends Dialog implements SubWindow cb.addActionListener(new ActionListener () { public void actionPerformed (ActionEvent e) { - dispose(); + text.setVisible (false); + hide(); } });