changeset 7407:6c199d604eef

Merge
author coffeys
date Thu, 28 Aug 2014 14:18:11 +0100
parents 8d0a1cb7b3b9 70b7e2766d4a
children 85eb739ea5a6
files
diffstat 1 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/swing/JFileChooser/8046391/bug8046391.java	Mon Jul 07 12:42:14 2014 +0100
+++ b/test/javax/swing/JFileChooser/8046391/bug8046391.java	Thu Aug 28 14:18:11 2014 +0100
@@ -47,15 +47,18 @@
             return;
         }
 
-        SwingUtilities.invokeAndWait(() -> {
-            try {
-                UIManager.setLookAndFeel(new WindowsLookAndFeel());
-            } catch (UnsupportedLookAndFeelException e) {
-                e.printStackTrace();
+        SwingUtilities.invokeAndWait(new Runnable() {
+            @Override
+            public void run() {
+                try {
+                    UIManager.setLookAndFeel(new WindowsLookAndFeel());
+                } catch (UnsupportedLookAndFeelException e) {
+                    e.printStackTrace();
+                }
+                System.out.println("Creating JFileChooser...");
+                JFileChooser fileChooser = new JFileChooser();
+                System.out.println("Test passed: chooser = " + fileChooser);
             }
-            System.out.println("Creating JFileChooser...");
-            JFileChooser fileChooser = new JFileChooser();
-            System.out.println("Test passed: chooser = " + fileChooser);
         });
         // Test fails if creating JFileChooser hangs
     }