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/Canvas.java
/* * @(#)Canvas.java 1.19 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.peer.CanvasPeer; /** * A <code>Canvas</code> component represents a blank rectangular * area of the screen onto which the application can draw or from * which the application can trap input events from the user. * <p> * An application must subclass the <code>Canvas</code> class in * order to get useful functionality such as creating a custom * component. The <code>paint</code> method must be overridden * in order to perform custom graphics on the canvas. * * @version 1.19 12/10/01 * @author Sami Shaio * @since JDK1.0 */ public class Canvas extends Component { private static final String base = "canvas"; private static int nameCounter = 0; /* * JDK 1.1 serialVersionUID */ private static final long serialVersionUID = -2284879212465893870L; /** * Constructs a new Canvas. */ public Canvas() { } /** * Construct a name for this component. Called by getName() when the * name is null. */ String constructComponentName() { return base + nameCounter++; } /** * Creates the peer of the canvas. This peer allows you to change the * user interface of the canvas without changing its functionality. * @see java.awt.Toolkit#createCanvas(java.awt.Canvas) * @see java.awt.Component#getToolkit() * @since JDK1.0 */ public void addNotify() { synchronized (getTreeLock()) { if (peer == null) peer = getToolkit().createCanvas(this); super.addNotify(); } } /** * This method is called to repaint this canvas. Most applications * that subclass <code>Canvas</code> should override this method in * order to perform some useful operation. * <p> * The <code>paint</code> method provided by <code>Canvas</code> * redraws this canvas's rectangle in the background color. * <p> * The graphics context's origin (0, 0) is the top-left corner * of this canvas. Its clipping region is the area of the context. * @param g the graphics context. * @see java.awt.Graphics * @since JDK1.0 */ public void paint(Graphics g) { g.setColor(getBackground()); g.fillRect(0, 0, width, height); } boolean postsOldMouseEvents() { return true; } }
⏎ java/awt/Canvas.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, 175336👍, 0💬
Popular Posts:
What Is javaws.jar in JRE (Java Runtime Environment) 8? javaws.jar in JRE (Java Runtime Environment)...
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module. JDK 11 Naming module compiled cla...
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...
How to read XML document with XML Schema validation from socket connections with the socket\DelayedI...