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

Regression b87/b86, you must let hover mouse over window to use Tab traversal

    XMLWordPrintable

Details

    • rc1
    • x86, sparc
    • linux, solaris_8
    • Verified

    Description

      You must move (and let hover) mouse over the window, there you can to use Tab to traversing. This is regression against build 86 , there aren't needs to move mouse over window to be possible Tab traversing.

      Steps to reproduce:
      - create JFrame with two JButton1 and JButton2
      - compile and run it
      - > mouse isn't over showned window (JFrame)
      - hit Tab or Ctrl+Tab
      -> nothing happends
      -> move mouse let hover window (JFrame)
      - now try to hit Tab
      -> focus transfered to JButton1 , hit Tab , focus transvered to JButton2


      ================================================

      This is the test case in the attachments:

      import java.awt.*;
      import javax.swing.*;

      public class Test extends JComponent {
          public static void main(String[] args) {
              if (args.length > 0 && args[0].equals("-swing")) {
                  System.out.println("SWING");
                  JFrame frame = new JFrame("TEST");
                  frame.getContentPane().setLayout(new FlowLayout());
                  frame.getContentPane().add(new JButton("JButton 1"));
                  frame.getContentPane().add(new JButton("JButton 2"));
                  frame.pack();
                  frame.show();
              }
              else {
                  System.out.println("AWT");
                  Frame frame = new Frame("TEST");
                  frame.setLayout(new FlowLayout());
                  frame.add(new Button("Button 1"));
                  frame.add(new Button("Button 2"));
                  frame.pack();
                  frame.show();
              }
          }
      }

      ###@###.### 2001-11-26

      Attachments

        Issue Links

          Activity

            People

              dmikhalksunw Denis Mikhalkin (Inactive)
              mmirilov Marián Mirilovič (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: