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/MenuShortcut.java
/* * @(#)MenuShortcut.java 1.11 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.KeyEvent; /** * A class which represents a keyboard accelerator for a MenuItem. * * @version 1.11, 12/10/01 * @author Thomas Ball */ public class MenuShortcut implements java.io.Serializable { int key; boolean usesShift; /* * JDK 1.1 serialVersionUID */ private static final long serialVersionUID = 143448358473180225L; /** * Constructs a new MenuShortcut for the specified key. * @param key the raw keycode for this MenuShortcut, as would be returned * in the keyCode field of a KeyEvent if this key were pressed. **/ public MenuShortcut(int key) { this(key, false); } /** * Constructs a new MenuShortcut for the specified key. * @param key the raw keycode for this MenuShortcut, as would be returned * in the keyCode field of a KeyEvent if this key were pressed. * @param useShiftModifier indicates whether this MenuShortcut is invoked * with the SHIFT key down. **/ public MenuShortcut(int key, boolean useShiftModifier) { // Convenience conversion for programmers who confuse key posts with // ASCII characters -- do not internationalize! They *should* be // using KeyEvent virtual keys, such as VK_A. if (key >= 'a' && key <= 'z') { key = (int)Character.toUpperCase((char)key); } this.key = key; this.usesShift = useShiftModifier; } /** * Return the raw keycode of this MenuShortcut. */ public int getKey() { return key; } /** * Return whether this MenuShortcut must be invoked using the SHIFT key. */ public boolean usesShiftModifier() { return usesShift; } /** * Returns whether this MenuShortcut is the same as another: * equality is defined to mean that both MenuShortcuts use the same key * and both either use or don't use the SHIFT key. * @param s the MenuShortcut to compare with this. */ public boolean equals(MenuShortcut s) { return (s != null && (s.getKey() == key) && (s.usesShiftModifier() == usesShift)); } /** * Returns an internationalized description of the MenuShortcut. */ public String toString() { int modifiers = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask(); if (usesShiftModifier()) { modifiers |= Event.SHIFT_MASK; } return KeyEvent.getKeyModifiersText(modifiers) + "+" + KeyEvent.getKeyText(key); } protected String paramString() { String str = "key=" + key; if (usesShiftModifier()) { str += ",usesShiftModifier"; } return str; } }
⏎ java/awt/MenuShortcut.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, 176125👍, 0💬
Popular Posts:
JDK 11 jdk.jdeps.jmod is the JMOD file for JDK 11 JDeps tool, which can be invoked by the "jdeps" co...
xml-commons External Source Code Files are provided in the source package file, xml-commons-external...
What Is commons-collections4-4.4 .jar?commons-collections4-4.4 .jaris the JAR file for Apache Common...
commons-collections4-4.2 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...