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:
JRE 8 rt.jar - java.* Package Source Code
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries.
JRE (Java Runtime) 8 is the runtime environment included in JDK 8.
JRE 8 rt.jar libraries are divided into 6 packages:
com.* - Internal Oracle and Sun Microsystems libraries java.* - Standard Java API libraries. javax.* - Extended Java API libraries. jdk.* - JDK supporting libraries. org.* - Third party libraries. sun.* - Old libraries developed by Sun Microsystems.
JAR File Information:
Directory of C:\fyicenter\jdk-1.8.0_191\jre\lib 63,596,151 rt.jar
Here is the list of Java classes of the java.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ java/awt/SecondaryLoop.java
/* * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.awt; /** * A helper interface to run the nested event loop. * <p> * Objects that implement this interface are created with the * {@link EventQueue#createSecondaryLoop} method. The interface * provides two methods, {@link #enter} and {@link #exit}, * which can be used to start and stop the event loop. * <p> * When the {@link #enter} method is called, the current * thread is blocked until the loop is terminated by the * {@link #exit} method. Also, a new event loop is started * on the event dispatch thread, which may or may not be * the current thread. The loop can be terminated on any * thread by calling its {@link #exit} method. After the * loop is terminated, the {@code SecondaryLoop} object can * be reused to run a new nested event loop. * <p> * A typical use case of applying this interface is AWT * and Swing modal dialogs. When a modal dialog is shown on * the event dispatch thread, it enters a new secondary loop. * Later, when the dialog is hidden or disposed, it exits * the loop, and the thread continues its execution. * <p> * The following example illustrates a simple use case of * secondary loops: * * <pre> * SecondaryLoop loop; * * JButton jButton = new JButton("Button"); * jButton.addActionListener(new ActionListener() { * {@code @Override} * public void actionPerformed(ActionEvent e) { * Toolkit tk = Toolkit.getDefaultToolkit(); * EventQueue eq = tk.getSystemEventQueue(); * loop = eq.createSecondaryLoop(); * * // Spawn a new thread to do the work * Thread worker = new WorkerThread(); * worker.start(); * * // Enter the loop to block the current event * // handler, but leave UI responsive * if (!loop.enter()) { * // Report an error * } * } * }); * * class WorkerThread extends Thread { * {@code @Override} * public void run() { * // Perform calculations * doSomethingUseful(); * * // Exit the loop * loop.exit(); * } * } * </pre> * * @see Dialog#show * @see EventQueue#createSecondaryLoop * @see Toolkit#getSystemEventQueue * * @author Anton Tarasov, Artem Ananiev * * @since 1.7 */ public interface SecondaryLoop { /** * Blocks the execution of the current thread and enters a new * secondary event loop on the event dispatch thread. * <p> * This method can be called by any thread including the event * dispatch thread. This thread will be blocked until the {@link * #exit} method is called or the loop is terminated. A new * secondary loop will be created on the event dispatch thread * for dispatching events in either case. * <p> * This method can only start one new event loop at a time per * object. If a secondary event loop has already been started * by this object and is currently still running, this method * returns {@code false} to indicate that it was not successful * in starting a new event loop. Otherwise, this method blocks * the calling thread and later returns {@code true} when the * new event loop is terminated. At such time, this object can * again be used to start another new event loop. * * @return {@code true} after termination of the secondary loop, * if the secondary loop was started by this call, * {@code false} otherwise */ public boolean enter(); /** * Unblocks the execution of the thread blocked by the {@link * #enter} method and exits the secondary loop. * <p> * This method resumes the thread that called the {@link #enter} * method and exits the secondary loop that was created when * the {@link #enter} method was invoked. * <p> * Note that if any other secondary loop is started while this * loop is running, the blocked thread will not resume execution * until the nested loop is terminated. * <p> * If this secondary loop has not been started with the {@link * #enter} method, or this secondary loop has already finished * with the {@link #exit} method, this method returns {@code * false}, otherwise {@code true} is returned. * * @return {@code true} if this loop was previously started and * has not yet been finished with the {@link #exit} method, * {@code false} otherwise */ public boolean exit(); }
⏎ java/awt/SecondaryLoop.java
Or download all of them as a single archive file:
File name: jre-rt-java-1.8.0_191-src.zip File size: 6664831 bytes Release date: 2018-10-28 Download
⇒ JRE 8 rt.jar - javax.* Package Source Code
2023-08-23, 307341👍, 4💬
Popular Posts:
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...
commons-collections4-4.2 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
Jettison is a collection of Java APIs (like STaX and DOM) which read and write JSON. This allows nea...
Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google. ...
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module. JDK 17 Base module compiled class fil...