gcc/libjava/java/awt/event/KeyEvent.java
Tom Tromey 2ba5f77454 All files: Updated copyright information.
* All files: Updated copyright information.
	* COPYING: New file.
	* COPYING.LIB: Removed.
	* LIBGCJ_LICENSE: We now use GPL + special exception.

From-SVN: r32387
2000-03-07 19:55:28 +00:00

39 lines
934 B
Java

/* Copyright (C) 1999 Free Software Foundation
This file is part of libjava.
This software is copyrighted work licensed under the terms of the
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
details. */
package java.awt.event;
import java.awt.*;
/* A very incomplete placeholder. */
public class KeyEvent extends InputEvent
{
int keyCode;
char keyChar;
int modifiers;
public KeyEvent (Component source, int id, long when,
int modifiers, int keyCode, char keyChar)
{
super(source, id);
this.keyCode = keyCode;
this.keyChar = keyChar;
this.modifiers = modifiers;
}
public int getKeyCode () { return keyCode; }
public char getKeyChar () { return keyChar; }
public void setKeyCode (int keyCode) { this.keyCode = keyCode; }
public void setKeyChar (char keyChar) { this.keyChar = keyChar; }
public void setModifiers (int modifiers) { this.modifiers = modifiers; }
}