6633354: AppletPanel loads Swing classes
authordcherepanov
Mon, 20 Apr 2009 14:41:24 -0400
changeset 2645 5dfb43cecd32
parent 2644 63360b4ca6c4
child 2646 ab13ed73d1f5
6633354: AppletPanel loads Swing classes Reviewed-by: art, anthony
jdk/src/share/classes/sun/applet/AppletPanel.java
--- a/jdk/src/share/classes/sun/applet/AppletPanel.java	Fri Apr 17 16:42:14 2009 +0400
+++ b/jdk/src/share/classes/sun/applet/AppletPanel.java	Mon Apr 20 14:41:24 2009 -0400
@@ -45,7 +45,6 @@
 import java.util.Collections;
 import java.util.Locale;
 import java.util.WeakHashMap;
-import javax.swing.SwingUtilities;
 import sun.awt.AppContext;
 import sun.awt.EmbeddedFrame;
 import sun.awt.SunToolkit;
@@ -450,7 +449,7 @@
                       try {
                           final AppletPanel p = this;
 
-                          SwingUtilities.invokeAndWait(new Runnable() {
+                          EventQueue.invokeAndWait(new Runnable() {
                                   public void run() {
                                       p.validate();
                                   }
@@ -480,7 +479,7 @@
                           final AppletPanel p = this;
                           final Applet a = applet;
 
-                          SwingUtilities.invokeAndWait(new Runnable() {
+                          EventQueue.invokeAndWait(new Runnable() {
                                   public void run() {
                                       p.validate();
                                       a.setVisible(true);
@@ -514,7 +513,7 @@
                     try {
                         final Applet a = applet;
 
-                        SwingUtilities.invokeAndWait(new Runnable() {
+                        EventQueue.invokeAndWait(new Runnable() {
                                 public void run()
                                 {
                                     a.setVisible(false);