home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing;
-
- import java.awt.AWTEvent;
- import java.awt.Component;
-
- class SwingUtilities$InvokeComponent extends Component {
- static final int EventID = 10000;
- Runnable runnable;
- Object lock;
- Exception exception;
-
- SwingUtilities$InvokeComponent(Runnable var1) {
- ((Component)this).enableEvents(10000L);
- this.runnable = var1;
- this.lock = new Object();
- }
-
- protected void processEvent(AWTEvent var1) {
- try {
- this.runnable.run();
- } catch (Exception var6) {
- this.exception = var6;
- }
-
- Object var2 = this.lock;
- synchronized(var2){}
-
- try {
- this.lock.notifyAll();
- } catch (Throwable var5) {
- throw var5;
- }
-
- }
- }
-