-
Bug
-
Resolution: Fixed
-
P1
-
1.4.0
-
rc1
-
x86, sparc
-
linux, solaris_8
-
Verified
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
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
- relates to
-
JDK-4546712 JCK1.4/1.3a, interactive:api/javax_swing/interactive/JMenuItemTests.html fails
-
- Closed
-