TestAWT.java (DialogWindow): Make text not visible so that dialog can be reused.
authorFernando Nasser <fnasser@redhat.com>
Mon, 19 Jan 2004 17:32:29 +0000 (17:32 +0000)
committerFernando Nasser <fnasser@gcc.gnu.org>
Mon, 19 Jan 2004 17:32:29 +0000 (17:32 +0000)
        * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
        visible so that dialog can be reused.

From-SVN: r76160

libjava/ChangeLog
libjava/gnu/java/awt/peer/gtk/TestAWT.java

index cd7d66af18b00e9dd6db3c9e5f50b3b5a99dd529..afe9565655bf0a0bb3cb73713b1f55976d0ce422 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-19  Fernando Nasser  <fnasser@redhat.com>
+
+       * gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
+       visible so that dialog can be reused.
+
 2004-01-19  Fernando Nasser  <fnasser@redhat.com>
 
        * java/awt/EventQueue.java (getCurrentEvent): Consider that system
index c4847bb51e6c43435c8689ef95b2ca1839486cdd..0074555357a77015d4edf7dbd7c1cc9d5e64da8a 100644 (file)
@@ -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();
        }
     });