aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/awt
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/awt')
-rw-r--r--libjava/java/awt/AWTError.java25
-rw-r--r--libjava/java/awt/AWTEvent.java38
-rw-r--r--libjava/java/awt/AWTException.java27
-rw-r--r--libjava/java/awt/ActiveEvent.java21
-rw-r--r--libjava/java/awt/Adjustable.java39
-rw-r--r--libjava/java/awt/BorderLayout.java46
-rw-r--r--libjava/java/awt/Color.java90
-rw-r--r--libjava/java/awt/Component.java108
-rw-r--r--libjava/java/awt/Container.java59
-rw-r--r--libjava/java/awt/Dimension.java78
-rw-r--r--libjava/java/awt/Event.java155
-rw-r--r--libjava/java/awt/Font.java90
-rw-r--r--libjava/java/awt/Frame.java59
-rw-r--r--libjava/java/awt/Graphics.java29
-rw-r--r--libjava/java/awt/IllegalComponentStateException.java30
-rw-r--r--libjava/java/awt/Image.java29
-rw-r--r--libjava/java/awt/ItemSelectable.java24
-rw-r--r--libjava/java/awt/LayoutManager.java20
-rw-r--r--libjava/java/awt/LayoutManager2.java20
-rw-r--r--libjava/java/awt/Menu.java33
-rw-r--r--libjava/java/awt/MenuBar.java47
-rw-r--r--libjava/java/awt/MenuComponent.java15
-rw-r--r--libjava/java/awt/MenuContainer.java27
-rw-r--r--libjava/java/awt/MenuItem.java25
-rw-r--r--libjava/java/awt/Paint.java30
-rw-r--r--libjava/java/awt/PaintContext.java28
-rw-r--r--libjava/java/awt/Point.java65
-rw-r--r--libjava/java/awt/Rectangle.java35
-rw-r--r--libjava/java/awt/Shape.java23
-rw-r--r--libjava/java/awt/TextArea.java49
-rw-r--r--libjava/java/awt/TextComponent.java38
-rw-r--r--libjava/java/awt/Toolkit.java32
-rw-r--r--libjava/java/awt/Transparency.java29
-rw-r--r--libjava/java/awt/Window.java29
-rw-r--r--libjava/java/awt/event/AWTEventListener.java22
-rw-r--r--libjava/java/awt/event/ActionEvent.java55
-rw-r--r--libjava/java/awt/event/ActionListener.java21
-rw-r--r--libjava/java/awt/event/AdjustmentEvent.java60
-rw-r--r--libjava/java/awt/event/AdjustmentListener.java21
-rw-r--r--libjava/java/awt/event/ComponentAdapter.java35
-rw-r--r--libjava/java/awt/event/ComponentEvent.java42
-rw-r--r--libjava/java/awt/event/ComponentListener.java24
-rw-r--r--libjava/java/awt/event/ContainerAdapter.java27
-rw-r--r--libjava/java/awt/event/ContainerEvent.java50
-rw-r--r--libjava/java/awt/event/ContainerListener.java22
-rw-r--r--libjava/java/awt/event/FocusAdapter.java27
-rw-r--r--libjava/java/awt/event/FocusEvent.java50
-rw-r--r--libjava/java/awt/event/FocusListener.java22
-rw-r--r--libjava/java/awt/event/InputEvent.java73
-rw-r--r--libjava/java/awt/event/InputMethodEvent.java54
-rw-r--r--libjava/java/awt/event/InputMethodListener.java22
-rw-r--r--libjava/java/awt/event/InvocationEvent.java84
-rw-r--r--libjava/java/awt/event/ItemEvent.java57
-rw-r--r--libjava/java/awt/event/ItemListener.java21
-rw-r--r--libjava/java/awt/event/KeyAdapter.java31
-rw-r--r--libjava/java/awt/event/KeyEvent.java261
-rw-r--r--libjava/java/awt/event/KeyListener.java23
-rw-r--r--libjava/java/awt/event/MouseAdapter.java39
-rw-r--r--libjava/java/awt/event/MouseEvent.java88
-rw-r--r--libjava/java/awt/event/MouseListener.java25
-rw-r--r--libjava/java/awt/event/MouseMotionAdapter.java27
-rw-r--r--libjava/java/awt/event/MouseMotionListener.java22
-rw-r--r--libjava/java/awt/event/PaintEvent.java49
-rw-r--r--libjava/java/awt/event/TextEvent.java29
-rw-r--r--libjava/java/awt/event/TextListener.java22
-rw-r--r--libjava/java/awt/event/WindowAdapter.java27
-rw-r--r--libjava/java/awt/event/WindowEvent.java40
-rw-r--r--libjava/java/awt/event/WindowListener.java27
-rw-r--r--libjava/java/awt/geom/Dimension2D.java36
-rw-r--r--libjava/java/awt/geom/Point2D.java69
-rw-r--r--libjava/java/awt/natToolkit.cc27
-rw-r--r--libjava/java/awt/peer/ComponentPeer.java23
-rw-r--r--libjava/java/awt/peer/ContainerPeer.java15
-rw-r--r--libjava/java/awt/peer/FramePeer.java16
-rw-r--r--libjava/java/awt/peer/WindowPeer.java15
75 files changed, 0 insertions, 3192 deletions
diff --git a/libjava/java/awt/AWTError.java b/libjava/java/awt/AWTError.java
deleted file mode 100644
index f2761771664..00000000000
--- a/libjava/java/awt/AWTError.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-
-public class AWTError extends IllegalStateException
-{
- public AWTError (String s)
- {
- super (s);
- }
-}
diff --git a/libjava/java/awt/AWTEvent.java b/libjava/java/awt/AWTEvent.java
deleted file mode 100644
index bc9ea495c86..00000000000
--- a/libjava/java/awt/AWTEvent.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/* Copyright (C) 1999, 2000 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;
-
-/* A very incomplete placeholder. */
-
-public abstract class AWTEvent extends java.util.EventObject
-{
- protected boolean consumed;
- protected int id;
-
- public int getID()
- {
- return id;
- }
-
- public String paramString ()
- {
- return toString ();
- }
-
- public String toString ()
- {
- return getClass().getName() + "[" + id + "]";
- }
-
- public AWTEvent (Object source, int id)
- {
- super(source);
- this.id = id;
- }
-}
diff --git a/libjava/java/awt/AWTException.java b/libjava/java/awt/AWTException.java
deleted file mode 100644
index 8cc7bff9c2d..00000000000
--- a/libjava/java/awt/AWTException.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-package java.awt;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date Tue Apr 4 2000
- */
-/* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
- * "The Java Language Specification", ISBN 0-201-63451-1
- * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
- * Status: Believed complete and correct.
- */
-
-public class AWTException extends Exception
-{
- public AWTException (String message)
- {
- super (message);
- }
-}
diff --git a/libjava/java/awt/ActiveEvent.java b/libjava/java/awt/ActiveEvent.java
deleted file mode 100644
index 089682e6e7e..00000000000
--- a/libjava/java/awt/ActiveEvent.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface ActiveEvent
-{
- public void dispatch ();
-}
diff --git a/libjava/java/awt/Adjustable.java b/libjava/java/awt/Adjustable.java
deleted file mode 100644
index 18510fb8c25..00000000000
--- a/libjava/java/awt/Adjustable.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Copyright (C) 1999, 2000 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;
-import java.awt.event.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface Adjustable
-{
- static final int HORIZONTAL;
- static final int VERTICAL;
-
- public void addAdjustmentListener (AdjustmentListener l);
- public int getBlockIncrement ();
- public int getMaximum ();
- public int getMinimum ();
- public int getOrientation ();
- public int getUnitIncrement ();
- public int getValue ();
- public int getVisibleAmount ();
- public void removeAdjustmentListener (AdjustmentListener l);
- public void setBlockIncrement (int b);
- public void setMaximum (int max);
- public void setMinimum (int min);
- public void setUnitIncrement (int u);
- public void setValue (int v);
- public void setVisibleAmount (int v);
-}
diff --git a/libjava/java/awt/BorderLayout.java b/libjava/java/awt/BorderLayout.java
deleted file mode 100644
index 16700f3fa25..00000000000
--- a/libjava/java/awt/BorderLayout.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/* 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;
-
-/* A very incomplete placeholder. */
-
-public class BorderLayout implements LayoutManager2
-{
- int hgap;
- int vgap;
-
- public BorderLayout (int hgap, int vgap)
- {
- this.hgap = hgap;
- this.vgap = vgap;
- }
-
- public void addLayoutComponent (String name, Component comp)
- { /* FIXME */ }
- public void layoutContainer (Container parent)
- { /* FIXME */ }
- public Dimension minimumLayoutSize (Container parent)
- { /* FIXME */ return null; }
- public Dimension preferredLayoutSize (Container parent)
- { /* FIXME */ return null; }
- public void removeLayoutComponent (Component comp)
- { /* FIXME */ }
-
- public void addLayoutComponent (Component comp, Object constraints)
- { /* FIXME */ }
- public float getLayoutAlignmentX (Container target)
- { /* FIXME */ return (float) 0.0; }
- public float getLayoutAlignmentY (Container target)
- { /* FIXME */ return (float) 0.0; }
- public void invalidateLayout (Container target)
- { /* FIXME */ }
- public Dimension maximumLayoutSize (Container target)
- { /* FIXME */ return null; }
-
-}
diff --git a/libjava/java/awt/Color.java b/libjava/java/awt/Color.java
deleted file mode 100644
index 1cc780aa34a..00000000000
--- a/libjava/java/awt/Color.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-package java.awt;
-
-/**
- * @author Warren Levy <warrenl@cygnus.com>
- * @date March 15, 2000.
- */
-
-/**
- * Written using on-line Java Platform 1.2 API Specification, as well
- * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
- * Status: Stubbed; A very incomplete implementation.
- */
-
-public class Color extends Object implements Paint, java.io.Serializable
-{
- public static final Color white = new Color(0xFFFFFFFF, true);
- public static final Color lightGray = new Color(0xFFC0C0C0, true);
- public static final Color gray = new Color(0xFF808080, true);
- public static final Color darkGray = new Color(0xFF404040, true);
- public static final Color black = new Color(0xFF000000, true);
- public static final Color red = new Color(0xFFFF0000, true);
- public static final Color pink = new Color(0xFFFFAFAF, true);
- public static final Color orange = new Color(0xFFFFC800, true);
- public static final Color yellow = new Color(0xFFFFFF00, true);
- public static final Color green = new Color(0xFF00FF00, true);
- public static final Color magenta = new Color(0xFFFF00FF, true);
- public static final Color cyan = new Color(0xFF00FFFF, true);
- public static final Color blue = new Color(0xFF0000FF, true);
-
- // The internal sRGB representation.
- // Alpha is bits 24-31, if hasalpha is true.
- // Red is bits 16-23; Green is bits 8-15; Blue is bits 0-7.
- private int rgba = 0xFFFFFFFF;
-
- public Color(int rgb)
- {
- this(rgb, false);
- }
-
- public Color(int rgba, boolean hasalpha)
- {
- this.rgba = rgba;
- if (!hasalpha)
- rgba |= 0xFF000000;
- }
-
- public Color(int r, int g, int b)
- {
- this(r, g, b, 0xFF);
- }
-
- public Color(int r, int g, int b, int a)
- {
- rgba = a << 24 | ((r << 16) & 0x00FF0000) | ((g << 8) & 0x0000FF00) |
- (b & 0x000000FF);
- }
-
- public int getRed()
- {
- return (rgba >> 16) & 0xFF;
- }
-
- public int getGreen()
- {
- return (rgba >> 8) & 0xFF;
- }
-
- public int getBlue()
- {
- return rgba & 0xFF;
- }
-
- public int getAlpha()
- {
- return (rgba >> 24) & 0xFF;
- }
-
- public int getRGB()
- {
- return rgba;
- }
-}
diff --git a/libjava/java/awt/Component.java b/libjava/java/awt/Component.java
deleted file mode 100644
index d842910b64d..00000000000
--- a/libjava/java/awt/Component.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/* Copyright (C) 1999, 2000 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;
-import java.awt.event.*;
-//import java.awt.peer.ComponentPeer;
-
-/* A very incomplete placeholder. */
-
-public abstract class Component implements MenuContainer
-{
- Container parent;
- java.awt.peer.ComponentPeer peer;
- int x, y, width, height;
-
- public Container getParent () { return parent; }
-
- /** @deprecated */
- public java.awt.peer.ComponentPeer getPeer () { return peer; }
-
- public void setVisible (boolean b)
- { /* FIXME */ }
-
- public void setSize (Dimension d)
- { setSize(d.width, d.height); }
-
- public void setSize (int width, int height)
- {
- this.width = width; this.height = height;
- if (peer != null)
- peer.setBounds(x, y, width, height);
- }
-
- public void setLocation (int x, int y)
- {
- this.x = x; this.y = y;
- if (peer != null)
- peer.setBounds(x, y, width, height);
- }
-
- public void setLocation (Point pt)
- { setLocation(pt.x, pt.y); }
-
- public void setBounds (int x, int y, int w, int h)
- {
- this.x = x; this.y = y;
- this.width = w; this.height = h;
- if (peer != null)
- peer.setBounds(x, y, w, h);
- }
-
- public void setBounds (Rectangle rect)
- { setBounds(rect.x, rect.y, rect.width, rect.height); }
-
- public Rectangle getBounds ()
- {
- return new Rectangle(x, y, width, height);
- }
-
- public Point getLocation ()
- {
- return new Point(x, y);
- }
-
- public int getX ()
- {
- return x;
- }
-
- public int getY ()
- {
- return y;
- }
-
- public Dimension getSize ()
- {
- return new Dimension(width, height);
- }
-
- public Dimension getMinimumSize ()
- {
- if (peer == null)
- return new Dimension(width, height);
- else
- return peer.getMinimumSize();
- }
-
- public Dimension getPreferredSize ()
- {
- if (peer == null)
- return new Dimension(width, height);
- else
- return peer.getPreferredSize();
- }
-
- public synchronized void addKeyListener (KeyListener listener)
- { /* FIXME */ }
-
- public boolean isFocusTraversable ()
- { /* FIXME */ return false; }
-
- public void addNotify () { }
-}
diff --git a/libjava/java/awt/Container.java b/libjava/java/awt/Container.java
deleted file mode 100644
index 6befa791645..00000000000
--- a/libjava/java/awt/Container.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/* 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;
-
-/* A very incomplete placeholder. */
-
-public abstract class Container extends Component
-{
- int componentCount;
- Component[] components;
-
- public Component[] getComponents()
- {
- Component[] result = new Component[componentCount];
- if (componentCount > 0)
- System.arraycopy(components, 0, result, 0, componentCount);
- return result;
- }
-
- public Component getComponent (int n)
- {
- if (n < 0 || n >= componentCount)
- throw new ArrayIndexOutOfBoundsException("no such component");
- return components[n];
- }
-
- public boolean isAncestorOf (Component comp)
- {
- for (;;)
- {
- if (comp == null)
- return false;
- if (comp == this)
- return true;
- comp = comp.getParent();
- }
- }
-
- public Component add (String name, Component comp)
- {
- /* FIXME */
- return comp;
- }
-
- public void addNotify ()
- {
- for (int i = componentCount; --i >= 0; )
- components[i].addNotify();
- }
-
- public void setLayout (LayoutManager layout)
- { /* FIXME */ }
-}
diff --git a/libjava/java/awt/Dimension.java b/libjava/java/awt/Dimension.java
deleted file mode 100644
index 38ba32729cf..00000000000
--- a/libjava/java/awt/Dimension.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/* 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;
-
-/**
- * @author Per Bothner <bothner@cygnus.com>
- * @date Fenruary 8, 1999.
- */
-
-/* Written using "Java Class Libraries", 2nd edition, plus online
- * API docs for JDK 1.2 beta from http://www.javasoft.com.
- * Status: Believed complete and correct, except that neither toString
- * has not been compared with JDK output.
- */
-
-public class Dimension extends java.awt.geom.Dimension2D
-{
- public int height;
- public int width;
-
- public Dimension () { }
-
- public Dimension (Dimension dim)
- {
- this.width = dim.width;
- this.height = dim.height;
- }
-
- public Dimension (int width, int height)
- {
- this.width = width;
- this.height = height;
- }
-
- public boolean equals (Object obj)
- {
- if (! (obj instanceof Dimension))
- return false;
- Dimension dim = (Dimension) obj;
- return height == dim.height && width == dim.width;
- }
-
- public Dimension getSize () { return new Dimension(this); }
-
- public void setSize (Dimension dim)
- {
- this.width = dim.width;
- this.height = dim.height;
- }
-
- public void setSize (int width, int height)
- {
- this.width = width;
- this.height = height;
- }
-
- public String toString ()
- {
- return "Dimension[w:"+width+",h:"+height+']';
- }
-
- /* Note: There is no Dimension.hashCode. */
-
- public double getWidth() { return width; }
- public double getHeight() { return height; }
-
- public void setSize (double width, double height)
- {
- this.width = (int) width;
- this.height = (int) height;
- }
-}
diff --git a/libjava/java/awt/Event.java b/libjava/java/awt/Event.java
deleted file mode 100644
index 241e68ee635..00000000000
--- a/libjava/java/awt/Event.java
+++ /dev/null
@@ -1,155 +0,0 @@
-/* Copyright (C) 1999, 2000 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;
-
-/**
- * Written using on-line Java Platform 1.2 API Specification, as well
- * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
- * Status: Believed complete and correct, except for the paramString()
- * method, which is stubbed.
- */
-
-public class Event
-{
- public static final int SHIFT_MASK = 1,
- CTRL_MASK = 2,
- META_MASK = 4,
- ALT_MASK = 8;
-
- public static final int ACTION_EVENT = 1001,
- BACK_SPACE = 8,
- CAPS_LOCK = 1022,
- DELETE = 127,
- DOWN = 1005,
- END = 1001,
- ENTER = 10,
- ESCAPE = 27,
- F1 = 1008,
- F10 = 1017,
- F11 = 1018,
- F12 = 1019,
- F2 = 1009,
- F3 = 1010,
- F4 = 1011,
- F5 = 1012,
- F6 = 1013,
- F7 = 1014,
- F8 = 1015,
- F9 = 1016,
- GOT_FOCUS = 1004,
- HOME = 1000,
- INSERT = 1025,
- KEY_ACTION = 403,
- KEY_ACTION_RELEASE = 404,
- KEY_PRESS = 401,
- KEY_RELEASE = 402,
- LEFT = 1006,
- LIST_DESELECT = 702,
- LIST_SELECT = 701,
- LOAD_FILE = 1002,
- LOST_FOCUS = 1005,
- MOUSE_DOWN = 501,
- MOUSE_DRAG = 506,
- MOUSE_ENTER = 504,
- MOUSE_EXIT = 505,
- MOUSE_MOVE = 503,
- MOUSE_UP = 502,
- NUM_LOCK = 1023,
- PAUSE = 1024,
- PGDN = 1003,
- PGUP = 1002,
- PRINT_SCREEN = 1020,
- RIGHT = 1007,
- SAVE_FILE = 1003,
- SCROLL_ABSOLUTE = 605,
- SCROLL_BEGIN = 606,
- SCROLL_END = 607,
- SCROLL_LINE_DOWN = 602,
- SCROLL_LINE_UP = 601,
- SCROLL_LOCK = 1021,
- SCROLL_PAGE_DOWN = 604,
- SCROLL_PAGE_UP = 603,
- TAB = 9,
- UP = 1004,
- WINDOW_DEICONIFY = 204,
- WINDOW_DESTROY = 201,
- WINDOW_EXPOSE = 202,
- WINDOW_ICONIFY = 203,
- WINDOW_MOVED = 205;
-
- public Event evt;
- public Object arg;
- public int clickCount;
- public int id;
- public int key;
- public int modifiers;
- public Object target;
- public long when;
- public int x;
- public int y;
-
- public Event (Object target, int id, Object arg)
- {
- this.id = id;
- this.target = target;
- this.arg = arg;
- }
-
- public Event (Object target, long when, int id, int x, int y, int key,
- int modifiers)
- {
- this.target = target;
- this.when = when;
- this.id = id;
- this.x = x;
- this.y = y;
- this.key = key;
- this.modifiers = modifiers;
- }
-
- public Event (Object target, long when, int id, int x, int y, int key,
- int modifiers, Object arg)
- {
- this (target, when, id, x, y, key, modifiers);
- this.arg = arg;
- }
-
- public boolean controlDown ()
- {
- return ((modifiers & CTRL_MASK) == 0 ? false : true);
- }
-
- public boolean metaDown ()
- {
- return ((modifiers & META_MASK) == 0 ? false : true);
- }
-
- protected String paramString ()
- {
- return "Event.paramString() not implemented";
- }
-
- public boolean shiftDown()
- {
- return ((modifiers & SHIFT_MASK) == 0 ? false : true);
- }
-
- public String toString()
- {
- String r = getClass() + "[id=" + id + ",x=" + x + ",y=" + y + "target="
- + ((target == null) ? "null" : target) + "]";
- return r;
- }
-
- public void translate (int x, int y)
- {
- this.x += x;
- this.y += y;
- }
-}
diff --git a/libjava/java/awt/Font.java b/libjava/java/awt/Font.java
deleted file mode 100644
index 9d25342fe7d..00000000000
--- a/libjava/java/awt/Font.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/* Copyright (C) 1999, 2000 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;
-
-/**
- * @author Warren Levy <warrenl@cygnus.com>
- * @date March 16, 2000.
- */
-
-/**
- * Written using on-line Java Platform 1.2 API Specification, as well
- * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
- * Status: Stubbed; A very incomplete implementation.
- */
-
-public class Font
-{
- // FIXME
-
- public static final int PLAIN = 0;
- public static final int BOLD = 1;
- public static final int ITALIC = 2;
- public static final int ROMAN_BASELINE = 0;
- public static final int CENTER_BASELINE = 1;
- public static final int HANGING_BASELINE = 2;
- protected String name;
- protected int style;
- protected int size;
- protected float pointSize;
-
- public Font(String name, int style, int size)
- {
- this.name = name;
- this.style = style & 0x3; // Only use lowest 2 bits.
- this.size = size;
- pointSize = size; // Assume some subclass can set a different val.
- }
-
- public boolean isPlain()
- {
- if (style == PLAIN)
- return true;
-
- return false;
- }
-
- public boolean isBold()
- {
- if ((style & BOLD) == BOLD)
- return true;
-
- return false;
- }
-
- public boolean isItalic()
- {
- if ((style & ITALIC) == ITALIC)
- return true;
-
- return false;
- }
-
- public String getName()
- {
- return name;
- }
-
- public int getStyle()
- {
- return style;
- }
-
- public int getSize()
- {
- return size;
- }
-
- public float getSize2D()
- {
- return pointSize;
- }
-
- public static Font decode(String str) { return null; } // FIXME
-}
diff --git a/libjava/java/awt/Frame.java b/libjava/java/awt/Frame.java
deleted file mode 100644
index 0d0acf9c380..00000000000
--- a/libjava/java/awt/Frame.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/* Copyright (C) 1999, 2000 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;
-import java.awt.peer.FramePeer;
-
-/* A very incomplete placeholder. */
-
-public class Frame extends Window implements MenuContainer
-{
- MenuBar menuBar = null;
- String title;
-
- public Frame ()
- { /* FIXME */ }
-
- public Frame (String title)
- {
- this();
- setTitle(title);
- }
-
- public String getTitle () { return title; }
-
- public void setTitle (String title)
- {
- this.title = title;
- if (peer != null)
- ((FramePeer)peer).setTitle(title);
- }
-
- public synchronized void dispose ()
- { /* FIXME */ }
-
- public synchronized void setMenuBar (MenuBar menuBar)
- { this.menuBar = menuBar; }
-
- public synchronized void addNotify ()
- {
- if (peer == null)
- {
- FramePeer fpeer = Toolkit.getDefaultToolkit().createFrame(this);
- // Compiler bug requires cast ??; FIXME?
- peer = (java.awt.peer.ComponentPeer) fpeer;
- if (width + height > 0)
- peer.setBounds(x, y, width, height);
- }
- super.addNotify();
- }
-
- public Font getFont() { return null; } // FIXME
- public boolean postEvent(Event evt) { return false; } // FIXME
- public void remove(MenuComponent comp) { } // FIXME
-}
diff --git a/libjava/java/awt/Graphics.java b/libjava/java/awt/Graphics.java
deleted file mode 100644
index 8b11f812113..00000000000
--- a/libjava/java/awt/Graphics.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-package java.awt;
-
-/**
- * @author Warren Levy <warrenl@cygnus.com>
- * @date March 15, 2000.
- */
-
-/**
- * Written using on-line Java Platform 1.2 API Specification, as well
- * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
- * Status: Stubbed; A very incomplete placeholder.
- */
-
-public abstract class Graphics extends Object
-{
- protected Graphics()
- {
- super(); // ???
- throw new Error ("java.awt.Graphics: not implemented");
- }
-}
diff --git a/libjava/java/awt/IllegalComponentStateException.java b/libjava/java/awt/IllegalComponentStateException.java
deleted file mode 100644
index ff97a576ecf..00000000000
--- a/libjava/java/awt/IllegalComponentStateException.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-
-public class IllegalComponentStateException extends IllegalStateException
-{
- public IllegalComponentStateException ()
- {
- super ();
- }
-
- public IllegalComponentStateException (String s)
- {
- super (s);
- }
-}
diff --git a/libjava/java/awt/Image.java b/libjava/java/awt/Image.java
deleted file mode 100644
index 75ddd2e9a00..00000000000
--- a/libjava/java/awt/Image.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-package java.awt;
-
-/**
- * @author Warren Levy <warrenl@cygnus.com>
- * @date March 15, 2000.
- */
-
-/**
- * Written using on-line Java Platform 1.2 API Specification, as well
- * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
- * Status: Stubbed; A very incomplete placeholder.
- */
-
-public abstract class Image extends Object
-{
- public Image()
- {
- super(); // ???
- throw new Error("java.awt.Image: not implemented");
- }
-}
diff --git a/libjava/java/awt/ItemSelectable.java b/libjava/java/awt/ItemSelectable.java
deleted file mode 100644
index f51bb33ea5a..00000000000
--- a/libjava/java/awt/ItemSelectable.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Copyright (C) 2000 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;
-import java.awt.event.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface ItemSelectable
-{
- public void addItemListener (ItemListener l);
- public Object[] getSelectedObjects ();
- public void removeItemListener (ItemListener l);
-}
diff --git a/libjava/java/awt/LayoutManager.java b/libjava/java/awt/LayoutManager.java
deleted file mode 100644
index 671596ec371..00000000000
--- a/libjava/java/awt/LayoutManager.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/* 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;
-
-/* Status: Believed complete and correct. */
-
-public interface LayoutManager
-{
- public void addLayoutComponent (String name, Component comp);
- public void layoutContainer (Container parent);
- public Dimension minimumLayoutSize (Container parent);
- public Dimension preferredLayoutSize (Container parent);
- public void removeLayoutComponent (Component comp);
-}
diff --git a/libjava/java/awt/LayoutManager2.java b/libjava/java/awt/LayoutManager2.java
deleted file mode 100644
index a79d64e85fa..00000000000
--- a/libjava/java/awt/LayoutManager2.java
+++ /dev/null
@@ -1,20 +0,0 @@
-/* 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;
-
-/* Status: Believed complete and correct. */
-
-public interface LayoutManager2 extends LayoutManager
-{
- public void addLayoutComponent (Component comp, Object constraints);
- public float getLayoutAlignmentX (Container target);
- public float getLayoutAlignmentY (Container target);
- public void invalidateLayout (Container target);
- public Dimension maximumLayoutSize (Container target);
-}
diff --git a/libjava/java/awt/Menu.java b/libjava/java/awt/Menu.java
deleted file mode 100644
index af1c4c8dbd4..00000000000
--- a/libjava/java/awt/Menu.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/* Copyright (C) 1999, 2000 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;
-
-/* A very incomplete placeholder. */
-
-public class Menu extends MenuItem implements MenuContainer
-{
- public Menu (String label)
- {
- super(label); // ???
- throw new Error ("java.awt.Menu: not implemented");
- }
-
- public void add (String label)
- { /* FIXME */ }
-
- public synchronized MenuItem add (MenuItem item)
- {
- /* FIXME */
- return item;
- }
-
- public Font getFont() { return null; } // FIXME
- public boolean postEvent(Event evt) { return false; } // FIXME
- public void remove(MenuComponent comp) { } // FIXME
-}
diff --git a/libjava/java/awt/MenuBar.java b/libjava/java/awt/MenuBar.java
deleted file mode 100644
index ce7d3bc368f..00000000000
--- a/libjava/java/awt/MenuBar.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/* Copyright (C) 1999, 2000 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;
-
-/* A very incomplete placeholder. */
-
-public class MenuBar extends MenuComponent implements MenuContainer
-{
- Menu[] menus;
- int count;
-
- public synchronized Menu add (Menu m)
- {
- if (menus == null)
- menus = new Menu[1];
- else if (count == menus.length)
- {
- Menu[] newMenus = new Menu[2 * count];
- System.arraycopy(menus, 0, newMenus, 0, count);
- }
- menus[count++] = m;
- return m;
- }
-
- public void remove (MenuComponent comp)
- {
- for (int i = count; --i >= 0; )
- {
- if (menus[i] == comp)
- {
- System.arraycopy(menus, i, menus, i+1, count-i-1);
- count--;
- // FIXME: destroy peer
- return;
- }
- }
- }
-
- public Font getFont() { return null; } // FIXME
- public boolean postEvent(Event evt) { return false; } // FIXME
-}
diff --git a/libjava/java/awt/MenuComponent.java b/libjava/java/awt/MenuComponent.java
deleted file mode 100644
index e18314dd626..00000000000
--- a/libjava/java/awt/MenuComponent.java
+++ /dev/null
@@ -1,15 +0,0 @@
-/* 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;
-
-/* A very incomplete placeholder. */
-
-public abstract class MenuComponent
-{
-}
diff --git a/libjava/java/awt/MenuContainer.java b/libjava/java/awt/MenuContainer.java
deleted file mode 100644
index 295e240cc7b..00000000000
--- a/libjava/java/awt/MenuContainer.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/* 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;
-
-/* Written using "Java Class Libraries", 2nd edition, plus online
- * API docs for JDK 1.2 beta from http://www.javasoft.com.
- * Status: Believed complete and correct.
- */
-
-public interface MenuContainer
-{
- public Font getFont();
-
- /**
- * @deprected
- */
- public boolean postEvent(Event evt);
-
- public void remove(MenuComponent comp);
-}
-
diff --git a/libjava/java/awt/MenuItem.java b/libjava/java/awt/MenuItem.java
deleted file mode 100644
index 2681a20ee12..00000000000
--- a/libjava/java/awt/MenuItem.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/* 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;
-import java.awt.event.*;
-
-/* A very incomplete placeholder. */
-
-public class MenuItem extends MenuComponent
-{
- public MenuItem (String label)
- {
- throw new Error("java.awt.MenuItem: not implemented");
- }
-
- public synchronized void addActionListener (ActionListener listener)
- {
- /* FIXME */
- }
-}
diff --git a/libjava/java/awt/Paint.java b/libjava/java/awt/Paint.java
deleted file mode 100644
index 0836402ef91..00000000000
--- a/libjava/java/awt/Paint.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-package java.awt;
-
-/**
- * @author Warren Levy <warrenl@cygnus.com>
- * @date March 15, 2000.
- */
-
-/**
- * Written using on-line Java Platform 1.2 API Specification, as well
- * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
- * Status: Stubbed.
- */
-
-public interface Paint extends Transparency
-{
- // FIXME
- // public PaintContext createContext(ColorModel cm,
- // Rectangle deviceBounds,
- // Rectangle2D userBounds,
- // AffineTransform xform,
- // RenderingHints hints);
-}
diff --git a/libjava/java/awt/PaintContext.java b/libjava/java/awt/PaintContext.java
deleted file mode 100644
index 0b4e6a7b0d7..00000000000
--- a/libjava/java/awt/PaintContext.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-package java.awt;
-
-/**
- * @author Warren Levy <warrenl@cygnus.com>
- * @date March 16, 2000.
- */
-
-/**
- * Written using on-line Java Platform 1.2 API Specification, as well
- * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
- * Status: Partially stubbed.
- */
-
-public interface PaintContext
-{
- public void dispose();
- // FIXME
- // public ColorModel getColorModel();
- // public Raster getRaster(int x, int y, int w, int h);
-}
diff --git a/libjava/java/awt/Point.java b/libjava/java/awt/Point.java
deleted file mode 100644
index df8aba51700..00000000000
--- a/libjava/java/awt/Point.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/* 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;
-import java.awt.geom.Point2D;
-
-/**
- * @author Per Bothner <bothner@cygnus.com>
- * @date February 8, 1999.
- */
-
-/* Written using "Java Class Libraries", 2nd edition, plus online
- * API docs for JDK 1.2 beta from http://www.javasoft.com.
- * Status: Believed complete and correct, except that neither toString
- * nor hashCode have been compared with JDK output.
- */
-
-public class Point extends Point2D implements java.io.Serializable
-{
- public int x;
- public int y;
-
- public Point () { }
-
- public Point (Point p) { this.x = p.x; this.y = p.y; }
-
- public Point (int x, int y) { this.x = x; this.y = y; }
-
- public boolean equals (Object obj)
- {
- if (! (obj instanceof Point))
- return false;
- Point p = (Point) obj;
- return this.x == p.x && this.y == p.y;
- }
-
- public int hashCode () { return x ^ y; }
-
- public Point getLocation () { return new Point(this); }
-
- public void move (int x, int y) { this.x = x; this.y = y; }
-
- public void setLocation (int x, int y) { this.x = x; this.y = y; }
-
- public void setLocation (Point pt) { this.x = pt.x; this.y = pt.y; }
-
- public void translate (int x, int y) { this.x += x; this.y += y; }
-
- public String toString ()
- {
- return "Point[x:"+x+",y:"+y+']';
- }
-
- public double getX() { return x; }
- public double getY() { return y; }
-
- public void setLocation (double x, double y)
- { this.x = (int) x; this.y = (int) y; }
-
-}
diff --git a/libjava/java/awt/Rectangle.java b/libjava/java/awt/Rectangle.java
deleted file mode 100644
index d6c9c5e48ab..00000000000
--- a/libjava/java/awt/Rectangle.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/* 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;
-
-/* Status: Quite imcomplete. */
-
-public class Rectangle implements Shape
-{
- public int x;
- public int y;
- public int width;
- public int height;
-
- public Rectangle () { }
-
- public Rectangle (int width, int height)
- { this.width = width; this.height = height; }
-
- public Rectangle (int x, int y, int width, int height)
- {
- this.x = x; this.y = y;
- this.width = width; this.height = height;
- }
-
- public Rectangle getBounds ()
- {
- return new Rectangle (x, y, width, height);
- }
-}
diff --git a/libjava/java/awt/Shape.java b/libjava/java/awt/Shape.java
deleted file mode 100644
index d0f0e0835da..00000000000
--- a/libjava/java/awt/Shape.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/* 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;
-
-/**
- * @author Per Bothner <bothner@cygnus.com>
- * @date Fenruary 8, 1999.
- */
-
-/* Written using "Java Class Libraries", 2nd edition.
- * Status: Believed complete and correct.
- */
-
-public interface Shape
-{
- public Rectangle getBounds ();
-}
diff --git a/libjava/java/awt/TextArea.java b/libjava/java/awt/TextArea.java
deleted file mode 100644
index 09f5cb2e348..00000000000
--- a/libjava/java/awt/TextArea.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/* 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;
-
-/* A very incomplete placeholder. */
-
-public class TextArea extends TextComponent
-{
- public synchronized void append (String str)
- {
- replaceRange(str, length, length);
- }
-
- public synchronized void insert (String str, int pos)
- {
- replaceRange(str, pos, pos);
- }
-
- public synchronized void replaceRange (String str, int start, int end)
- {
- if (length == 0)
- setText (str);
- else
- {
- int len = str.length();
- int delta = len - (end - start);
- int new_length = length + delta;
- if (buffer.length < new_length)
- {
- int new_size = 2 * buffer.length;
- if (new_size < new_length)
- new_size = new_length;
- char[] new_buffer = new char[new_size];
- System.arraycopy(buffer, 0, new_buffer, 0, length);
- buffer = new_buffer;
- }
- if (len != end)
- System.arraycopy(buffer, start, buffer, start + len, len - end);
- str.getChars(0, len, buffer, start);
- length += delta;
- }
- }
-}
diff --git a/libjava/java/awt/TextComponent.java b/libjava/java/awt/TextComponent.java
deleted file mode 100644
index 738cc89c7e8..00000000000
--- a/libjava/java/awt/TextComponent.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/* 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;
-import java.awt.event.*;
-
-/* A very incomplete placeholder. */
-
-public class TextComponent extends Component
-{
- char[] buffer;
- int length;
- int caretPosition;
-
- public synchronized String getText ()
- { return new String(buffer, 0, length); }
-
- public synchronized void setText (String text)
- {
- length = text.length();
- if (buffer == null || buffer.length < length)
- buffer = new char[length];
- text.getChars(0, length, buffer, 0);
- }
-
- public synchronized void addTextListener (TextListener listener)
- { /* FIXME */ }
-
- public int getCaretPosition () { return caretPosition; }
-
- public void setCaretPosition (int pos) { caretPosition = pos; }
-
-}
diff --git a/libjava/java/awt/Toolkit.java b/libjava/java/awt/Toolkit.java
deleted file mode 100644
index bd1085a0d74..00000000000
--- a/libjava/java/awt/Toolkit.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/* Copyright (C) 1999, 2000 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;
-import java.awt.peer.*;
-import java.net.URL;
-
-/* A very incomplete placeholder. */
-
-public abstract class Toolkit
-{
- static Toolkit defaultToolkit;
-
- public static synchronized Toolkit getDefaultToolkit()
- {
- if (defaultToolkit == null)
- init();
- return defaultToolkit;
- }
-
- protected abstract FramePeer createFrame(Frame target);
- public abstract Image getImage(URL url);
-
- private static void init() { }
- // private static native void init();
- // static { init(); }
-}
diff --git a/libjava/java/awt/Transparency.java b/libjava/java/awt/Transparency.java
deleted file mode 100644
index c1190069839..00000000000
--- a/libjava/java/awt/Transparency.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Copyright (C) 2000 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-package java.awt;
-
-/**
- * @author Warren Levy <warrenl@cygnus.com>
- * @date March 15, 2000.
- */
-
-/**
- * Written using on-line Java Platform 1.2 API Specification, as well
- * as "The Java Class Libraries", 2nd edition (Addison-Wesley, 1998).
- * Status: Believed complete and correct.
- */
-
-public interface Transparency
-{
- public static final int OPAQUE = 1;
- public static final int BITMASK = 2;
- public static final int TRANSLUCENT = 3;
-
- public int getTransparency();
-}
diff --git a/libjava/java/awt/Window.java b/libjava/java/awt/Window.java
deleted file mode 100644
index 4112861f6c6..00000000000
--- a/libjava/java/awt/Window.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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;
-import java.awt.event.WindowListener;
-
-/* A very incomplete placeholder. */
-
-public class Window extends Container
-{
- public void dispose ()
- { /* FIXME */ }
-
- public synchronized void addWindowListener (WindowListener listener)
- { /* FIXME */ }
-
-
- public void show ()
- {
- addNotify();
- // validate FIXME
- // validate setVisible FIXME
- }
-}
diff --git a/libjava/java/awt/event/AWTEventListener.java b/libjava/java/awt/event/AWTEventListener.java
deleted file mode 100644
index ec9e4ffa27d..00000000000
--- a/libjava/java/awt/event/AWTEventListener.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 2000 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.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface AWTEventListener extends java.util.EventListener
-{
- public void eventDispatched (AWTEvent e);
-}
diff --git a/libjava/java/awt/event/ActionEvent.java b/libjava/java/awt/event/ActionEvent.java
deleted file mode 100644
index de0d376d9f3..00000000000
--- a/libjava/java/awt/event/ActionEvent.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/* Copyright (C) 1999, 2000 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.*;
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public class ActionEvent extends AWTEvent
-{
- public static final int ACTION_FIRST = 1001;
- public static final int ACTION_LAST = 1001;
- public static final int ACTION_PERFORMED = 1001;
- public static final int ALT_MASK = 8;
- public static final int CTRL_MASK = 2;
- public static final int META_MASK = 4;
- public static final int SHIFT_MASK = 1;
-
- String actionCommand;
- int modifiers;
-
- public ActionEvent (Object source, int id, String command)
- {
- super(source, id);
- actionCommand = command;
- }
-
- public ActionEvent (Object source, int id, String command, int modifiers)
- {
- super(source, id);
- actionCommand = command;
- this.modifiers = modifiers;
- }
-
- public String getActionCommand ()
- {
- return actionCommand;
- }
-
- public int getModifiers ()
- {
- return modifiers;
- }
-
- public String paramString ()
- {
- return ("ActionEvent[" + actionCommand + "," + modifiers
- + ";" + super.paramString () + "]");
- }
-}
diff --git a/libjava/java/awt/event/ActionListener.java b/libjava/java/awt/event/ActionListener.java
deleted file mode 100644
index 7fb359ff076..00000000000
--- a/libjava/java/awt/event/ActionListener.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/* 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;
-
-/**
- * @author Per Bothner <bothner@cygnus.com>
- * @date Fenruary, 1999.
- */
-
-/* Status: Believed complete and correct. */
-
-public interface ActionListener extends java.util.EventListener
-{
- public void actionPerformed (ActionEvent e);
-}
diff --git a/libjava/java/awt/event/AdjustmentEvent.java b/libjava/java/awt/event/AdjustmentEvent.java
deleted file mode 100644
index 84838b6afec..00000000000
--- a/libjava/java/awt/event/AdjustmentEvent.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/* Copyright (C) 2000 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.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public class AdjustmentEvent extends AWTEvent
-{
- public static final int ADJUSTMENT_FIRST = 601;
- public static final int ADJUSTMENT_LAST = 601;
- public static final int ADJUSTMENT_VALUE_CHANGED = 601;
- public static final int BLOCK_DECREMENT = 3;
- public static final int BLOCK_INCREMENT = 4;
- public static final int TRACK = 5;
- public static final int UNIT_DECREMENT = 2;
- public static final int UNIT_INCREMENT = 1;
-
- public AdjustmentEvent (Adjustable source, int id, int type, int value)
- {
- super (source, id);
- this.type = type;
- this.value = value;
- }
-
- public Adjustable getAdjustable ()
- {
- return (Adjustable) source;
- }
-
- public int getAdjustmentType ()
- {
- return type;
- }
-
- public int getValue ()
- {
- return value;
- }
-
- public String paramString ()
- {
- return ("AdjustmentEvent[" + type + "," + value
- + ";" + super.paramString () + "]");
- }
-
- private int type;
- private int value;
-}
diff --git a/libjava/java/awt/event/AdjustmentListener.java b/libjava/java/awt/event/AdjustmentListener.java
deleted file mode 100644
index 1d103328c63..00000000000
--- a/libjava/java/awt/event/AdjustmentListener.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface AdjustmentListener extends java.util.EventListener
-{
- public void adjustmentValueChanged (AdjustmentEvent e);
-}
diff --git a/libjava/java/awt/event/ComponentAdapter.java b/libjava/java/awt/event/ComponentAdapter.java
deleted file mode 100644
index 0faba3d6eff..00000000000
--- a/libjava/java/awt/event/ComponentAdapter.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public abstract class ComponentAdapter implements ComponentListener
-{
- public void componentHidden (ComponentEvent e)
- {
- }
-
- public void componentMoved (ComponentEvent e)
- {
- }
-
- public void componentResized (ComponentEvent e)
- {
- }
-
- public void componentShown (ComponentEvent e)
- {
- }
-}
diff --git a/libjava/java/awt/event/ComponentEvent.java b/libjava/java/awt/event/ComponentEvent.java
deleted file mode 100644
index bb34a6e231e..00000000000
--- a/libjava/java/awt/event/ComponentEvent.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/* Copyright (C) 1999, 2000 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.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public class ComponentEvent extends AWTEvent
-{
- public static final int COMPONENT_FIRST = 100;
- public static final int COMPONENT_HIDDEN = 103;
- public static final int COMPONENT_LAST = 103;
- public static final int COMPONENT_MOVED = 100;
- public static final int COMPONENT_RESIZED = 101;
- public static final int COMPONENT_SHOWN = 102;
-
- public ComponentEvent (Component source, int id)
- {
- super(source, id);
- }
-
- public Component getComponent ()
- {
- return (Component) source;
- }
-
- public String paramString ()
- {
- return super.paramString ();
- }
-}
diff --git a/libjava/java/awt/event/ComponentListener.java b/libjava/java/awt/event/ComponentListener.java
deleted file mode 100644
index 3302cf2a713..00000000000
--- a/libjava/java/awt/event/ComponentListener.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface ComponentListener extends java.util.EventListener
-{
- public void componentHidden (ComponentEvent e);
- public void componentMoved (ComponentEvent e);
- public void componentResized (ComponentEvent e);
- public void componentShown (ComponentEvent e);
-}
diff --git a/libjava/java/awt/event/ContainerAdapter.java b/libjava/java/awt/event/ContainerAdapter.java
deleted file mode 100644
index 18c12a5f19b..00000000000
--- a/libjava/java/awt/event/ContainerAdapter.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public abstract class ContainerAdapter implements ContainerListener
-{
- public void componentAdded (ContainerEvent e)
- {
- }
-
- public void componentRemoved (ContainerEvent e)
- {
- }
-}
diff --git a/libjava/java/awt/event/ContainerEvent.java b/libjava/java/awt/event/ContainerEvent.java
deleted file mode 100644
index b6621693c16..00000000000
--- a/libjava/java/awt/event/ContainerEvent.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Copyright (C) 2000 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.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public class ContainerEvent extends ComponentEvent
-{
- public static final int COMPONENT_ADDED = 300;
- public static final int COMPONENT_REMOVED = 301;
- public static final int CONTAINER_FIRST = 300;
- public static final int CONTAINER_LAST = 301;
-
- // FIXME: jdk1.2 docs say source is a Component.
- public ContainerEvent (Container source, int id, Component child)
- {
- super (source, id);
- this.child = child;
- }
-
- public Component getChild ()
- {
- return child;
- }
-
- public Component getContainer ()
- {
- return (Container) source;
- }
-
- public String paramString ()
- {
- return ("ContainerEvent[" + child
- + ";" + super.paramString () + "]");
- }
-
- private Component child;
-}
diff --git a/libjava/java/awt/event/ContainerListener.java b/libjava/java/awt/event/ContainerListener.java
deleted file mode 100644
index 65acba4a756..00000000000
--- a/libjava/java/awt/event/ContainerListener.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface ContainerListener extends java.util.EventListener
-{
- public void componentAdded (ContainerEvent e);
- public void componentRemoved (ContainerEvent e);
-}
diff --git a/libjava/java/awt/event/FocusAdapter.java b/libjava/java/awt/event/FocusAdapter.java
deleted file mode 100644
index f8419d92efa..00000000000
--- a/libjava/java/awt/event/FocusAdapter.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public abstract class FocusAdapter implements FocusListener
-{
- public void focusGained (FocusEvent e)
- {
- }
-
- public void focusLost (FocusEvent e)
- {
- }
-}
diff --git a/libjava/java/awt/event/FocusEvent.java b/libjava/java/awt/event/FocusEvent.java
deleted file mode 100644
index 9b559ea4e49..00000000000
--- a/libjava/java/awt/event/FocusEvent.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/* Copyright (C) 2000 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.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public class FocusEvent extends AWTEvent
-{
- public static final int FOCUS_FIRST = 1004;
- public static final int FOCUS_GAINED = 1004;
- public static final int FOCUS_LAST = 1005;
- public static final int FOCUS_LOST = 1005;
-
- public FocusEvent (Component source, int id)
- {
- super (source, id);
- this.temporary = false;
- }
-
- public FocusEvent (Component source, int id, boolean temporary)
- {
- super (source, id);
- this.temporary = temporary;
- }
-
- public boolean isTemporary ()
- {
- return temporary;
- }
-
- public String paramString ()
- {
- return ("FocusEvent[" + temporary
- + ";" + super.paramString () + "]");
- }
-
- private boolean temporary;
-}
diff --git a/libjava/java/awt/event/FocusListener.java b/libjava/java/awt/event/FocusListener.java
deleted file mode 100644
index f4167de6c01..00000000000
--- a/libjava/java/awt/event/FocusListener.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface FocusListener extends java.util.EventListener
-{
- public void focusGained (FocusEvent e);
- public void focusLost (FocusEvent e);
-}
diff --git a/libjava/java/awt/event/InputEvent.java b/libjava/java/awt/event/InputEvent.java
deleted file mode 100644
index 2da79226316..00000000000
--- a/libjava/java/awt/event/InputEvent.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/* Copyright (C) 1999, 2000 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.*;
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public abstract class InputEvent extends ComponentEvent
-{
- public static final int ALT_GRAPH_MASK = 32;
- public static final int ALT_MASK = 8;
- public static final int BUTTON1_MASK = 16;
- public static final int BUTTON2_MASK = 8;
- public static final int BUTTON3_MASK = 4;
- public static final int CTRL_MASK = 2;
- public static final int META_MASK = 4;
- public static final int SHIFT_MASK = 1;
-
- InputEvent (Component source, int id) // Not public
- {
- super(source, id);
- }
-
- public boolean isShiftDown ()
- {
- return (modifiers & SHIFT_MASK) != 0;
- }
-
- public boolean isControlDown ()
- {
- return (modifiers & CTRL_MASK) != 0;
- }
-
- public boolean isMetaDown ()
- {
- return (modifiers & META_MASK) != 0;
- }
-
- public boolean isAltDown ()
- {
- return (modifiers & ALT_MASK) != 0;
- }
-
- public long getWhen ()
- {
- return when;
- }
-
- public int getModifiers ()
- {
- return modifiers;
- }
-
- public boolean isConsumed ()
- {
- return consumed;
- }
-
- public void consume ()
- {
- /* FIXME */
- consumed = true;
- }
-
- private long when;
- private int modifiers;
-}
diff --git a/libjava/java/awt/event/InputMethodEvent.java b/libjava/java/awt/event/InputMethodEvent.java
deleted file mode 100644
index d047a739900..00000000000
--- a/libjava/java/awt/event/InputMethodEvent.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/* Copyright (C) 1999, 2000 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 InputMethodEvent extends AWTEvent
-{
- public static final int CARET_POSITION_CHANGED = 1101;
- public static final int INPUT_METHOD_FIRST = 1100;
- public static final int INPUT_METHOD_LAST = 1101;
- public static final int INPUT_METHOD_TEXT_CHANGED = 1100;
-
- /*
- public InputMethodEvent (Component source, int id,
- AttributedCharacterIterator text,
- int committedCharacterCount, TextHitInfo caret,
- TextHitInfo visiblePosition)
- {
- if (id < INPUT_METHOD_FIRST
- || id > INPUT_METHOD_LAST
- || (id == CARET_POSITION_CHANGED && text != null)
- || committedCharacterCount < 0
- || (committedCharacterCount
- > text.getEndIndex () - text.getBeginIndex ()))
- throw new IllegalArgumentException ();
- }
-
- public InputMethodEvent (Component source, int id, TextHitInfo caret,
- TextHitInfo visiblePosition);
-
- public void consume ();
- public TextHitInfo getCaret ();
- public int getCommittedCharacterCount ();
- public AttributedCharacterIterator getText ();
- public TextHitInfo getVisiblePosition ();
- public boolean isConsumed ();
-
- public String paramString ();
- */
-
- // FIXME: this is just to let it compile.
- private InputMethodEvent ()
- {
- super (null, -1);
- }
-}
diff --git a/libjava/java/awt/event/InputMethodListener.java b/libjava/java/awt/event/InputMethodListener.java
deleted file mode 100644
index 0712404af39..00000000000
--- a/libjava/java/awt/event/InputMethodListener.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface InputMethodListener extends java.util.EventListener
-{
- public void caretPositionChanged (InputMethodEvent e);
- public void inputMethodTextChanged (InputMethodEvent e);
-}
diff --git a/libjava/java/awt/event/InvocationEvent.java b/libjava/java/awt/event/InvocationEvent.java
deleted file mode 100644
index 522447a7722..00000000000
--- a/libjava/java/awt/event/InvocationEvent.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/* Copyright (C) 2000 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.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Still one bug. */
-
-public class InvocationEvent extends AWTEvent implements ActiveEvent
-{
- public static final int INVOCATION_DEFAULT = 1200;
- public static final int INVOCATION_FIRST = 1200;
- public static final int INVOCATION_LAST = 1200;
-
- protected InvocationEvent (Object source, int id, Runnable runnable,
- Object notifier, boolean catchExceptions)
- {
- super (source, id);
- this.runnable = runnable;
- this.notifier = notifier;
- this.catchExceptions = catchExceptions;
- }
-
- public InvocationEvent (Object source, Runnable runnable)
- {
- super (source, INVOCATION_DEFAULT);
- this.runnable = runnable;
- }
-
- public InvocationEvent (Object source, Runnable runnable, Object notifier)
- {
- super (source, INVOCATION_DEFAULT);
- this.runnable = runnable;
- this.notifier = notifier;
- }
-
- public void dispatch ()
- {
- Exception e = null;
- try
- {
- runnable.run ();
- }
- catch (Exception _)
- {
- e = _;
- }
-
- // FIXME: what to do if !catchExceptions?
- if (catchExceptions)
- exception = e;
-
- if (notifier != null)
- notifier.notifyAll ();
- }
-
- public Exception getException ()
- {
- return exception;
- }
-
- public String paramString ()
- {
- return ("InvocationEvent[" + notifier + "," + runnable
- + "," + catchExceptions
- + ";" + super.paramString () + "]");
- }
-
- protected boolean catchExceptions;
- protected Object notifier;
- protected Runnable runnable;
-
- private Exception exception;
-}
diff --git a/libjava/java/awt/event/ItemEvent.java b/libjava/java/awt/event/ItemEvent.java
deleted file mode 100644
index cb36feae3b0..00000000000
--- a/libjava/java/awt/event/ItemEvent.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/* Copyright (C) 2000 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.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public class ItemEvent extends AWTEvent
-{
- public static final int DESELECTED = 2;
- public static final int ITEM_FIRST = 701;
- public static final int ITEM_LAST = 701;
- public static final int ITEM_STATE_CHANGED = 701;
- public static final int SELECTED = 1;
-
- public ItemEvent (ItemSelectable source, int id, Object item, int sc)
- {
- super (source, id);
- this.item = item;
- this.stateChange = sc;
- }
-
- public Object getItem ()
- {
- return item;
- }
-
- public ItemSelectable getItemSelectable ()
- {
- return (ItemSelectable) source;
- }
-
- public int getStateChange ()
- {
- return stateChange;
- }
-
- public String paramString ()
- {
- return ("ItemEvent[" + item + "," + stateChange
- + ";" + super.paramString () + "]");
- }
-
- private Object item;
- private int stateChange;
-}
diff --git a/libjava/java/awt/event/ItemListener.java b/libjava/java/awt/event/ItemListener.java
deleted file mode 100644
index 30bfcac3cab..00000000000
--- a/libjava/java/awt/event/ItemListener.java
+++ /dev/null
@@ -1,21 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface ItemListener extends java.util.EventListener
-{
- public void itemStateChanged (ItemEvent e);
-}
diff --git a/libjava/java/awt/event/KeyAdapter.java b/libjava/java/awt/event/KeyAdapter.java
deleted file mode 100644
index 0e1297eb80d..00000000000
--- a/libjava/java/awt/event/KeyAdapter.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public abstract class KeyAdapter implements KeyListener
-{
- public void keyPressed (KeyEvent w)
- {
- }
-
- public void keyReleased (KeyEvent w)
- {
- }
-
- public void keyTyped (KeyEvent w)
- {
- }
-}
diff --git a/libjava/java/awt/event/KeyEvent.java b/libjava/java/awt/event/KeyEvent.java
deleted file mode 100644
index 4aadea1ca96..00000000000
--- a/libjava/java/awt/event/KeyEvent.java
+++ /dev/null
@@ -1,261 +0,0 @@
-/* Copyright (C) 1999, 2000 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.*;
-
-/* Status: still incomplete. */
-
-public class KeyEvent extends InputEvent
-{
- public static char CHAR_UNDEFINED = 0;;
- public static final int KEY_FIRST = 400;
- public static final int KEY_LAST = 402;
- public static final int KEY_PRESSED = 401;
- public static final int KEY_RELEASED = 402;
- public static final int KEY_TYPED = 400;
- public static final int VK_0 = 48;
- public static final int VK_1 = 49;
- public static final int VK_2 = 50;
- public static final int VK_3 = 51;
- public static final int VK_4 = 52;
- public static final int VK_5 = 53;
- public static final int VK_6 = 54;
- public static final int VK_7 = 55;
- public static final int VK_8 = 56;
- public static final int VK_9 = 57;
- public static final int VK_A = 65;
- public static final int VK_ACCEPT = 30;
- public static final int VK_ADD = 107;
- public static final int VK_AGAIN = 65481;
- public static final int VK_ALL_CANDIDATES = 256;
- public static final int VK_ALPHANUMERIC = 240;
- public static final int VK_ALT = 18;
- public static final int VK_ALT_GRAPH = 65406;
- public static final int VK_AMPERSAND = 150;
- public static final int VK_ASTERISK = 151;
- public static final int VK_AT = 512;
- public static final int VK_B = 66;
- public static final int VK_BACK_QUOTE = 192;
- public static final int VK_BACK_SLASH = 92;
- public static final int VK_BACK_SPACE = 8;
- public static final int VK_BRACELEFT = 161;
- public static final int VK_BRACERIGHT = 162;
- public static final int VK_C = 67;
- public static final int VK_CANCEL = 3;
- public static final int VK_CAPS_LOCK = 20;
- public static final int VK_CIRCUMFLEX = 514;
- public static final int VK_CLEAR = 12;
- public static final int VK_CLOSE_BRACKET = 93;
- public static final int VK_CODE_INPUT = 258;
- public static final int VK_COLON = 513;
- public static final int VK_COMMA = 44;
- public static final int VK_COMPOSE = 65312;
- public static final int VK_CONTROL = 17;
- public static final int VK_CONVERT = 28;
- public static final int VK_COPY = 65485;
- public static final int VK_CUT = 65489;
- public static final int VK_D = 68;
- public static final int VK_DEAD_ABOVEDOT = 134;
- public static final int VK_DEAD_ABOVERING = 136;
- public static final int VK_DEAD_ACUTE = 129;
- public static final int VK_DEAD_BREVE = 133;
- public static final int VK_DEAD_CARON = 138;
- public static final int VK_DEAD_CEDILLA = 139;
- public static final int VK_DEAD_CIRCUMFLEX = 130;
- public static final int VK_DEAD_DIAERESIS = 135;
- public static final int VK_DEAD_DOUBLEACUTE = 137;
- public static final int VK_DEAD_GRAVE = 128;
- public static final int VK_DEAD_IOTA = 141;
- public static final int VK_DEAD_MACRON = 132;
- public static final int VK_DEAD_OGONEK = 140;
- public static final int VK_DEAD_SEMIVOICED_SOUND = 143;
- public static final int VK_DEAD_TILDE = 131;
- public static final int VK_DEAD_VOICED_SOUND = 142;
- public static final int VK_DECIMAL = 110;
- public static final int VK_DELETE = 127;
- public static final int VK_DIVIDE = 111;
- public static final int VK_DOLLAR = 515;
- public static final int VK_DOWN = 40;
- public static final int VK_E = 69;
- public static final int VK_END = 35;
- public static final int VK_ENTER = 10;
- public static final int VK_EQUALS = 61;
- public static final int VK_ESCAPE = 27;
- public static final int VK_EURO_SIGN = 516;
- public static final int VK_EXCLAMATION_MARK = 517;
- public static final int VK_F = 70;
- public static final int VK_F1 = 112;
- public static final int VK_F10 = 121;
- public static final int VK_F11 = 122;
- public static final int VK_F12 = 123;
- public static final int VK_F13 = 61440;
- public static final int VK_F14 = 61441;
- public static final int VK_F15 = 61442;
- public static final int VK_F16 = 61443;
- public static final int VK_F17 = 61444;
- public static final int VK_F18 = 61445;
- public static final int VK_F19 = 61446;
- public static final int VK_F2 = 113;
- public static final int VK_F20 = 61447;
- public static final int VK_F21 = 61448;
- public static final int VK_F22 = 61449;
- public static final int VK_F23 = 61450;
- public static final int VK_F24 = 61451;
- public static final int VK_F3 = 114;
- public static final int VK_F4 = 115;
- public static final int VK_F5 = 116;
- public static final int VK_F6 = 117;
- public static final int VK_F7 = 118;
- public static final int VK_F8 = 119;
- public static final int VK_F9 = 120;
- public static final int VK_FINAL = 24;
- public static final int VK_FIND = 65488;
- public static final int VK_FULL_WIDTH = 243;
- public static final int VK_G = 71;
- public static final int VK_GREATER = 160;
- public static final int VK_H = 72;
- public static final int VK_HALF_WIDTH = 244;
- public static final int VK_HELP = 156;
- public static final int VK_HIRAGANA = 242;
- public static final int VK_HOME = 36;
- public static final int VK_I = 73;
- public static final int VK_INSERT = 155;
- public static final int VK_INVERTED_EXCLAMATION_MARK = 518;
- public static final int VK_J = 74;
- public static final int VK_JAPANESE_HIRAGANA = 260;
- public static final int VK_JAPANESE_KATAKANA = 259;
- public static final int VK_JAPANESE_ROMAN = 261;
- public static final int VK_K = 75;
- public static final int VK_KANA = 21;
- public static final int VK_KANJI = 25;
- public static final int VK_KATAKANA = 241;
- public static final int VK_KP_DOWN = 225;
- public static final int VK_KP_LEFT = 226;
- public static final int VK_KP_RIGHT = 227;
- public static final int VK_KP_UP = 224;
- public static final int VK_L = 76;
- public static final int VK_LEFT = 37;
- public static final int VK_LEFT_PARENTHESIS = 519;
- public static final int VK_LESS = 153;
- public static final int VK_M = 77;
- public static final int VK_META = 157;
- public static final int VK_MINUS = 45;
- public static final int VK_MODECHANGE = 31;
- public static final int VK_MULTIPLY = 106;
- public static final int VK_N = 78;
- public static final int VK_NONCONVERT = 29;
- public static final int VK_NUM_LOCK = 144;
- public static final int VK_NUMBER_SIGN = 520;
- public static final int VK_NUMPAD0 = 96;
- public static final int VK_NUMPAD1 = 97;
- public static final int VK_NUMPAD2 = 98;
- public static final int VK_NUMPAD3 = 99;
- public static final int VK_NUMPAD4 = 100;
- public static final int VK_NUMPAD5 = 101;
- public static final int VK_NUMPAD6 = 102;
- public static final int VK_NUMPAD7 = 103;
- public static final int VK_NUMPAD8 = 104;
- public static final int VK_NUMPAD9 = 105;
- public static final int VK_O = 79;
- public static final int VK_OPEN_BRACKET = 91;
- public static final int VK_P = 80;
- public static final int VK_PAGE_DOWN = 34;
- public static final int VK_PAGE_UP = 33;
- public static final int VK_PASTE = 65487;
- public static final int VK_PAUSE = 19;
- public static final int VK_PERIOD = 46;
- public static final int VK_PLUS = 521;
- public static final int VK_PREVIOUS_CANDIDATE = 257;
- public static final int VK_PRINTSCREEN = 154;
- public static final int VK_PROPS = 65482;
- public static final int VK_Q = 81;
- public static final int VK_QUOTE = 222;
- public static final int VK_QUOTEDBL = 152;
- public static final int VK_R = 82;
- public static final int VK_RIGHT = 39;
- public static final int VK_RIGHT_PARENTHESIS = 522;
- public static final int VK_ROMAN_CHARACTERS = 245;
- public static final int VK_S = 83;
- public static final int VK_SCROLL_LOCK = 145;
- public static final int VK_SEMICOLON = 59;
- public static final int VK_SEPARATER = 108;
- public static final int VK_SHIFT = 16;
- public static final int VK_SLASH = 47;
- public static final int VK_SPACE = 32;
- public static final int VK_STOP = 65480;
- public static final int VK_SUBTRACT = 109;
- public static final int VK_T = 84;
- public static final int VK_TAB = 9;
- public static final int VK_U = 85;
- public static final int VK_UNDEFINED = 0;
- public static final int VK_UNDERSCORE = 523;
- public static final int VK_UNDO = 65483;
- public static final int VK_UP = 38;
- public static final int VK_V = 86;
- public static final int VK_W = 87;
- public static final int VK_X = 88;
- public static final int VK_Y = 89;
- public static final int VK_Z = 90;
-
- 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 KeyEvent (Component source, int id, long when,
- int modifiers, int keyCode)
- {
- super (source, id);
- this.keyCode = keyCode;
- this.keyChar = CHAR_UNDEFINED; // FIXME?
- 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; }
-
- public static String getKeyText (int keyCode)
- {
- // FIXME
- throw new InternalError ("unimplemented");
- }
-
- public static String getKeyModifiersText (int modifiers)
- {
- // FIXME
- throw new InternalError ("unimplemented");
- }
-
- public boolean isActionKey ()
- {
- // FIXME
- return false;
- }
-
- public String paramString ()
- {
- return ("KeyEvent[" + keyCode + "," + keyChar + "," + modifiers
- + ";" + super.paramString () + "]");
- }
-
- private int keyCode;
- private char keyChar;
- private int modifiers;
-}
diff --git a/libjava/java/awt/event/KeyListener.java b/libjava/java/awt/event/KeyListener.java
deleted file mode 100644
index e08d67e214e..00000000000
--- a/libjava/java/awt/event/KeyListener.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/* 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;
-
-/**
- * @author Per Bothner <bothner@cygnus.com>
- * @date Fenruary, 1999.
- */
-
-/* Status: Believed complete and correct. */
-
-public interface KeyListener extends java.util.EventListener
-{
- public void keyPressed (KeyEvent w);
- public void keyReleased (KeyEvent w);
- public void keyTyped (KeyEvent w);
-}
diff --git a/libjava/java/awt/event/MouseAdapter.java b/libjava/java/awt/event/MouseAdapter.java
deleted file mode 100644
index 65189385738..00000000000
--- a/libjava/java/awt/event/MouseAdapter.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public abstract class MouseAdapter implements MouseListener
-{
- public void mouseClicked (MouseEvent e)
- {
- }
-
- public void mouseEntered (MouseEvent e)
- {
- }
-
- public void mouseExited (MouseEvent e)
- {
- }
-
- public void mousePressed (MouseEvent e)
- {
- }
-
- public void mouseReleased (MouseEvent e)
- {
- }
-}
diff --git a/libjava/java/awt/event/MouseEvent.java b/libjava/java/awt/event/MouseEvent.java
deleted file mode 100644
index e3dff045579..00000000000
--- a/libjava/java/awt/event/MouseEvent.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/* Copyright (C) 2000 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.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public class MouseEvent extends InputEvent
-{
- public static final int MOUSE_CLICKED = 500;
- public static final int MOUSE_DRAGGED = 506;
- public static final int MOUSE_ENTERED = 504;
- public static final int MOUSE_EXITED = 505;
- public static final int MOUSE_FIRST = 500;
- public static final int MOUSE_LAST = 506;
- public static final int MOUSE_MOVED = 503;
- public static final int MOUSE_PRESSED = 501;
- public static final int MOUSE_RELEASED = 502;
-
- public MouseEvent (Component source, int id, long when, int modifiers,
- int x, int y, int clickCount, boolean popupTrigger)
- {
- super (source, id);
- this.when = when;
- this.modifiers = modifiers;
- this.x = x;
- this.y = y;
- this.clickCount = clickCount;
- this.popupTrigger = popupTrigger;
- }
-
- public int getClickCount ()
- {
- return clickCount;
- }
-
- public Point getPoint ()
- {
- return new Point (x, y);
- }
-
- public int getX ()
- {
- return x;
- }
-
- public int getY ()
- {
- return y;
- }
-
- public boolean isPopupTrigger ()
- {
- return popupTrigger;
- }
-
- public String paramString ()
- {
- return ("MouseEvent[" + when + "," + modifiers
- + ",(" + x + "," + y + "),"
- + clickCount + "," + popupTrigger
- + ";" + super.paramString () + "]");
- }
-
- public void translatePoint (int x, int y)
- {
- this.x += x;
- this.y += y;
- }
-
- private long when;
- private int modifiers;
- private int x;
- private int y;
- private int clickCount;
- private boolean popupTrigger;
-}
diff --git a/libjava/java/awt/event/MouseListener.java b/libjava/java/awt/event/MouseListener.java
deleted file mode 100644
index 0f1b8243d8c..00000000000
--- a/libjava/java/awt/event/MouseListener.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface MouseListener extends java.util.EventListener
-{
- public void mouseClicked (MouseEvent e);
- public void mouseEntered (MouseEvent e);
- public void mouseExited (MouseEvent e);
- public void mousePressed (MouseEvent e);
- public void mouseReleased (MouseEvent e);
-}
diff --git a/libjava/java/awt/event/MouseMotionAdapter.java b/libjava/java/awt/event/MouseMotionAdapter.java
deleted file mode 100644
index ce30d2eb5c3..00000000000
--- a/libjava/java/awt/event/MouseMotionAdapter.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public abstract class MouseMotionAdapter implements MouseMotionListener
-{
- public void mouseDragged (MouseEvent e)
- {
- }
-
- public void mouseMoved (MouseEvent e)
- {
- }
-}
diff --git a/libjava/java/awt/event/MouseMotionListener.java b/libjava/java/awt/event/MouseMotionListener.java
deleted file mode 100644
index 6b12da5da3e..00000000000
--- a/libjava/java/awt/event/MouseMotionListener.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/* Copyright (C) 2000 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;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public interface MouseMotionListener extends java.util.EventListener
-{
- public void mouseDragged (MouseEvent e);
- public void mouseMoved (MouseEvent e);
-}
diff --git a/libjava/java/awt/event/PaintEvent.java b/libjava/java/awt/event/PaintEvent.java
deleted file mode 100644
index 7784c58ff7e..00000000000
--- a/libjava/java/awt/event/PaintEvent.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Copyright (C) 2000 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.*;
-
-/**
- * @author Tom Tromey <tromey@cygnus.com>
- * @date April 8, 2000
- */
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public class PaintEvent extends ComponentEvent
-{
- public static final int PAINT = 800;
- public static final int PAINT_FIRST = 800;
- public static final int PAINT_LAST = 801;
- public static final int UPDATE = 801;
-
- public PaintEvent (Component source, int id, Rectangle updateRect)
- {
- super (source, id);
- this.updateRect = updateRect;
- }
-
- public Rectangle getUpdateRect ()
- {
- return updateRect;
- }
-
- public String paramString ()
- {
- return ("PaintEvent[" + updateRect
- + ";" + super.paramString () + "]");
- }
-
- public void setUpdateRect (Rectangle updateRect)
- {
- this.updateRect = updateRect;
- }
-
- private Rectangle updateRect;
-}
diff --git a/libjava/java/awt/event/TextEvent.java b/libjava/java/awt/event/TextEvent.java
deleted file mode 100644
index 2d3d26a78d6..00000000000
--- a/libjava/java/awt/event/TextEvent.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Copyright (C) 1999, 2000 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.*;
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public class TextEvent extends AWTEvent
-{
- public static final int TEXT_FIRST = 900;
- public static final int TEXT_LAST = 900;
- public static final int TEXT_VALUE_CHANGED = 900;
-
- public TextEvent (Object source, int id)
- {
- super (source, id);
- }
-
- public String paramString ()
- {
- return super.paramString ();
- }
-}
diff --git a/libjava/java/awt/event/TextListener.java b/libjava/java/awt/event/TextListener.java
deleted file mode 100644
index 45c4da898ee..00000000000
--- a/libjava/java/awt/event/TextListener.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/* 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;
-
-/**
- * @author Per Bothner <bothner@cygnus.com>
- * @date Fenruary, 1999.
- */
-
-/* Status: Believed complete and correct. */
-
-public interface TextListener extends java.util.EventListener
-{
- public void textValueChanged (TextEvent w);
-}
-
diff --git a/libjava/java/awt/event/WindowAdapter.java b/libjava/java/awt/event/WindowAdapter.java
deleted file mode 100644
index caf2b18b48f..00000000000
--- a/libjava/java/awt/event/WindowAdapter.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/* 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;
-
-/**
- * @author Per Bothner <bothner@cygnus.com>
- * @date Fenruary, 1999.
- */
-
-/* Status: Believed complete and correct. */
-
-public class WindowAdapter implements WindowListener
-{
- public void windowActivated (WindowEvent w) { }
- public void windowClosed (WindowEvent w) { }
- public void windowClosing (WindowEvent w) { }
- public void windowDeactivated (WindowEvent w) { }
- public void windowDeiconified (WindowEvent w) { }
- public void windowIconified (WindowEvent w) { }
- public void windowOpened (WindowEvent w) { }
-}
diff --git a/libjava/java/awt/event/WindowEvent.java b/libjava/java/awt/event/WindowEvent.java
deleted file mode 100644
index 7e00f0e1348..00000000000
--- a/libjava/java/awt/event/WindowEvent.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/* Copyright (C) 1999, 2000 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.*;
-
-/* Status: Believed complete and correct to JDK 1.2. */
-
-public class WindowEvent extends ComponentEvent
-{
- public static final int WINDOW_ACTIVATED = 205;
- public static final int WINDOW_CLOSED = 202;
- public static final int WINDOW_CLOSING = 201;
- public static final int WINDOW_DEACTIVATED = 206;
- public static final int WINDOW_DEICONIFIED = 204;
- public static final int WINDOW_FIRST = 200;
- public static final int WINDOW_ICONIFIED = 203;
- public static final int WINDOW_LAST = 206;
- public static final int WINDOW_OPENED = 200;
-
- public WindowEvent (Window source, int id)
- {
- super (source, id);
- }
-
- public Window getWindow ()
- {
- return (Window) source;
- }
-
- public String paramString ()
- {
- return super.paramString ();
- }
-}
diff --git a/libjava/java/awt/event/WindowListener.java b/libjava/java/awt/event/WindowListener.java
deleted file mode 100644
index e939ce7dcf6..00000000000
--- a/libjava/java/awt/event/WindowListener.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/* 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;
-
-/**
- * @author Per Bothner <bothner@cygnus.com>
- * @date Fenruary, 1999.
- */
-
-/* Status: Believed complete and correct. */
-
-public interface WindowListener extends java.util.EventListener
-{
- public void windowActivated (WindowEvent w);
- public void windowClosed (WindowEvent w);
- public void windowClosing (WindowEvent w);
- public void windowDeactivated (WindowEvent w);
- public void windowDeiconified (WindowEvent w);
- public void windowIconified (WindowEvent w);
- public void windowOpened (WindowEvent w);
-}
diff --git a/libjava/java/awt/geom/Dimension2D.java b/libjava/java/awt/geom/Dimension2D.java
deleted file mode 100644
index 0814e03f18f..00000000000
--- a/libjava/java/awt/geom/Dimension2D.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/* 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.geom;
-
-/**
- * @author Per Bothner <bothner@cygnus.com>
- * @date Fenruary, 1999.
- */
-
-/* Written using online API docs for JDK 1.2 beta from http://www.javasoft.com.
- * Status: Believed complete and correct.
- */
-
-public abstract class Dimension2D implements Cloneable
-{
- public abstract double getWidth();
- public abstract double getHeight();
-
- public abstract void setSize (double width, double height);
-
- public void setSize (Dimension2D dim)
- {
- setSize(dim.getWidth(), dim.getHeight());
- }
-
- public Object clone ()
- {
- return super.clone();
- }
-}
diff --git a/libjava/java/awt/geom/Point2D.java b/libjava/java/awt/geom/Point2D.java
deleted file mode 100644
index c0f2056a8ca..00000000000
--- a/libjava/java/awt/geom/Point2D.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/* 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.geom;
-
-/**
- * @author Per Bothner <bothner@cygnus.com>
- * @date Fenruary 8, 1999.
- */
-
-/* Written using "Java Class Libraries", 2nd edition, plus online
- * API docs for JDK 1.2 beta from http://www.javasoft.com.
- * Status: Believed complete and correct, except that neither toString
- * nor hashCode have been compared with JDK output.
- */
-
-public abstract class Point2D implements Cloneable
-{
- public abstract double getX();
- public abstract double getY();
-
- public abstract void setLocation (double x, double y);
-
- public void setLocation (Point2D pt) { setLocation(pt.getX(), pt.getY()); }
-
- static public double distanceSq (double X1, double Y1, double X2, double Y2)
- {
- X2 -= X1;
- Y2 -= Y1;
- return X2*X2 + Y2*Y2;
- }
-
- static public double distance (double X1, double Y1, double X2, double Y2)
- {
- return Math.sqrt(distance(X1, Y1, X2, Y2));
- }
-
- public double distanceSq (double PX, double PY)
- {
- return distanceSq (getX(), PX, getY(), PY);
- }
-
- public double distance (double PX, double PY)
- {
- return distance (getX(), PX, getY(), PY);
- }
-
- public double distanceSq (Point2D pt)
- {
- return distanceSq (getX(), pt.getX(), getY(), pt.getY());
- }
-
- public double distance (Point2D pt)
- {
- return distance (getX(), pt.getX(), getY(), pt.getY());
- }
-
- public int hashCode() { return (int) getX() ^ (int) getY(); }
-
- public Object clone()
- {
- return super.clone();
- }
-}
diff --git a/libjava/java/awt/natToolkit.cc b/libjava/java/awt/natToolkit.cc
deleted file mode 100644
index b2be56c9fbc..00000000000
--- a/libjava/java/awt/natToolkit.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-/* Copyright (C) 1999 Free Software Foundation
-
- This file is part of libgcj.
-
-This software is copyrighted work licensed under the terms of the
-Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
-details. */
-
-#include <config.h>
-
-/*#define ENABLE_GTK*/
-
-#include <gcj/cni.h>
-#include <java/awt/Toolkit.h>
-#ifdef ENABLE_GTK
-#include <java/awt/peer/GtkToolkit.h>
-#endif
-
-void
-java::awt::Toolkit::init()
-{
-#ifdef ENABLE_GTK
- defaultToolkit = new java::awt::peer::GtkToolkit();
-#else
- JvFail("no awt (graphics) toolkit available");
-#endif
-}
diff --git a/libjava/java/awt/peer/ComponentPeer.java b/libjava/java/awt/peer/ComponentPeer.java
deleted file mode 100644
index 806b9623de2..00000000000
--- a/libjava/java/awt/peer/ComponentPeer.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/* 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.peer;
-import java.awt.*;
-
-/* A very incomplete placeholder. */
-
-public interface ComponentPeer
-{
- public abstract Toolkit getToolkit ();
-
- public Dimension getMinimumSize ();
-
- public Dimension getPreferredSize ();
-
- public void setBounds (int x, int y, int w, int h);
-}
diff --git a/libjava/java/awt/peer/ContainerPeer.java b/libjava/java/awt/peer/ContainerPeer.java
deleted file mode 100644
index c8e459ac0df..00000000000
--- a/libjava/java/awt/peer/ContainerPeer.java
+++ /dev/null
@@ -1,15 +0,0 @@
-/* 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.peer;
-
-/* A very incomplete placeholder. */
-
-public interface ContainerPeer extends ComponentPeer
-{
-}
diff --git a/libjava/java/awt/peer/FramePeer.java b/libjava/java/awt/peer/FramePeer.java
deleted file mode 100644
index e68a17f5267..00000000000
--- a/libjava/java/awt/peer/FramePeer.java
+++ /dev/null
@@ -1,16 +0,0 @@
-/* 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.peer;
-
-/* A very incomplete placeholder. */
-
-public interface FramePeer extends WindowPeer
-{
- void setTitle(String title);
-}
diff --git a/libjava/java/awt/peer/WindowPeer.java b/libjava/java/awt/peer/WindowPeer.java
deleted file mode 100644
index 109992d64ed..00000000000
--- a/libjava/java/awt/peer/WindowPeer.java
+++ /dev/null
@@ -1,15 +0,0 @@
-/* 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.peer;
-
-/* A very incomplete placeholder. */
-
-public interface WindowPeer extends ContainerPeer
-{
-}