< prev index next >

src/java.desktop/share/classes/java/awt/Event.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 22,33 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package java.awt; ! import java.awt.event.*; ! import java.io.*; /** * <b>NOTE:</b> The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced * by the {@code AWTEvent} class and its subclasses. --- 22,32 ---- * or visit www.oracle.com if you need additional information or have any * questions. */ package java.awt; ! import java.awt.event.KeyEvent; /** * <b>NOTE:</b> The {@code Event} class is obsolete and is * available only for backwards compatibility. It has been replaced * by the {@code AWTEvent} class and its subclasses.
*** 54,66 **** --- 53,69 ---- * KEY_ACTION_RELEASE, the value of {@code key} is * one of the defined action-key identifiers in the * {@code Event} class ({@code PGUP}, * {@code PGDN}, {@code F1}, {@code F2}, etc). * + * @deprecated It is recommended that {@code AWTEvent} class and its subclasses + * be used instead. + * * @author Sami Shaio * @since 1.0 */ + @Deprecated(since = "9") public class Event implements java.io.Serializable { private transient long data; /* Modifier constants */
< prev index next >