6633354: AppletPanel loads Swing classes
Reviewed-by: art, anthony
This commit is contained in:
parent
4b321c2bfc
commit
75d9b0f986
@ -45,7 +45,6 @@ import java.util.*;
|
||||
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 @@ abstract class AppletPanel extends Panel implements AppletStub, Runnable {
|
||||
try {
|
||||
final AppletPanel p = this;
|
||||
|
||||
SwingUtilities.invokeAndWait(new Runnable() {
|
||||
EventQueue.invokeAndWait(new Runnable() {
|
||||
public void run() {
|
||||
p.validate();
|
||||
}
|
||||
@ -480,7 +479,7 @@ abstract class AppletPanel extends Panel implements AppletStub, Runnable {
|
||||
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 @@ abstract class AppletPanel extends Panel implements AppletStub, Runnable {
|
||||
try {
|
||||
final Applet a = applet;
|
||||
|
||||
SwingUtilities.invokeAndWait(new Runnable() {
|
||||
EventQueue.invokeAndWait(new Runnable() {
|
||||
public void run()
|
||||
{
|
||||
a.setVisible(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user