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, 152200👍, 0💬
Popular Posts:
JDK 11 java.sql.jmod is the JMOD file for JDK 11 SQL (Structured Query Language) module. JDK 11 SQL ...
commons-io-1.4.jar is the JAR file for Commons IO 1.4, which is a library of utilities to assist wit...
JRE 5 sunjce_provider.jar is the JAR file for JRE 5 Sun JCE Provider, which provides implementations...
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...
JDK 11 java.rmi.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) module. JDK 11 RMI m...