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

Empty applet doesn't initially get focus

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • P4
    • Resolution: Unresolved
    • 6
    • None
    • client-libs
    • None
    • Cause Known
    • generic
    • generic

    Description

      Run the provided test case in a browser or appletViewer
      and notice that the applet doesn't get initially focus

      Expected:
      Applet should get focus after it was loaded

      Current:
      Applet doesn't get focus
      see 6471783 (item 1 & 2 from description)
      for related problems

      import java.applet.Applet;
      import java.awt.event.FocusEvent;
      import java.awt.event.FocusListener;

      public class AwtApplet extends Applet {

          public void init() {
              super.init();
              addFocusListener(new FocusListener() {
                  public void focusGained(FocusEvent e) {
                      System.out.println("AwtApplet.focusGained");
                  }
                  public void focusLost(FocusEvent e) {
                  }
              });
          }
      }

      Attachments

        Issue Links

          Activity

            People

              ant Anton Tarasov
              alexp Alexander Potochkin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Imported:
                Indexed: