Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
Other Resources:
JDK 1.1 Source Code Directory
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes:
"C:\fyicenter\jdk-1.1.8\src".
Here is the list of Java classes of the JDK 1.1 source code:
✍: FYIcenter
⏎ java/awt/EventDispatchThread.java
/* * @(#)EventDispatchThread.java 1.22 01/12/10 * * Copyright 2002 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.awt; import java.awt.event.MouseEvent; import java.awt.event.KeyEvent; import java.awt.event.PaintEvent; import java.awt.peer.ActiveEvent; /** * EventDispatchThread is a package-private AWT class which takes * events off the EventQueue and dispatches them to the appropriate * AWT components. * * @version 1.22 12/10/01 * @author Tom Ball * @author Amy Fowler */ class EventDispatchThread extends Thread { private EventQueue theQueue; private boolean doDispatch = true; EventDispatchThread(String name, EventQueue queue) { super(name); theQueue = queue; } void stopDispatchingNoJoin() { doDispatch = false; theQueue.postEvent(new EmptyEvent()); } public void stopDispatching() { doDispatch = false; // fix 4128923 // post an empty event to ensure getNextEvent // is unblocked - rkhan 4/14/98 // TODO: Look into using Thread.interrupt() instead theQueue.postEvent(new EmptyEvent()); // wait for the dispatcher to complete if (Thread.currentThread() != this) { try { join(); } catch(InterruptedException e) { } } } class EmptyEvent extends AWTEvent implements ActiveEvent { public EmptyEvent() { super(EventDispatchThread.this,0); } public void dispatch() {} } public void run() { while (doDispatch) { try { AWTEvent event = theQueue.getNextEvent(); if (false) { // Not until 1.2... // theQueue.dispatchEvent(event); } else { // old code... Object src = event.getSource(); if (event instanceof ActiveEvent) { // This could become the sole method of dispatching in time, and // moved to the event queue's dispatchEvent() method. ((ActiveEvent)event).dispatch(); } else if (src instanceof Component) { ((Component)src).dispatchEvent(event); } else if (src instanceof MenuComponent) { ((MenuComponent)src).dispatchEvent(event); } } } catch (ThreadDeath death) { return; } catch (Throwable e) { System.err.println( "Exception occurred during event dispatching:"); e.printStackTrace(); } } } }
⏎ java/awt/EventDispatchThread.java
Â
⇒ Backup JDK 1.1 Installation Directory
⇠JDK 1.1 classes.zip - Java Core Classes
2018-11-17, 91600👍, 0💬
Popular Posts:
What Is junit-3.8.1.jar? junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. JUnit is a ...
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...
JDK 11 jdk.aot.jmod is the JMOD file for JDK 11 Ahead-of-Time (AOT) Compiler module. JDK 11 AOT Comp...
What Is xercesImpl.jar in Xerces Java 2.11.0? xercesImpl.jar in Xerces Java 2.11.0 is the JAR file f...
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...