128 * <li>As specified in <a href="../doc-files/FocusSpec.html">Focus Specification</a>
129 * key events are dispatched to the focus owner by default.
130 * </ul>
131 *
132 * <p>
133 * WARNING: Aside from those keys that are defined by the Java language
134 * (VK_ENTER, VK_BACK_SPACE, and VK_TAB), do not rely on the values of the VK_
135 * constants. Sun reserves the right to change these values as needed
136 * to accomodate a wider range of keyboards in the future.
137 * <p>
138 * An unspecified behavior will be caused if the {@code id} parameter
139 * of any particular {@code KeyEvent} instance is not
140 * in the range from {@code KEY_FIRST} to {@code KEY_LAST}.
141 *
142 * @author Carl Quinn
143 * @author Amy Fowler
144 * @author Norbert Lindenberg
145 *
146 * @see KeyAdapter
147 * @see KeyListener
148 * @see <a href="http://java.sun.com/docs/books/tutorial/post1.0/ui/keylistener.html">Tutorial: Writing a Key Listener</a>
149 *
150 * @since 1.1
151 */
152 public class KeyEvent extends InputEvent {
153
154 /**
155 * Stores the state of native event dispatching system
156 * - true, if when the event was created event proxying
157 * mechanism was active
158 * - false, if it was inactive
159 * Used in Component.dispatchEventImpl to correctly dispatch
160 * events when proxy is active
161 */
162 private boolean isProxyActive = false;
163
164 /**
165 * The first number in the range of ids used for key events.
166 */
167 public static final int KEY_FIRST = 400;
168
|
128 * <li>As specified in <a href="../doc-files/FocusSpec.html">Focus Specification</a>
129 * key events are dispatched to the focus owner by default.
130 * </ul>
131 *
132 * <p>
133 * WARNING: Aside from those keys that are defined by the Java language
134 * (VK_ENTER, VK_BACK_SPACE, and VK_TAB), do not rely on the values of the VK_
135 * constants. Sun reserves the right to change these values as needed
136 * to accomodate a wider range of keyboards in the future.
137 * <p>
138 * An unspecified behavior will be caused if the {@code id} parameter
139 * of any particular {@code KeyEvent} instance is not
140 * in the range from {@code KEY_FIRST} to {@code KEY_LAST}.
141 *
142 * @author Carl Quinn
143 * @author Amy Fowler
144 * @author Norbert Lindenberg
145 *
146 * @see KeyAdapter
147 * @see KeyListener
148 * @see <a href="http://docs.oracle.com/javase/tutorial/uiswing/events/keylistener.html">Tutorial: Writing a Key Listener</a>
149 *
150 * @since 1.1
151 */
152 public class KeyEvent extends InputEvent {
153
154 /**
155 * Stores the state of native event dispatching system
156 * - true, if when the event was created event proxying
157 * mechanism was active
158 * - false, if it was inactive
159 * Used in Component.dispatchEventImpl to correctly dispatch
160 * events when proxy is active
161 */
162 private boolean isProxyActive = false;
163
164 /**
165 * The first number in the range of ids used for key events.
166 */
167 public static final int KEY_FIRST = 400;
168
|