Skip to content

8042381: Test javax/swing/JRootPane/4670486/bug4670486.java fails with Action has not been received #3748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion test/jdk/ProblemList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,6 @@ javax/swing/JInternalFrame/Test6325652.java 8224977 macosx-all
javax/swing/JPopupMenu/4870644/bug4870644.java 8194130 macosx-all,linux-all
javax/swing/dnd/8139050/NativeErrorsInTableDnD.java 8202765 macosx-all,linux-all
javax/swing/JEditorPane/6917744/bug6917744.java 8213124 macosx-all
javax/swing/JRootPane/4670486/bug4670486.java 8042381 macosx-all
javax/swing/JButton/8151303/PressedIconTest.java 8266246 macosx-aarch64
java/awt/Robot/HiDPIScreenCapture/ScreenCaptureGtkTest.java 8282270 linux-all
java/awt/Robot/HiDPIScreenCapture/HiDPIRobotScreenCaptureTest.java 8282270 windows-all
Expand Down
4 changes: 3 additions & 1 deletion test/jdk/javax/swing/JRootPane/4670486/bug4670486.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public static void checkAction() {
public static void main(String[] args) throws Throwable {
try {
Robot robot = new Robot();
robot.setAutoDelay(250);
robot.setAutoDelay(100);

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

Expand All @@ -116,12 +116,14 @@ public void run() {
frame.setContentPane(createPanel(frame));
frame.setJMenuBar(createMenuBar());
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLocationRelativeTo(null);
frame.pack();
frame.setVisible(true);
}
});

robot.waitForIdle();
robot.delay(1000);

// Change the default button to
// force a call to BasicRootPaneUI.updateDefaultButtonBindings()
Expand Down