Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (322)
Collections:
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
Or download all of them as a single archive file:
File name: jdk-1.1.8-src.zip File size: 1574187 bytes Release date: 2018-11-16 Download
⇒ Backup JDK 1.1 Installation Directory
2018-11-17, ≈246🔥, 0💬
Popular Posts:
How to perform XML Schema validation with sax\Writer.java provided in the Apache Xerces package? You...
What Is commons-io-2.11.jar? commons-io-2.11.jar is the JAR file for Commons IO 2.5, which is a libr...
xml-commons Resolver Source Code Files are provided in the source package file, xml-commons-resolver...
Apache Log4j 1.2 Bridge allows applications coded to use Log4j 1.2 API to use Log4j 2 instead. Bytec...
JDK 11 java.smartcardio.jmod is the JMOD file for JDK 11 Smartcardio module. JDK 11 Smart Card IO mo...