Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
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, 176102👍, 0💬
Popular Posts:
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...
JDK 11 jdk.xml.dom.jmod is the JMOD file for JDK 11 XML DOM module. JDK 11 XML DOM module compiled c...
How to download and install ojdbc6.jar for Oracle 11g R2? ojdbc6.jar for Oracle 11g R2 is a Java 6, ...
What Is javamail1_1_3.zip? javamail1_1_3.zip is the binary package of JavaMail API 1.1.3 in ZIP form...
Apache Log4j IOStreams is a Log4j API extension that provides numerous classes from java.io that can...