aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVitaly Provodin <vitaly.provodin@jetbrains.com>2017-06-20 10:16:12 +0700
committerVitaly Provodin <vitaly.provodin@jetbrains.com>2017-06-20 10:16:12 +0700
commit5e87dedca21d00bdf4ccaa8242a20d52794486a1 (patch)
tree08c8bb3da6ffdf926faf6955964b321aeb1ab141 /test
parentf52ba5160230b3d655b263eb79a39f5a8f97ece4 (diff)
downloadjdk8u_jdk-5e87dedca21d00bdf4ccaa8242a20d52794486a1.tar.gz
JRE-392 fixed regression test: the modal dialogs created in EDT's, redundant SwingUtilities.invokeLater() was removedjb8u152-b932
Diffstat (limited to 'test')
-rw-r--r--test/jb/javax/swing/JDialog/JDialog392.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/jb/javax/swing/JDialog/JDialog392.java b/test/jb/javax/swing/JDialog/JDialog392.java
index 9e31e6ca99..a6df931841 100644
--- a/test/jb/javax/swing/JDialog/JDialog392.java
+++ b/test/jb/javax/swing/JDialog/JDialog392.java
@@ -52,7 +52,7 @@ public class JDialog392 implements Runnable {
static DialogThread modalDialogThread2;
- static class DialogThread implements Runnable {
+ static class DialogThread {
JDialog dialog;
@@ -71,8 +71,7 @@ public class JDialog392 implements Runnable {
this.eventListener = eventListener;
}
- @Override
- public void run() {
+ void run() {
dialog = new JDialog(frame, true);
dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
dialog.setTitle(dialogTitle);
@@ -133,7 +132,7 @@ public class JDialog392 implements Runnable {
new Point(5, 50),
300, 200,
new SecondDialogListener());
- SwingUtilities.invokeLater(modalDialogThread2);
+ modalDialogThread2.run();
}
}
@@ -200,8 +199,7 @@ public class JDialog392 implements Runnable {
new Point(10, 75),
250, 150,
new FirstDialogListener());
-
- SwingUtilities.invokeLater(modalDialogThread1);
+ modalDialogThread1.run();
}
public static void main(String[] args) throws Exception {