Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4148261

win32:Dialog is not shown in jdk1.2beta3.But gets into focus events.

XMLWordPrintable

    • x86
    • windows_95



      Name: jtC48319 Date: 06/12/98


      import java.awt.*;
      import java.awt.event.*;

      public class ShowDialog extends Dialog implements FocusListener{
          public ShowDialog(Frame f){
              super(f);
              addFocusListener(this);
              addWindowListener(new WindowAdapter(){
                  public void windowClosing(WindowEvent e){
                      dispose();
                      System.exit(0);
                      }
              });
              setVisible(true);
          }
          public static void main(String args[]){
              Frame f=new Frame();
              new ShowDialog(f);
          }
          public void focusGained(FocusEvent e){
              System.out.println("Focus gained");
          }
          public void focusLost(FocusEvent e){
                  System.out.println("Focus lost");
              }
          
       }
      (Review ID: 33543)
      ======================================================================

            son Oleg Sukhodolsky (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: