OSDN Git Service

* gnu/java/awt/peer/gtk/TestAWT.java (DialogWindow): Make text not
authorfnasser <fnasser@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jan 2004 17:32:29 +0000 (17:32 +0000)
committerfnasser <fnasser@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jan 2004 17:32:29 +0000 (17:32 +0000)
        visible so that dialog can be reused.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76160 138bc75d-0d04-0410-961f-82ee72b054a4

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

index cd7d66a..afe9565 100644 (file)
@@ -1,5 +1,10 @@
 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
        events may be handled by any queue in the stack.
 
index c4847bb..0074555 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();
        }
     });