summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--ChangeLog54
-rw-r--r--javax/Makefile.am2
-rw-r--r--javax/swing/.cvsignore2
-rw-r--r--javax/swing/AbstractButton.java3
-rw-r--r--javax/swing/CellEditor.java7
-rw-r--r--javax/swing/Icon.java3
-rw-r--r--javax/swing/ImageIcon.java4
-rw-r--r--javax/swing/JComponent.java2
-rw-r--r--javax/swing/JEditorPane.java12
-rw-r--r--javax/swing/JFrame.java6
-rw-r--r--javax/swing/JInternalFrame.java8
-rw-r--r--javax/swing/JLabel.java8
-rw-r--r--javax/swing/JTable.java9
-rw-r--r--javax/swing/JTextField.java4
-rw-r--r--javax/swing/KeyStroke.java8
-rw-r--r--javax/swing/Makefile.am61
-rw-r--r--javax/swing/MenuElement.java7
-rw-r--r--javax/swing/MenuSelectionManager.java7
-rw-r--r--javax/swing/UIDefaults.java275
-rw-r--r--javax/swing/border/.cvsignore2
-rw-r--r--javax/swing/border/Makefile.am10
-rw-r--r--javax/swing/event/.cvsignore2
-rw-r--r--javax/swing/event/Makefile.am44
-rw-r--r--javax/swing/plaf/.cvsignore2
-rw-r--r--javax/swing/plaf/ColorUIResource.java24
-rw-r--r--javax/swing/plaf/DimensionUIResource.java12
-rw-r--r--javax/swing/plaf/FontUIResource.java16
-rw-r--r--javax/swing/plaf/IconUIResource.java25
-rw-r--r--javax/swing/plaf/InsetsUIResource.java12
-rw-r--r--javax/swing/plaf/Makefile.am19
-rw-r--r--javax/swing/plaf/basic/.cvsignore2
-rw-r--r--javax/swing/plaf/basic/BasicBorders.java42
-rw-r--r--javax/swing/plaf/basic/BasicIconFactory.java45
-rw-r--r--javax/swing/plaf/basic/BasicLookAndFeel.java2245
-rw-r--r--javax/swing/plaf/basic/Makefile.am19
-rw-r--r--javax/swing/plaf/metal/.cvsignore2
-rw-r--r--javax/swing/plaf/metal/Makefile.am2
-rw-r--r--javax/swing/table/.cvsignore2
-rw-r--r--javax/swing/table/DefaultTableCellRenderer.java31
-rw-r--r--javax/swing/table/Makefile.am9
-rw-r--r--javax/swing/text/.cvsignore2
-rw-r--r--javax/swing/text/JTextComponent.java59
-rw-r--r--javax/swing/text/Makefile.am22
-rw-r--r--javax/swing/tree/.cvsignore2
-rw-r--r--javax/swing/tree/Makefile.am18
-rw-r--r--javax/swing/tree/TreeCellEditor.java1
-rw-r--r--javax/swing/undo/.cvsignore2
-rw-r--r--javax/swing/undo/Makefile.am10
-rw-r--r--lib/standard.omit1
50 files changed, 1740 insertions, 1427 deletions
diff --git a/AUTHORS b/AUTHORS
index 8ee87f82b..a0f37460c 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -20,6 +20,7 @@ John Leuner (jewel@debian.org)
Warren Levy (warrenl@cygnus.com)
Bryce McKinlay (bryce@waitaki.otago.ac.nz)
Aaron M. Renn (arenn@urbanophile.com)
+Andrew Selkirk (aselkirk@sympatico.ca)
Tom Tromey (tromey@cygnus.com)
Ronald Veldema (rveldema@cs.vu.nl)
Mark Wielaard (mark@klomp.org)
diff --git a/ChangeLog b/ChangeLog
index 8ced35c2f..abbff5814 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,59 @@
2002-04-30 Eric Blake <ebb9@email.byu.edu>
+ * AUTHORS: Add Andrew Selkirk.
+ * configure.in: Configure the swing directories.
+ * lib/standard.omit: Made sure swing at least compiles (although
+ it is non-functional).
+ * javax/Makefile.am: Visit swing.
+ * javax/swing/.cvsignore: New file.
+ * javax/swing/AbstractButton.java: Fix for compilation.
+ * javax/swing/CellEditor.java: New file.
+ * javax/swing/Icon.java: Fix for compilation.
+ * javax/swing/ImageIcon.java: Fix for compilation.
+ * javax/swing/JComponent.java: Fix for compilation.
+ * javax/swing/JEditorPane.java: Fix for compilation.
+ * javax/swing/JFrame.java: Fix for compilation.
+ * javax/swing/JInternalFrame.java: New file.
+ * javax/swing/JLabel.java: Fix for compilation.
+ * javax/swing/JTable.java: New file.
+ * javax/swing/JTextField.java: Fix for compilation.
+ * javax/swing/KeyStroke.java: Fix for compilation.
+ * javax/swing/Makefile.am: New file.
+ * javax/swing/MenuElement.java: New file.
+ * javax/swing/MenuSelectionManager.java: New file.
+ * javax/swing/UIDefaults.java: Fix for compilation.
+ * javax/swing/border/.cvsignore: New file.
+ * javax/swing/border/Makefile.am: New file.
+ * javax/swing/event/.cvsignore: New file.
+ * javax/swing/event/Makefile.am: New file.
+ * javax/swing/plaf/.cvsignore: New file.
+ * javax/swing/plaf/ColorUIResource.java: New file.
+ * javax/swing/plaf/DimensionUIResource.java: New file.
+ * javax/swing/plaf/FontUIResource.java: New file.
+ * javax/swing/plaf/IconUIResource.java: New file.
+ * javax/swing/plaf/InsetsUIResource.java: New file.
+ * javax/swing/plaf/Makefile.am: New file.
+ * javax/swing/plaf/basic/.cvsignore: New file.
+ * javax/swing/plaf/basic/BasicBorders.java: New file.
+ * javax/swing/plaf/basic/BasicIconFactory.java: New file.
+ * javax/swing/plaf/basic/BasicLookAndFeel.java: Fix for compilation.
+ * javax/swing/plaf/basic/Makefile.am: New file.
+ * javax/swing/plaf/metal/.cvsignore: New file.
+ * javax/swing/plaf/metal/Makefile.am: New file.
+ * javax/swing/table/.cvsignore: New file.
+ * javax/swing/table/DefaultTableCellRenderer.java: New file.
+ * javax/swing/table/Makefile.am: New file.
+ * javax/swing/text/.cvsignore: New file.
+ * javax/swing/text/JTextComponent.java: Fix for compilation.
+ * javax/swing/text/Makefile.am: New file.
+ * javax/swing/tree/.cvsignore: New file.
+ * javax/swing/tree/Makefile.am: New file.
+ * javax/swing/tree/TreeCellEditor.java: Fix for compilation.
+ * javax/swing/undo/.cvsignore: New file.
+ * javax/swing/undo/Makefile.am: New file.
+
+2002-04-30 Eric Blake <ebb9@email.byu.edu>
+
* java/security/cert/Makefile.am (EXTRA_DIST): Add CertPath.java.
* java/security/cert/CertPath.java: New file.
* java/security/cert/CertificateFactory.java (generateCertPath):
diff --git a/javax/Makefile.am b/javax/Makefile.am
index 3dc089d5f..fec7ca8b2 100644
--- a/javax/Makefile.am
+++ b/javax/Makefile.am
@@ -1,3 +1,3 @@
## Input file for automake to generate the Makefile.in used by configure
-SUBDIRS = accessibility naming
+SUBDIRS = accessibility naming swing
diff --git a/javax/swing/.cvsignore b/javax/swing/.cvsignore
new file mode 100644
index 000000000..3dda72986
--- /dev/null
+++ b/javax/swing/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/javax/swing/AbstractButton.java b/javax/swing/AbstractButton.java
index 2a2d55b8c..a36a3d89a 100644
--- a/javax/swing/AbstractButton.java
+++ b/javax/swing/AbstractButton.java
@@ -203,7 +203,8 @@ public abstract class AbstractButton extends JComponent
default_icon = defaultIcon;
if (default_icon != null)
{
- default_icon.setParent(this);
+ // XXX FIXME - icons do not know their parent
+// default_icon.setParent(this);
}
revalidate();
repaint();
diff --git a/javax/swing/CellEditor.java b/javax/swing/CellEditor.java
new file mode 100644
index 000000000..97fb275c7
--- /dev/null
+++ b/javax/swing/CellEditor.java
@@ -0,0 +1,7 @@
+package javax.swing;
+/**
+ * STUBBED
+ */
+public interface CellEditor
+{
+} // interface CellEditor
diff --git a/javax/swing/Icon.java b/javax/swing/Icon.java
index 1dd46654c..59d850858 100644
--- a/javax/swing/Icon.java
+++ b/javax/swing/Icon.java
@@ -7,7 +7,4 @@ public interface Icon
int getIconHeight();
int getIconWidth();
void paintIcon(Component c, Graphics g, int x, int y);
-
- // not in suns's spec:
- void setParent(Component p);
}
diff --git a/javax/swing/ImageIcon.java b/javax/swing/ImageIcon.java
index 414f01480..bd4250221 100644
--- a/javax/swing/ImageIcon.java
+++ b/javax/swing/ImageIcon.java
@@ -11,12 +11,12 @@ public class ImageIcon implements Icon
String file, descr;
Component observer;
- ImageIcon(String s)
+ public ImageIcon(String s)
{
this(s, "");
}
- ImageIcon(String file,
+ public ImageIcon(String file,
String descr)
{
this.file = file;
diff --git a/javax/swing/JComponent.java b/javax/swing/JComponent.java
index ebea9431d..cbfe9a7c1 100644
--- a/javax/swing/JComponent.java
+++ b/javax/swing/JComponent.java
@@ -162,7 +162,7 @@ public abstract class JComponent extends Container implements Serializable
//Reports a bound property change. protected
}
- public void firePropertyChange(String propertyName, Object oldValue, Object newValue)
+ protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)
{
// Support for reporting bound property changes.
}
diff --git a/javax/swing/JEditorPane.java b/javax/swing/JEditorPane.java
index 9d9fdae97..88b1a1054 100644
--- a/javax/swing/JEditorPane.java
+++ b/javax/swing/JEditorPane.java
@@ -72,9 +72,9 @@ public class JEditorPane extends JTextComponent
return super.getPreferredSize();
}
- boolean getScrollableTracksViewportHeight()
+ public boolean getScrollableTracksViewportHeight()
{ return false; }
- boolean getScrollableTracksViewportWidth()
+ public boolean getScrollableTracksViewportWidth()
{ return false; }
URL getPage()
@@ -179,10 +179,4 @@ public class JEditorPane extends JTextComponent
{
super.setText(t);
}
-}
-
-
-
-
-
-
+} // class JEditorPane
diff --git a/javax/swing/JFrame.java b/javax/swing/JFrame.java
index cbb4c62b8..6c1df9a2c 100644
--- a/javax/swing/JFrame.java
+++ b/javax/swing/JFrame.java
@@ -144,8 +144,10 @@ public class JFrame extends Frame
/////////////////////////////////////////////////////////////////////////////////
- AccessibleContext getAccessibleContext()
- { return null; }
+ public AccessibleContext getAccessibleContext()
+ {
+ return accessibleContext;
+ }
int getDefaultCloseOperation()
{ return close_action; }
diff --git a/javax/swing/JInternalFrame.java b/javax/swing/JInternalFrame.java
new file mode 100644
index 000000000..05817c259
--- /dev/null
+++ b/javax/swing/JInternalFrame.java
@@ -0,0 +1,8 @@
+package javax.swing;
+/**
+ * STUBBED
+ */
+public class JInternalFrame extends JComponent
+/*implements Accessible, WindowConstants, RootPaneContainer*/
+{
+} // class JInternalFrame
diff --git a/javax/swing/JLabel.java b/javax/swing/JLabel.java
index 01b6def97..3160f98f5 100644
--- a/javax/swing/JLabel.java
+++ b/javax/swing/JLabel.java
@@ -162,7 +162,8 @@ public class JLabel extends JComponent implements SwingConstants
this.icon = icon;
if (icon != null)
{
- icon.setParent(this);
+ // XXX FIXME - icons do not know their parent
+// icon.setParent(this);
}
revalidate();
repaint();
@@ -200,8 +201,3 @@ public class JLabel extends JComponent implements SwingConstants
setUI(b);
}
}
-
-
-
-
-
diff --git a/javax/swing/JTable.java b/javax/swing/JTable.java
new file mode 100644
index 000000000..f0a681e2f
--- /dev/null
+++ b/javax/swing/JTable.java
@@ -0,0 +1,9 @@
+package javax.swing;
+/**
+ * STUBBED
+ */
+public class JTable extends JComponent
+/*implements TableModelListener, Scrollable, TableColumnModelListener,
+ ListSelectionListener, CellEditorListener, Accessible*/
+{
+} // class JTable
diff --git a/javax/swing/JTextField.java b/javax/swing/JTextField.java
index 036a348ff..13b711ac3 100644
--- a/javax/swing/JTextField.java
+++ b/javax/swing/JTextField.java
@@ -12,6 +12,10 @@ public class JTextField extends JEditorPane
{
Vector actions = new Vector();
+ public JTextField()
+ {
+ }
+
public JTextField(int a)
{
}
diff --git a/javax/swing/KeyStroke.java b/javax/swing/KeyStroke.java
index dbb0ab443..1b84da477 100644
--- a/javax/swing/KeyStroke.java
+++ b/javax/swing/KeyStroke.java
@@ -1,8 +1,14 @@
package javax.swing;
import java.io.*;
-
+/**
+ * STUBBED
+ */
public class KeyStroke implements Serializable
{
+ public static KeyStroke getKeyStroke(int code, int modifiers)
+ {
+ return null;
+ }
}
diff --git a/javax/swing/Makefile.am b/javax/swing/Makefile.am
new file mode 100644
index 000000000..41883b20f
--- /dev/null
+++ b/javax/swing/Makefile.am
@@ -0,0 +1,61 @@
+## Input file for automake to generate the Makefile.in used by configure
+
+SUBDIRS = border event plaf table text tree undo
+
+EXTRA_DIST = \
+AbstractAction.java \
+AbstractButton.java \
+AbstractListModel.java \
+AbstractSet.java \
+Action.java \
+BorderFactory.java \
+Box.java \
+BoxLayout.java \
+ButtonGroup.java \
+ButtonModel.java \
+ComponentInputMap.java \
+DefaultButtonModel.java \
+DefaultCellRenderer.java \
+DefaultListModel.java \
+DefaultListSelectionModel.java \
+GrayFilter.java \
+Icon.java \
+ImageIcon.java \
+InputMap.java \
+JApplet.java \
+JButton.java \
+JCheckBox.java \
+JComponent.java \
+JDialog.java \
+JEditorPane.java \
+JFrame.java \
+JLabel.java \
+JLayeredPane.java \
+JList.java \
+JMenuBar.java \
+JOptionPane.java \
+JPanel.java \
+JRadioButton.java \
+JRootPane.java \
+JScrollBar.java \
+JScrollPane.java \
+JTabbedPane.java \
+JTextField.java \
+JToggleButton.java \
+JToolTip.java \
+JTree.java \
+JViewport.java \
+JWindow.java \
+KeyStroke.java \
+ListCellRenderer.java \
+ListModel.java \
+ListSelectionModel.java \
+LookAndFeel.java \
+Scrollable.java \
+SwingConstants.java \
+SwingUtilities.java \
+Timer.java \
+ToggleButtonModel.java \
+UIDefaults.java \
+UIManager.java \
+UnsupportedLookAndFeelException.java
diff --git a/javax/swing/MenuElement.java b/javax/swing/MenuElement.java
new file mode 100644
index 000000000..bd36c6ac7
--- /dev/null
+++ b/javax/swing/MenuElement.java
@@ -0,0 +1,7 @@
+package javax.swing;
+/**
+ * STUBBED
+ */
+public interface MenuElement
+{
+} // interface MenuElement
diff --git a/javax/swing/MenuSelectionManager.java b/javax/swing/MenuSelectionManager.java
new file mode 100644
index 000000000..25e44e055
--- /dev/null
+++ b/javax/swing/MenuSelectionManager.java
@@ -0,0 +1,7 @@
+package javax.swing;
+/**
+ * STUBBED
+ */
+public class MenuSelectionManager
+{
+} // class MenuSelectionManager
diff --git a/javax/swing/UIDefaults.java b/javax/swing/UIDefaults.java
index 4cc868935..827881b57 100644
--- a/javax/swing/UIDefaults.java
+++ b/javax/swing/UIDefaults.java
@@ -1,10 +1,14 @@
package javax.swing;
-import java.util.*;
-import javax.swing.*;
-import javax.swing.plaf.*;
-
-import java.awt.*;
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Font;
+import java.awt.Insets;
+import java.beans.PropertyChangeListener;
+import java.util.Hashtable;
+import java.util.Locale;
+import javax.swing.border.Border;
+import javax.swing.plaf.ComponentUI;
/**
@@ -14,31 +18,250 @@ import java.awt.*;
*
* @author Ronald Veldema (rveldema@cs.vu.nl)
*/
-
-
-
public class UIDefaults extends Hashtable
{
- public ComponentUI getUI(JComponent a)
+ public interface ActiveValue
+ {
+ Object createValue(UIDefaults table);
+ } // interface ActiveValue
+
+ public static class LazyInputMap implements LazyValue
+ {
+ public LazyInputMap(Object[] bindings)
+ {
+ }
+ public Object createValue(UIDefaults table)
{
- String pp = a.getUIClassID(); //a.getClass().getName();
-
- ComponentUI p = (ComponentUI) get(pp);
- if (p == null)
- {
- System.out.println("failed to locate UI:" + pp);
- }
- else
- {
- System.out.println("UI Located ----> " + pp + " === " + p);
- }
- return p;
+ throw new Error("not implemented");
}
+ } // class LazyInputMap
- public Insets getInsets(Object key)
+ public interface LazyValue
+ {
+ Object createValue(UIDefaults table);
+ } // interface LazyValue
+
+ public static class ProxyLazyValue
+ {
+ public ProxyLazyValue(String s)
+ {
+ throw new Error("not implemented");
+ }
+ public ProxyLazyValue(String c, String m)
+ {
+ throw new Error("not implemented");
+ }
+ public ProxyLazyValue(String c, Object[] o)
+ {
+ throw new Error("not implemented");
+ }
+ public ProxyLazyValue(String c, String m, Object[] o)
+ {
+ throw new Error("not implemented");
+ }
+ public Object createValue(UIDefaults table)
{
- Insets s = (Insets) get(key);
- System.out.println("insets----> " + s);
- return s;
+ throw new Error("not implemented");
}
-}
+ } // class ProxyLazyValue
+
+ public UIDefaults()
+ {
+ }
+
+ public UIDefaults(Object[] entries)
+ {
+ // XXX
+ }
+
+ public Object get(Object key)
+ {
+ // XXX Obey 1.4 specs
+ return super.get(key);
+ }
+
+ public Object get(Object key, Locale l)
+ {
+ throw new Error("not implemented");
+ }
+
+ public Object put(Object key, Object value)
+ {
+ throw new Error("not implemented");
+ }
+
+ public void putDefaults(Object[] list)
+ {
+ throw new Error("not implemented");
+ }
+
+ public Font getFont(Object key)
+ {
+ Object o = get(key);
+ return o instanceof Font ? (Font) o : null;
+ }
+
+ public Font getFont(Object key, Locale l)
+ {
+ Object o = get(key, l);
+ return o instanceof Font ? (Font) o : null;
+ }
+
+ public Color getColor(Object key)
+ {
+ Object o = get(key);
+ return o instanceof Color ? (Color) o : null;
+ }
+
+ public Color getColor(Object key, Locale l)
+ {
+ Object o = get(key, l);
+ return o instanceof Color ? (Color) o : null;
+ }
+
+ public Icon getIcon(Object key)
+ {
+ Object o = get(key);
+ return o instanceof Icon ? (Icon) o : null;
+ }
+
+ public Icon getIcon(Object key, Locale l)
+ {
+ Object o = get(key, l);
+ return o instanceof Icon ? (Icon) o : null;
+ }
+
+ public Border getBorder(Object key)
+ {
+ Object o = get(key);
+ return o instanceof Border ? (Border) o : null;
+ }
+
+ public Border getBorder(Object key, Locale l)
+ {
+ Object o = get(key, l);
+ return o instanceof Border ? (Border) o : null;
+ }
+
+ public String getString(Object key)
+ {
+ Object o = get(key);
+ return o instanceof String ? (String) o : null;
+ }
+
+ public String getString(Object key, Locale l)
+ {
+ Object o = get(key, l);
+ return o instanceof String ? (String) o : null;
+ }
+
+ public int getInt(Object key)
+ {
+ Object o = get(key);
+ return o instanceof Integer ? ((Integer) o).intValue() : 0;
+ }
+
+ public int getInt(Object key, Locale l)
+ {
+ Object o = get(key, l);
+ return o instanceof Integer ? ((Integer) o).intValue() : 0;
+ }
+
+ public boolean getBoolean(Object key)
+ {
+ return Boolean.TRUE.equals(get(key));
+ }
+
+ public boolean getBoolean(Object key, Locale l)
+ {
+ return Boolean.TRUE.equals(get(key, l));
+ }
+
+ public Insets getInsets(Object key)
+ {
+ Object o = get(key);
+ return o instanceof Insets ? (Insets) o : null;
+ }
+
+ public Insets getInsets(Object key, Locale l)
+ {
+ Object o = get(key, l);
+ return o instanceof Insets ? (Insets) o : null;
+ }
+
+ public Dimension getDimension(Object key)
+ {
+ Object o = get(key);
+ return o instanceof Dimension ? (Dimension) o : null;
+ }
+
+ public Dimension getDimension(Object key, Locale l)
+ {
+ Object o = get(key, l);
+ return o instanceof Dimension ? (Dimension) o : null;
+ }
+
+ public Class getUIClass(String id, ClassLoader loader)
+ {
+ throw new Error("not implemented");
+ }
+
+ public Class getUIClass(String id)
+ {
+ throw new Error("not implemented");
+ }
+
+ protected void getUIError(String msg)
+ {
+ // Does nothing unless overridden.
+ }
+
+ public ComponentUI getUI(JComponent a)
+ {
+ String pp = a.getUIClassID();
+ ComponentUI p = (ComponentUI) get(pp);
+ if (p == null)
+ getUIError("failed to locate UI:" + pp);
+ return p;
+ }
+
+ public void addPropertyChangeListener(PropertyChangeListener l)
+ {
+ throw new Error("not implemented");
+ }
+
+ public void removePropertyChangeListener(PropertyChangeListener l)
+ {
+ throw new Error("not implemented");
+ }
+
+ public PropertyChangeListener[] getPropertyChangeListeners()
+ {
+ throw new Error("not implemented");
+ }
+
+ protected void firePropertyChange(String property, Object o, Object n)
+ {
+ throw new Error("not implemented");
+ }
+
+ public void addResourceBundle(String name)
+ {
+ throw new Error("not implemented");
+ }
+
+ public void removeResourceBundle(String name)
+ {
+ throw new Error("not implemented");
+ }
+
+ public void setDefaultLocale(Locale l)
+ {
+ throw new Error("not implemented");
+ }
+
+ public Locale getDefaultLocale()
+ {
+ throw new Error("not implemented");
+ }
+} // class UIDefaults
diff --git a/javax/swing/border/.cvsignore b/javax/swing/border/.cvsignore
new file mode 100644
index 000000000..3dda72986
--- /dev/null
+++ b/javax/swing/border/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/javax/swing/border/Makefile.am b/javax/swing/border/Makefile.am
new file mode 100644
index 000000000..ca673b316
--- /dev/null
+++ b/javax/swing/border/Makefile.am
@@ -0,0 +1,10 @@
+EXTRA_DIST = \
+AbstractBorder.java \
+BevelBorder.java \
+Border.java \
+CompoundBorder.java \
+EmptyBorder.java \
+EtchedBorder.java \
+LineBorder.java \
+MatteBorder.java \
+TitledBorder.java
diff --git a/javax/swing/event/.cvsignore b/javax/swing/event/.cvsignore
new file mode 100644
index 000000000..3dda72986
--- /dev/null
+++ b/javax/swing/event/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/javax/swing/event/Makefile.am b/javax/swing/event/Makefile.am
new file mode 100644
index 000000000..1e70b971d
--- /dev/null
+++ b/javax/swing/event/Makefile.am
@@ -0,0 +1,44 @@
+EXTRA_DIST = \
+AncestorEvent.java \
+AncestorListener.java \
+CaretEvent.java \
+CaretListener.java \
+CellEditorListener.java \
+ChangeEvent.java \
+ChangeListener.java \
+DocumentEvent.java \
+DocumentListener.java \
+EventListenerList.java \
+HyperlinkEvent.java \
+HyperlinkListener.java \
+InternalFrameAdapter.java \
+InternalFrameEvent.java \
+InternalFrameListener.java \
+ListDataEvent.java \
+ListDataListener.java \
+ListSelectionEvent.java \
+ListSelectionListener.java \
+MenuDragMouseEvent.java \
+MenuDragMouseListener.java \
+MenuEvent.java \
+MenuKeyEvent.java \
+MenuKeyListener.java \
+MenuListener.java \
+MouseInputAdapter.java \
+MouseInputListener.java \
+PopupMenuEvent.java \
+PopupMenuListener.java \
+SwingPropertyChangeSupport.java \
+TableColumnModelEvent.java \
+TableColumnModelListener.java \
+TableModelEvent.java \
+TableModelListener.java \
+TreeExpansionEvent.java \
+TreeExpansionListener.java \
+TreeModelEvent.java \
+TreeModelListener.java \
+TreeSelectionEvent.java \
+TreeSelectionListener.java \
+TreeWillExpandListener.java \
+UndoableEditEvent.java \
+UndoableEditListener.java
diff --git a/javax/swing/plaf/.cvsignore b/javax/swing/plaf/.cvsignore
new file mode 100644
index 000000000..3dda72986
--- /dev/null
+++ b/javax/swing/plaf/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/javax/swing/plaf/ColorUIResource.java b/javax/swing/plaf/ColorUIResource.java
new file mode 100644
index 000000000..86ac7b1e5
--- /dev/null
+++ b/javax/swing/plaf/ColorUIResource.java
@@ -0,0 +1,24 @@
+package javax.swing.plaf;
+import java.awt.Color;
+/**
+ * STUBBED
+ */
+public class ColorUIResource extends Color implements UIResource
+{
+ public ColorUIResource(Color c)
+ {
+ super(c.getRGB());
+ }
+ public ColorUIResource(float r, float g, float b)
+ {
+ super(r, g, b, 1.0f);
+ }
+ public ColorUIResource(int rgb)
+ {
+ super(rgb, false);
+ }
+ public ColorUIResource(int r, int g, int b)
+ {
+ super(r, g, b, 255);
+ }
+} // class ColorUIResource
diff --git a/javax/swing/plaf/DimensionUIResource.java b/javax/swing/plaf/DimensionUIResource.java
new file mode 100644
index 000000000..5fe2ec8e1
--- /dev/null
+++ b/javax/swing/plaf/DimensionUIResource.java
@@ -0,0 +1,12 @@
+package javax.swing.plaf;
+import java.awt.Dimension;
+/**
+ * STUBBED
+ */
+public class DimensionUIResource extends Dimension implements UIResource
+{
+ public DimensionUIResource(int w, int h)
+ {
+ super(w, h);
+ }
+} // class DimensionUIResource
diff --git a/javax/swing/plaf/FontUIResource.java b/javax/swing/plaf/FontUIResource.java
new file mode 100644
index 000000000..46bca96e4
--- /dev/null
+++ b/javax/swing/plaf/FontUIResource.java
@@ -0,0 +1,16 @@
+package javax.swing.plaf;
+import java.awt.Font;
+/**
+ * STUBBED
+ */
+public class FontUIResource extends Font implements UIResource
+{
+ public FontUIResource(Font f)
+ {
+ super(f.getName(), f.getStyle(), f.getSize());
+ }
+ public FontUIResource(String name, int style, int size)
+ {
+ super(name, style, size);
+ }
+} // class FontUIResource
diff --git a/javax/swing/plaf/IconUIResource.java b/javax/swing/plaf/IconUIResource.java
new file mode 100644
index 000000000..02f1ea072
--- /dev/null
+++ b/javax/swing/plaf/IconUIResource.java
@@ -0,0 +1,25 @@
+package javax.swing.plaf;
+import java.awt.Component;
+import java.awt.Graphics;
+import java.io.Serializable;
+import javax.swing.Icon;
+/**
+ * STUBBED
+ */
+public class IconUIResource implements Icon, UIResource, Serializable
+{
+ public IconUIResource(Icon delegate)
+ {
+ }
+ public void paintIcon(Component c, Graphics g, int x, int y)
+ {
+ }
+ public int getIconWidth()
+ {
+ return 0;
+ }
+ public int getIconHeight()
+ {
+ return 0;
+ }
+} // class IconUIResource
diff --git a/javax/swing/plaf/InsetsUIResource.java b/javax/swing/plaf/InsetsUIResource.java
new file mode 100644
index 000000000..4c5e3183a
--- /dev/null
+++ b/javax/swing/plaf/InsetsUIResource.java
@@ -0,0 +1,12 @@
+package javax.swing.plaf;
+import java.awt.Insets;
+/**
+ * STUBBED
+ */
+public class InsetsUIResource extends Insets implements UIResource
+{
+ public InsetsUIResource(int top, int left, int bottom, int right)
+ {
+ super(top, left, bottom, right);
+ }
+} // class InsetsUIResource
diff --git a/javax/swing/plaf/Makefile.am b/javax/swing/plaf/Makefile.am
new file mode 100644
index 000000000..211b2a2bd
--- /dev/null
+++ b/javax/swing/plaf/Makefile.am
@@ -0,0 +1,19 @@
+SUBDIRS = basic metal
+
+EXTRA_DIST = \
+BorderUIResource.java \
+ButtonUI.java \
+ColorUIResource.java \
+ComponentUI.java \
+FontUIResource.java \
+InsetsUIResource.java \
+LabelUI.java \
+ListUI.java \
+OptionPaneUI.java \
+PanelUI.java \
+ScrollPaneUI.java \
+TabbedPaneUI.java \
+TextUI.java \
+TreeUI.java \
+UIResource.java \
+ViewportUI.java
diff --git a/javax/swing/plaf/basic/.cvsignore b/javax/swing/plaf/basic/.cvsignore
new file mode 100644
index 000000000..3dda72986
--- /dev/null
+++ b/javax/swing/plaf/basic/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/javax/swing/plaf/basic/BasicBorders.java b/javax/swing/plaf/basic/BasicBorders.java
new file mode 100644
index 000000000..80d66a72b
--- /dev/null
+++ b/javax/swing/plaf/basic/BasicBorders.java
@@ -0,0 +1,42 @@
+package javax.swing.plaf.basic;
+import java.awt.Color;
+/**
+ * STUBBED
+ */
+public class BasicBorders
+{
+ public static class ButtonBorder
+ {
+ } // class ButtonBorder
+ public static class FieldBorder
+ {
+ public FieldBorder(Color shadow, Color darkShadow,
+ Color highlight, Color lightHighlight)
+ {
+ }
+ } // class FieldBorder
+ public static class MarginBorder
+ {
+ } // class MarginBorder
+ public static class MenuBarBorder
+ {
+ public MenuBarBorder(Color shadow, Color highlight)
+ {
+ }
+ } // class MenuBarBorder
+ public static class RadioButtonBorder
+ {
+ } // class RadioButtonBorder
+ public static class RolloverButtonBorder
+ {
+ } // class RolloverButtonBorder
+ public static class SplitPaneBorder
+ {
+ public SplitPaneBorder(Color highlight, Color shadow)
+ {
+ }
+ } // class SplitPaneBorder
+ public static class ToggleButtonBorder
+ {
+ } // class ToggleButtonBorder
+} // class BasicBorders
diff --git a/javax/swing/plaf/basic/BasicIconFactory.java b/javax/swing/plaf/basic/BasicIconFactory.java
new file mode 100644
index 000000000..347a1cc8a
--- /dev/null
+++ b/javax/swing/plaf/basic/BasicIconFactory.java
@@ -0,0 +1,45 @@
+package javax.swing.plaf.basic;
+
+import java.io.Serializable;
+import javax.swing.Icon;
+/**
+ * STUBBED
+ */
+public class BasicIconFactory implements Serializable
+{
+ public BasicIconFactory()
+ {
+ }
+ public static Icon getMenuItemCheckIcon()
+ {
+ return null;
+ }
+ public static Icon getMenuItemArrowIcon()
+ {
+ return null;
+ }
+ public static Icon getMenuArrowIcon()
+ {
+ return null;
+ }
+ public static Icon getCheckBoxIcon()
+ {
+ return null;
+ }
+ public static Icon getRadioButtonIcon()
+ {
+ return null;
+ }
+ public static Icon getCheckBoxMenuItemIcon()
+ {
+ return null;
+ }
+ public static Icon getRadioButtonMenuItemIcon()
+ {
+ return null;
+ }
+ public static Icon createEmptyFrameIcon()
+ {
+ return null;
+ }
+} // class BasicIconFactory
diff --git a/javax/swing/plaf/basic/BasicLookAndFeel.java b/javax/swing/plaf/basic/BasicLookAndFeel.java
index 90058049d..7655ea3b2 100644
--- a/javax/swing/plaf/basic/BasicLookAndFeel.java
+++ b/javax/swing/plaf/basic/BasicLookAndFeel.java
@@ -35,1370 +35,893 @@ this exception to your version of the library, but you are not
obligated to do so. If you do not wish to do so, delete this
exception statement from your version. */
+
package javax.swing.plaf.basic;
-// Imports
-import java.awt.*;
-import java.awt.event.*;
-import java.io.*;
-import java.util.*;
-import javax.swing.*;
-import javax.swing.plaf.*;
-import javax.swing.text.*;
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Font;
+import java.awt.event.KeyEvent;
+import java.io.Serializable;
+import java.util.Enumeration;
+import java.util.ResourceBundle;
+import javax.swing.ImageIcon;
+import javax.swing.KeyStroke;
+import javax.swing.LookAndFeel;
+import javax.swing.UIDefaults;
+import javax.swing.plaf.BorderUIResource;
+import javax.swing.plaf.ColorUIResource;
+import javax.swing.plaf.DimensionUIResource;
+import javax.swing.plaf.FontUIResource;
+import javax.swing.plaf.IconUIResource;
+import javax.swing.plaf.InsetsUIResource;
+import javax.swing.text.JTextComponent;
/**
* BasicLookAndFeel
- * @author Andrew Selkirk
+ * @author Andrew Selkirk
*/
-public abstract class BasicLookAndFeel extends LookAndFeel implements Serializable {
-
- //-------------------------------------------------------------
- // Variables --------------------------------------------------
- //-------------------------------------------------------------
-
-
- //-------------------------------------------------------------
- // Initialization ---------------------------------------------
- //-------------------------------------------------------------
-
- /**
- * Constructor BasicLookAndFeel
- */
- public BasicLookAndFeel() {
- // TODO
- } // BasicLookAndFeel()
-
-
- //-------------------------------------------------------------
- // Methods ----------------------------------------------------
- //-------------------------------------------------------------
-
- /**
- * getDefaults
- * @returns UIDefaults
- */
- public UIDefaults getDefaults() {
-
- // Variables
- UIDefaults def;
-
- // Create Defaults Table
- def = new UIDefaults();
-
- // Initialize Class Defaults
- initClassDefaults(def);
-
- // Initialize System Colour Defaults
- initSystemColorDefaults(def);
-
- // Initialize Component Defaults
- initComponentDefaults(def);
-
- // Return UI Defaults
- return def;
-
- } // getDefaults()
-
- /**
- * initClassDefaults
- * @param value0 TODO
- */
- protected void initClassDefaults(UIDefaults defaults) {
-
- // Variables
- Object[] uiDefaults;
-
- // Initialize Class Defaults
- uiDefaults = new Object[] {
-
- "ButtonUI",
- "javax.swing.plaf.basic.BasicButtonUI",
- "CheckBoxMenuItemUI",
- "javax.swing.plaf.basic.BasicCheckBoxMenuItemUI",
- "CheckBoxUI",
- "javax.swing.plaf.basic.BasicCheckBoxUI",
- "ColorChooserUI",
- "javax.swing.plaf.basic.BasicColorChooserUI",
- "ComboBoxUI",
- "javax.swing.plaf.basic.BasicComboBoxUI",
- "DesktopIconUI",
- "javax.swing.plaf.basic.BasicDesktopIconUI",
- "DesktopPaneUI",
- "javax.swing.plaf.basic.BasicDesktopPaneUI",
- "EditorPaneUI",
- "javax.swing.plaf.basic.BasicEditorPaneUI",
- "InternalFrameUI",
- "javax.swing.plaf.basic.BasicInternalFrameUI",
- "LabelUI",
- "javax.swing.plaf.basic.BasicLabelUI",
- "ListUI",
- "javax.swing.plaf.basic.BasicListUI",
- "MenuBarUI",
- "javax.swing.plaf.basic.BasicMenuBarUI",
- "MenuItemUI",
- "javax.swing.plaf.basic.BasicMenuItemUI",
- "MenuUI",
- "javax.swing.plaf.basic.BasicMenuUI",
- "OptionPaneUI",
- "javax.swing.plaf.basic.BasicOptionPaneUI",
- "PanelUI",
- "javax.swing.plaf.basic.BasicPanelUI",
- "PasswordFieldUI",
- "javax.swing.plaf.basic.BasicPasswordFieldUI",
- "PopupMenuSeparatorUI",
- "javax.swing.plaf.basic.BasicPopupMenuSeparatorUI",
- "PopupMenuUI",
- "javax.swing.plaf.basic.BasicPopupMenuUI",
- "ProgressBarUI",
- "javax.swing.plaf.basic.BasicProgressBarUI",
- "RadioButtonMenuItemUI",
- "javax.swing.plaf.basic.BasicRadioButtonMenuItemUI",
- "RadioButtonUI",
- "javax.swing.plaf.basic.BasicRadioButtonUI",
- "RootPaneUI",
- "javax.swing.plaf.basic.BasicRootPaneUI",
- "ScrollBarUI",
- "javax.swing.plaf.basic.BasicScrollBarUI",
- "ScrollPaneUI",
- "javax.swing.plaf.basic.BasicScrollPaneUI",
- "SeparatorUI",
- "javax.swing.plaf.basic.BasicSeparatorUI",
- "SliderUI",
- "javax.swing.plaf.basic.BasicSliderUI",
- "SplitPaneUI",
- "javax.swing.plaf.basic.BasicSplitPaneUI",
- "StandardDialogUI",
- "javax.swing.plaf.basic.BasicStandardDialogUI",
- "TabbedPaneUI",
- "javax.swing.plaf.basic.BasicTabbedPaneUI",
- "TableHeaderUI",
- "javax.swing.plaf.basic.BasicTableHeaderUI",
- "TableUI",
- "javax.swing.plaf.basic.BasicTableUI",
- "TextAreaUI",
- "javax.swing.plaf.basic.BasicTextAreaUI",
- "TextFieldUI",
- "javax.swing.plaf.basic.BasicTextFieldUI",
- "TextPaneUI",
- "javax.swing.plaf.basic.BasicTextPaneUI",
- "ToggleButtonUI",
- "javax.swing.plaf.basic.BasicToggleButtonUI",
- "ToolBarSeparatorUI",
- "javax.swing.plaf.basic.BasicToolBarSeparatorUI",
- "ToolBarUI",
- "javax.swing.plaf.basic.BasicToolBarUI",
- "ToolTipUI",
- "javax.swing.plaf.basic.BasicToolTipUI",
- "TreeUI",
- "javax.swing.plaf.basic.BasicTreeUI",
- "ViewportUI",
- "javax.swing.plaf.basic.BasicViewportUI"
-
- }; // Object[]
-
- // Add Class Defaults to UI Defaults table
- defaults.putDefaults(uiDefaults);
-
- } // initClassDefaults()
-
- /**
- * initSystemColorDefaults
- * @param defaults TODO
- */
- protected void initSystemColorDefaults(UIDefaults defaults) {
-
- // Variables
- Object[] uiDefaults;
-
- // Initialize System Colours
- uiDefaults = new Object[] {
-
- "activeCaption",
- new ColorUIResource(0, 0, 128),
- "activeCaptionBorder",
- new ColorUIResource(Color.lightGray),
- "activeCaptionText",
- new ColorUIResource(Color.white),
- "control",
- new ColorUIResource(Color.lightGray),
- "controlDkShadow",
- new ColorUIResource(Color.black),
- "controlHighlight",
- new ColorUIResource(Color.lightGray),
- "controlLtHighlight",
- new ColorUIResource(Color.white),
- "controlShadow",
- new ColorUIResource(Color.gray),
- "controlText",
- new ColorUIResource(Color.black),
- "desktop",
- new ColorUIResource(0, 92, 92),
- "inactiveCaption",
- new ColorUIResource(Color.gray),
- "inactiveCaptionBorder",
- new ColorUIResource(Color.lightGray),
- "inactiveCaptionText",
- new ColorUIResource(Color.lightGray),
- "info",
- new ColorUIResource(Color.white),
- "infoText",
- new ColorUIResource(Color.black),
- "menu",
- new ColorUIResource(Color.lightGray),
- "menuText",
- new ColorUIResource(Color.black),
- "scrollbar",
- new ColorUIResource(224, 224, 224),
- "text",
- new ColorUIResource(Color.lightGray),
- "textHighlight",
- new ColorUIResource(0, 0, 128),
- "textHighlightText",
- new ColorUIResource(Color.white),
- "textInactiveText",
- new ColorUIResource(Color.gray),
- "textText",
- new ColorUIResource(Color.black),
- "window",
- new ColorUIResource(Color.white),
- "windowBorder",
- new ColorUIResource(Color.black),
- "windowText",
- new ColorUIResource(Color.black)
-
- }; // Object[]
-
- // Add System Colours to UI Defaults table
- defaults.putDefaults(uiDefaults);
-
- } // initSystemColorDefaults()
-
- /**
- * loadSystemColors
- * @param defaults TODO
- * @param value1 TODO
- * @param value2 TODO
- */
- protected void loadSystemColors(UIDefaults defaults, String[] value1, boolean value2) {
- // TODO
- } // loadSystemColors()
-
- /**
- * loadResourceBundle
- * @param defaults TODO
- */
- private void loadResourceBundle(UIDefaults defaults) {
-
- // Variables
- ResourceBundle bundle;
- Enumeration enum;
- String key;
- String value;
-
- // Get Resource Bundle
- bundle = ResourceBundle.getBundle("resources/basic");
-
- // Process Resources
- enum = bundle.getKeys();
- while (enum.hasMoreElements() == true) {
- key = (String) enum.nextElement();
- value = bundle.getString(key);
- defaults.put(key, value);
- } // while
-
- } // loadResourceBundle()
-
- /**
- * initComponentDefaults
- * @param defaults TODO
- */
- protected void initComponentDefaults(UIDefaults defaults) {
-
- // Variables
- Object[] uiDefaults;
-
- // Initialize System Colours
- uiDefaults = new Object[] {
-
- "Button.background",
- new ColorUIResource(Color.lightGray),
- "Button.border",
- new BorderUIResource.CompoundBorderUIResource(null, null),
- "Button.focusInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "SPACE", "pressed",
- "released SPACE", "released"
- }),
- "Button.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "Button.foreground",
- new ColorUIResource(Color.black),
- "Button.margin",
- new InsetsUIResource(2, 14, 2, 14),
- "Button.textIconGap",
- new Integer(4),
- "Button.textShiftOffset",
- new Integer(0),
- "CheckBox.background",
- new ColorUIResource(Color.lightGray),
- "CheckBox.border",
- new BorderUIResource.CompoundBorderUIResource(null, null),
- "CheckBox.focusInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "SPACE", "pressed",
- "released SPACE", "released"
- }),
- "CheckBox.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "CheckBox.foreground",
- new ColorUIResource(Color.black),
- "CheckBox.icon",
- BasicIconFactory.getCheckBoxIcon(),
- "CheckBox.margin",
- new InsetsUIResource(2, 2, 2, 2),
- "CheckBox.textIconGap",
- new Integer(4),
- "CheckBox.textShiftOffset",
- new Integer(0),
- "CheckBoxMenuItem.acceleratorFont",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "CheckBoxMenuItem.acceleratorForeground",
- new ColorUIResource(Color.black),
- "CheckBoxMenuItem.acceleratorSelectionForeground",
- new ColorUIResource(Color.white),
- "CheckBoxMenuItem.arrowIcon",
- BasicIconFactory.getMenuItemArrowIcon(),
- "CheckBoxMenuItem.background",
- new ColorUIResource(Color.lightGray),
- "CheckBoxMenuItem.border",
- new BasicBorders.MarginBorder(),
- "CheckBoxMenuItem.borderPainted",
- new Boolean(false),
- "CheckBoxMenuItem.checkIcon",
- BasicIconFactory.getCheckBoxMenuItemIcon(),
- "CheckBoxMenuItem.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "CheckBoxMenuItem.foreground",
- new ColorUIResource(Color.black),
- "CheckBoxMenuItem.margin",
- new InsetsUIResource(2, 2, 2, 2),
- "CheckBoxMenuItem.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "CheckBoxMenuItem.selectionForeground",
- new ColorUIResource(Color.white),
- "ColorChooser.background",
- new ColorUIResource(Color.lightGray),
- "ColorChooser.cancelText",
- "Cancel",
- "ColorChooser.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "ColorChooser.foreground",
- new ColorUIResource(Color.black),
- "ColorChooser.hsbBlueText",
- "B",
- "ColorChooser.hsbBrightnessText",
- "B",
- "ColorChooser.hsbGreenText",
- "G",
- "ColorChooser.hsbHueText",
- "H",
- "ColorChooser.hsbNameText",
- "HSB",
- "ColorChooser.hsbRedText",
- "R",
- "ColorChooser.hsbSaturationText",
- "S",
- "ColorChooser.okText",
- "OK",
- "ColorChooser.previewText",
- "Preview",
- "ColorChooser.resetText",
- "Reset",
- "ColorChooser.rgbBlueMnemonic",
- new Integer(66),
- "ColorChooser.rgbBlueText",
- "Blue",
- "ColorChooser.rgbGreenMnemonic",
- new Integer(71),
- "ColorChooser.rgbGreenText",
- "Green",
- "ColorChooser.rgbNameText",
- "RGB",
- "ColorChooser.rgbRedMnemonic",
- new Integer(82),
- "ColorChooser.rgbRedText",
- "Red",
- "ColorChooser.sampleText",
- "Sample Text Sample Text",
- "ColorChooser.swatchesDefaultRecentColor",
- new ColorUIResource(Color.lightGray),
- "ColorChooser.swatchesNameText",
- "Swatches",
- "ColorChooser.swatchesRecentSwatchSize",
- new Dimension(10, 10),
- "ColorChooser.swatchesRecentText",
- "Recent:",
- "ColorChooser.swatchesSwatchSize",
- new Dimension(10, 10),
- "ComboBox.ancestorInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "ESCAPE", "hidePopup",
- "PAGE_UP", "pageUpPassThrough",
- "PAGE_DOWN", "pageDownPassThrough",
- "HOME", "homePassThrough",
- "END", "endPassThrough"
- }),
- "ComboBox.background",
- new ColorUIResource(Color.white),
- "ComboBox.disabledBackground",
- new ColorUIResource(Color.lightGray),
- "ComboBox.disabledForeground",
- new ColorUIResource(Color.gray),
- "ComboBox.font",
- new FontUIResource("SansSerif", Font.PLAIN, 12),
- "ComboBox.foreground",
- new ColorUIResource(Color.black),
- "ComboBox.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "ComboBox.selectionForeground",
- new ColorUIResource(Color.white),
- "Desktop.ancestorInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "KP_LEFT", "left",
- "KP_RIGHT", "right",
- "ctrl F5", "restore",
- "LEFT", "left",
- "ctrl alt F6", "selectNextFrame",
- "UP", "up",
- "ctrl F6", "selectNextFrame",
- "RIGHT", "right",
- "DOWN", "down",
- "ctrl F7", "move",
- "ctrl F8", "resize",
- "ESCAPE", "escape",
- "ctrl TAB", "selectNextFrame",
- "ctrl F9", "minimize",
- "KP_UP", "up",
- "ctrl F4", "close",
- "KP_DOWN", "down",
- "ctrl F10", "maximize",
- "ctrl alt shift F6","selectPreviousFrame"
- }),
- "Desktop.background",
- new ColorUIResource(0, 92, 92),
- "DesktopIcon.border",
- new BorderUIResource.CompoundBorderUIResource(null, null),
- "EditorPane.background",
- new ColorUIResource(Color.white),
- "EditorPane.border",
- new BasicBorders.MarginBorder(),
- "EditorPane.caretBlinkRate",
- new Integer(500),
- "EditorPane.caretForeground",
- new ColorUIResource(Color.red),
- "EditorPane.font",
- new FontUIResource("Serif", Font.PLAIN, 12),
- "EditorPane.foreground",
- new ColorUIResource(Color.black),
- "EditorPane.inactiveForeground",
- new ColorUIResource(Color.gray),
- "EditorPane.keyBindings",
- new JTextComponent.KeyBinding[] {
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0),
- "caret-up"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0),
- "caret-down"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0),
- "page-up"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0),
- "page-down"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),
- "insert-break"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0),
- "insert-tab")
- },
- "EditorPane.margin",
- new InsetsUIResource(3, 3, 3, 3),
- "EditorPane.selectionBackground",
- new ColorUIResource(Color.lightGray),
- "EditorPane.selectionForeground",
- new ColorUIResource(Color.white),
- "FileChooser.acceptAllFileFilterText",
- "All Files (*.*)",
- "FileChooser.ancestorInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "ESCAPE", "cancelSelection"
- }),
- "FileChooser.cancelButtonMnemonic",
- new Integer(67),
- "FileChooser.cancelButtonText",
- "Cancel",
- "FileChooser.cancelButtonToolTipText",
- "Abort file chooser dialog",
- "FileChooser.detailsViewIcon",
- new IconUIResource(new ImageIcon("icons/DetailsView.gif")),
- "FileChooser.directoryDescriptionText",
- "Directory",
- "FileChooser.fileDescriptionText",
- "Generic File",
- "FileChooser.helpButtonMnemonic",
- new Integer(72),
- "FileChooser.helpButtonText",
- "Help",
- "FileChooser.helpButtonToolTipText",
- "FileChooser help",
- "FileChooser.homeFolderIcon",
- new IconUIResource(new ImageIcon("icons/HomeFolder.gif")),
- "FileChooser.listViewIcon",
- new IconUIResource(new ImageIcon("icons/ListView.gif")),
- "FileChooser.newFolderErrorSeparator",
- ":",
- "FileChooser.newFolderErrorText",
- "Error creating new folder",
- "FileChooser.newFolderIcon",
- new IconUIResource(new ImageIcon("icons/NewFolder.gif")),
- "FileChooser.openButtonMnemonic",
- new Integer(79),
- "FileChooser.openButtonText",
- "Open",
- "FileChooser.openButtonToolTipText",
- "Open selected file",
- "FileChooser.saveButtonMnemonic",
- new Integer(83),
- "FileChooser.saveButtonText",
- "Save",
- "FileChooser.saveButtonToolTipText",
- "Save selected file",
- "FileChooser.upFolderIcon",
- new IconUIResource(new ImageIcon("icons/UpFolder.gif")),
- "FileChooser.updateButtonMnemonic",
- new Integer(85),
- "FileChooser.updateButtonText",
- "Update",
- "FileChooser.updateButtonToolTipText",
- "Update directory listing",
- "FileView.computerIcon",
- new IconUIResource(new ImageIcon("icons/Computer.gif")),
- "FileView.directoryIcon",
- new IconUIResource(new ImageIcon("icons/Directory.gif")),
- "FileView.fileIcon",
- new IconUIResource(new ImageIcon("icons/File.gif")),
- "FileView.floppyDriveIcon",
- new IconUIResource(new ImageIcon("icons/Floppy.gif")),
- "FileView.hardDriveIcon",
- new IconUIResource(new ImageIcon("icons/HardDrive.gif")),
- "FocusManagerClassName",
- "TODO",
- "FormView.resetButtonText",
- "Reset",
- "FormView.submitButtonText",
- "Submit Query",
- "InternalFrame.activeTitleBackground",
- new ColorUIResource(0, 0, 128),
- "InternalFrame.activeTitleForeground",
- new ColorUIResource(Color.white),
- "InternalFrame.border",
- new BorderUIResource.CompoundBorderUIResource(null, null),
- "InternalFrame.closeIcon",
- BasicIconFactory.createEmptyFrameIcon(),
- "InternalFrame.icon",
- new IconUIResource(new ImageIcon("icons/JavaCup.gif")),
- "InternalFrame.iconifyIcon",
- BasicIconFactory.createEmptyFrameIcon(),
- "InternalFrame.inactiveTitleBackground",
- new ColorUIResource(Color.gray),
- "InternalFrame.inactiveTitleForeground",
- new ColorUIResource(Color.lightGray),
- "InternalFrame.maximizeIcon",
- BasicIconFactory.createEmptyFrameIcon(),
- "InternalFrame.minimizeIcon",
- BasicIconFactory.createEmptyFrameIcon(),
- "InternalFrame.titleFont",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "InternalFrame.windowBindings",
- new Object[] {
- "shift ESCAPE", "showSystemMenu",
- "ctrl SPACE", "showSystemMenu",
- "ESCAPE", "showSystemMenu"
- },
- "Label.background",
- new ColorUIResource(Color.lightGray),
- "Label.disabledForeground",
- new ColorUIResource(Color.white),
- "Label.disabledShadow",
- new ColorUIResource(Color.gray),
- "Label.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "List.focusInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "PAGE_UP", "scrollUp",
- "ctrl \\", "clearSelection",
- "PAGE_DOWN", "scrollDown",
- "shift PAGE_DOWN","scrollDownExtendSelection",
- "END", "selectLastRow",
- "HOME", "selectFirstRow",
- "shift END", "selectLastRowExtendSelection",
- "shift HOME", "selectFirstRowExtendSelection",
- "UP", "selectPreviousRow",
- "ctrl /", "selectAll",
- "ctrl A", "selectAll",
- "DOWN", "selectNextRow",
- "shift UP", "selectPreviousRowExtendSelection",
- "ctrl SPACE", "selectNextRowExtendSelection",
- "shift DOWN", "selectNextRowExtendSelection",
- "KP_UP", "selectPreviousRow",
- "shift PAGE_UP","scrollUpExtendSelection",
- "KP_DOWN", "selectNextRow"
- }),
-
- "List.foreground",
- new ColorUIResource(Color.black),
- "List.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "List.selectionForeground",
- new ColorUIResource(Color.white),
- "Menu.acceleratorFont",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "Menu.acceleratorForeground",
- new ColorUIResource(Color.black),
- "Menu.acceleratorSelectionForeground",
- new ColorUIResource(Color.white),
- "Menu.arrowIcon",
- BasicIconFactory.getMenuArrowIcon(),
- "Menu.background",
- new ColorUIResource(Color.lightGray),
- "Menu.border",
- new BasicBorders.MarginBorder(),
- "Menu.borderPainted",
- new Boolean(false),
- "Menu.checkIcon",
- BasicIconFactory.getMenuItemCheckIcon(),
- "Menu.consumesTabs",
- new Boolean(true),
- "Menu.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "Menu.foreground",
- new ColorUIResource(Color.black),
- "Menu.margin",
- new InsetsUIResource(2, 2, 2, 2),
- "Menu.selectedWindowInputMapBindings",
- new Object[] {
- "ESCAPE", "cancel",
- "DOWN", "selectNext",
- "KP_DOWN", "selectNext",
- "UP", "selectPrevious",
- "KP_UP", "selectPrevious",
- "LEFT", "selectParent",
- "KP_LEFT", "selectParent",
- "RIGHT", "selectChild",
- "KP_RIGHT", "selectChild",
- "ENTER", "return",
- "SPACE", "return"
- },
- "Menu.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "Menu.selectionForeground",
- new ColorUIResource(Color.white),
- "MenuBar.background",
- new ColorUIResource(Color.lightGray),
- "MenuBar.border",
- new BasicBorders.MenuBarBorder(null, null),
- "MenuBar.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "MenuBar.foreground",
- new ColorUIResource(Color.black),
- "MenuBar.windowBindings",
- new Object[] {
- "F10", "takeFocus"
- },
- "MenuItem.acceleratorDelimiter",
- "+",
- "MenuItem.acceleratorFont",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "MenuItem.acceleratorForeground",
- new ColorUIResource(Color.black),
- "MenuItem.acceleratorSelectionForeground",
- new ColorUIResource(Color.white),
- "MenuItem.arrowIcon",
- BasicIconFactory.getMenuItemArrowIcon(),
- "MenuItem.background",
- new ColorUIResource(Color.lightGray),
- "MenuItem.border",
- new BasicBorders.MarginBorder(),
- "MenuItem.borderPainted",
- new Boolean(false),
- "MenuItem.checkIcon",
- BasicIconFactory.getMenuItemCheckIcon(),
- "MenuItem.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "MenuItem.foreground",
- new ColorUIResource(Color.black),
- "MenuItem.margin",
- new InsetsUIResource(2, 2, 2, 2),
- "MenuItem.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "MenuItem.selectionForeground",
- new ColorUIResource(Color.white),
- "OptionPane.background",
- new ColorUIResource(Color.lightGray),
- "OptionPane.border",
- new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0),
- "OptionPane.buttonAreaBorder",
- new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0),
- "OptionPane.cancelButtonText",
- "Cancel",
- "OptionPane.errorIcon",
- new IconUIResource(new ImageIcon("icons/Error.gif")),
- "OptionPane.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "OptionPane.foreground",
- new ColorUIResource(Color.black),
- "OptionPane.informationIcon",
- new IconUIResource(new ImageIcon("icons/Inform.gif")),
- "OptionPane.messageAreaBorder",
- new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0),
- "OptionPane.messageForeground",
- new ColorUIResource(Color.black),
- "OptionPane.minimumSize",
- new DimensionUIResource(262, 90),
- "OptionPane.noButtonText",
- "No",
- "OptionPane.okButtonText",
- "OK",
- "OptionPane.questionIcon",
- new IconUIResource(new ImageIcon("icons/Question.gif")),
- "OptionPane.warningIcon",
- new IconUIResource(new ImageIcon("icons/Warn.gif")),
- "OptionPane.windowBindings",
- new Object[] {
- "ESCAPE", "close"
- },
- "OptionPane.yesButtonText",
- "Yes",
- "Panel.background",
- new ColorUIResource(Color.lightGray),
- "Panel.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "Panel.foreground",
- new ColorUIResource(Color.black),
- "PasswordField.background",
- new ColorUIResource(Color.white),
- "PasswordField.border",
- new BasicBorders.FieldBorder(null, null, null, null),
- "PasswordField.caretBlinkRate",
- new Integer(500),
- "PasswordField.caretForeground",
- new ColorUIResource(Color.black),
- "PasswordField.font",
- new FontUIResource("MonoSpaced", Font.PLAIN, 12),
- "PasswordField.foreground",
- new ColorUIResource(Color.black),
- "PasswordField.inactiveForeground",
- new ColorUIResource(Color.gray),
- "PasswordField.keyBindings",
- new JTextComponent.KeyBinding[] {
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),
- "notify-field-accept")
- },
- "PasswordField.margin",
- new InsetsUIResource(0, 0, 0, 0),
- "PasswordField.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "PasswordField.selectionForeground",
- new ColorUIResource(Color.white),
- "PopupMenu.background",
- new ColorUIResource(Color.lightGray),
- "PopupMenu.border",
- new BorderUIResource.BevelBorderUIResource(0),
- "PopupMenu.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "PopupMenu.foreground",
- new ColorUIResource(Color.black),
- "ProgressBar.background",
- new ColorUIResource(Color.lightGray),
- "ProgressBar.border",
- new BorderUIResource.LineBorderUIResource(null),
- "ProgressBar.cellLength",
- new Integer(1),
- "ProgressBar.cellSpacing",
- new Integer(0),
- "ProgressBar.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "ProgressBar.foreground",
- new ColorUIResource(0, 0, 128),
- "ProgressBar.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "ProgressBar.selectionForeground",
- new ColorUIResource(Color.lightGray),
- "RadioButton.background",
- new ColorUIResource(Color.lightGray),
- "RadioButton.border",
- new BorderUIResource.CompoundBorderUIResource(null, null),
- "RadioButton.focusInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "SPACE", "pressed",
- "released SPACE", "released"
- }),
- "RadioButton.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "RadioButton.foreground",
- new ColorUIResource(Color.black),
- "RadioButton.icon",
- BasicIconFactory.getRadioButtonIcon(),
- "RadioButton.margin",
- new InsetsUIResource(2, 2, 2, 2),
- "RadioButton.textIconGap",
- new Integer(4),
- "RadioButton.textShiftOffset",
- new Integer(0),
- "RadioButtonMenuItem.acceleratorFont",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "RadioButtonMenuItem.acceleratorForeground",
- new ColorUIResource(Color.black),
- "RadioButtonMenuItem.acceleratorSelectionForeground",
- new ColorUIResource(Color.white),
- "RadioButtonMenuItem.arrowIcon",
- BasicIconFactory.getMenuItemArrowIcon(),
- "RadioButtonMenuItem.background",
- new ColorUIResource(Color.lightGray),
- "RadioButtonMenuItem.border",
- new BasicBorders.MarginBorder(),
- "RadioButtonMenuItem.borderPainted",
- new Boolean(false),
- "RadioButtonMenuItem.checkIcon",
- BasicIconFactory.getRadioButtonMenuItemIcon(),
- "RadioButtonMenuItem.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "RadioButtonMenuItem.foreground",
- new ColorUIResource(Color.black),
- "RadioButtonMenuItem.margin",
- new InsetsUIResource(2, 2, 2, 2),
- "RadioButtonMenuItem.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "RadioButtonMenuItem.selectionForeground",
- new ColorUIResource(Color.white),
- "RootPane.defaultButtonWindowKeyBindings",
- new Object[] {
- "ENTER", "press",
- "released ENTER", "release",
- "ctrl ENTER", "press",
- "ctrl released ENTER", "release"
- },
- "ScrollBar.background",
- new ColorUIResource(224, 224, 224),
- "ScrollBar.focusInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "PAGE_UP", "negativeBlockIncrement",
- "PAGE_DOWN", "positiveBlockIncrement",
- "END", "maxScroll",
- "HOME", "minScroll",
- "LEFT", "positiveUnitIncrement",
- "KP_UP", "negativeUnitIncrement",
- "KP_DOWN", "positiveUnitIncrement",
- "UP", "negativeUnitIncrement",
- "RIGHT", "negativeUnitIncrement",
- "KP_LEFT", "positiveUnitIncrement",
- "DOWN", "positiveUnitIncrement",
- "KP_RIGHT", "negativeUnitIncrement"
- }),
- "ScrollBar.foreground",
- new ColorUIResource(Color.lightGray),
- "ScrollBar.maximumThumbSize",
- new DimensionUIResource(4096, 4096),
- "ScrollBar.minimumThumbSize",
- new DimensionUIResource(8, 8),
- "ScrollBar.thumb",
- new ColorUIResource(Color.lightGray),
- "ScrollBar.thumbDarkShadow",
- new ColorUIResource(Color.black),
- "ScrollBar.thumbHighlight",
- new ColorUIResource(Color.white),
- "ScrollBar.thumbLightShadow",
- new ColorUIResource(Color.gray),
- "ScrollBar.track",
- new ColorUIResource(224, 224, 224),
- "ScrollBar.trackHighlight",
- new ColorUIResource(Color.black),
- "ScrollPane.ancestorInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "PAGE_UP", "scrollUp",
- "KP_LEFT", "unitScrollLeft",
- "ctrl PAGE_DOWN","scrollRight",
- "PAGE_DOWN", "scrollDown",
- "KP_RIGHT", "unitScrollRight",
- "LEFT", "unitScrollLeft",
- "ctrl END", "scrollEnd",
- "UP", "unitScrollUp",
- "RIGHT", "unitScrollRight",
- "DOWN", "unitScrollDown",
- "ctrl HOME", "scrollHome",
- "ctrl PAGE_UP", "scrollLeft",
- "KP_UP", "unitScrollUp",
- "KP_DOWN", "unitScrollDown"
- }),
- "ScrollPane.background",
- new ColorUIResource(Color.lightGray),
- "ScrollPane.border",
- new BorderUIResource.EtchedBorderUIResource(),
- "ScrollPane.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "ScrollPane.foreground",
- new ColorUIResource(Color.black),
- "Separator.background",
- new ColorUIResource(Color.white),
- "Separator.foreground",
- new ColorUIResource(Color.gray),
- "Separator.highlight",
- new ColorUIResource(Color.white),
- "Separator.shadow",
- new ColorUIResource(Color.gray),
- "Slider.background",
- new ColorUIResource(Color.lightGray),
- "Slider.focus",
- new ColorUIResource(Color.black),
- "Slider.focusInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "PAGE_UP", "positiveBlockIncrement",
- "PAGE_DOWN", "negativeBlockIncrement",
- "END", "maxScroll",
- "HOME", "minScroll",
- "LEFT", "negativeUnitIncrement",
- "KP_UP", "positiveUnitIncrement",
- "KP_DOWN", "negativeUnitIncrement",
- "UP", "positiveUnitIncrement",
- "RIGHT", "positiveUnitIncrement",
- "KP_LEFT", "negativeUnitIncrement",
- "DOWN", "negativeUnitIncrement",
- "KP_RIGHT", "positiveUnitIncrement"
- }),
- "Slider.focusInsets",
- new InsetsUIResource(2, 2, 2, 2),
- "Slider.foreground",
- new ColorUIResource(Color.lightGray),
- "Slider.highlight",
- new ColorUIResource(Color.white),
- "Slider.shadow",
- new ColorUIResource(Color.gray),
- "SplitPane.ancestorInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "F6", "toggleFocus",
- "F8", "startResize",
- "END", "selectMax",
- "HOME", "selectMin",
- "LEFT", "negativeIncrement",
- "KP_UP", "negativeIncrement",
- "KP_DOWN", "positiveIncrement",
- "UP", "negativeIncrement",
- "RIGHT", "positiveIncrement",
- "KP_LEFT", "negativeIncrement",
- "DOWN", "positiveIncrement",
- "KP_RIGHT", "positiveIncrement"
- }),
- "SplitPane.background",
- new ColorUIResource(Color.lightGray),
- "SplitPane.border",
- new BasicBorders.SplitPaneBorder(null, null),
- "SplitPane.dividerSize",
- new Integer(7),
- "SplitPane.highlight",
- new ColorUIResource(Color.white),
- "SplitPane.shadow",
- new ColorUIResource(Color.gray),
- "SplitPaneDivider.border",
- new BasicBorders.SplitPaneDividerBorder(null, null),
- "TabbedPane.ancestorInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "ctrl PAGE_DOWN","navigatePageDown",
- "ctrl PAGE_UP", "navigatePageUp",
- "ctrl UP", "requestFocus",
- "ctrl KP_UP", "requestFocus"
- }),
- "TabbedPane.background",
- new ColorUIResource(Color.lightGray),
- "TabbedPane.contentBorderInsets",
- new InsetsUIResource(2, 2, 3, 3),
- "TabbedPane.darkShadow",
- new ColorUIResource(Color.black),
- "TabbedPane.focus",
- new ColorUIResource(Color.black),
- "TabbedPane.focusInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "LEFT", "navigateLeft",
- "KP_UP", "navigateUp",
- "ctrl DOWN", "requestFocusForVisibleComponent",
- "UP", "navigateUp",
- "KP_DOWN", "navigateDown",
- "RIGHT", "navigateRight",
- "KP_LEFT", "navigateLeft",
- "ctrl KP_DOWN", "requestFocusForVisibleComponent",
- "KP_RIGHT", "navigateRight",
- "DOWN", "navigateDown"
- }),
- "TabbedPane.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "TabbedPane.foreground",
- new ColorUIResource(Color.black),
- "TabbedPane.highlight",
- new ColorUIResource(Color.lightGray),
- "TabbedPane.lightHighlight",
- new ColorUIResource(Color.white),
- "TabbedPane.selectedTabPadInsets",
- new InsetsUIResource(2, 2, 2, 1),
- "TabbedPane.shadow",
- new ColorUIResource(Color.gray),
- "TabbedPane.tabAreaInsets",
- new InsetsUIResource(3, 2, 0, 2),
- "TabbedPane.tabInsets",
- new InsetsUIResource(0, 4, 1, 4),
- "TabbedPane.tabRunOverlay",
- new Integer(2),
- "TabbedPane.textIconGap",
- new Integer(4),
- "Table.ancestorInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "shift PAGE_DOWN","scrollDownExtendSelection",
- "PAGE_DOWN", "scrollDownChangeSelection",
- "END", "selectLastColumn",
- "shift END", "selectLastColumnExtendSelection",
- "HOME", "selectFirstColumn",
- "ctrl END", "selectLastRow",
- "ctrl shift END","selectLastRowExtendSelection",
- "LEFT", "selectPreviousColumn",
- "shift HOME", "selectFirstColumnExtendSelection",
- "UP", "selectPreviousRow",
- "RIGHT", "selectNextColumn",
- "ctrl HOME", "selectFirstRow",
- "shift LEFT", "selectPreviousColumnExtendSelection",
- "DOWN", "selectNextRow",
- "ctrl shift HOME","selectFirstRowExtendSelection",
- "shift UP", "selectPreviousRowExtendSelection",
- "F2", "startEditing",
- "shift RIGHT", "selectNextColumnExtendSelection",
- "TAB", "selectNextColumnCell",
- "shift DOWN", "selectNextRowExtendSelection",
- "ENTER", "selectNextRowCell",
- "KP_UP", "selectPreviousRow",
- "KP_DOWN", "selectNextRow",
- "KP_LEFT", "selectPreviousColumn",
- "KP_RIGHT", "selectNextColumn",
- "shift TAB", "selectPreviousColumnCell",
- "ctrl A", "selectAll",
- "shift ENTER", "selectPreviousRowCell",
- "shift KP_DOWN", "selectNextRowExtendSelection",
- "shift KP_LEFT", "selectPreviousColumnExtendSelection",
- "ESCAPE", "cancel",
- "ctrl shift PAGE_UP", "scrollRightExtendSelection",
- "shift KP_RIGHT", " selectNextColumnExtendSelection",
- "ctrl PAGE_UP", "scrollLeftChangeSelection",
- "shift PAGE_UP", "scrollUpExtendSelection",
- "ctrl shift PAGE_DOWN", "scrollLeftExtendSelection",
- "ctrl PAGE_DOWN", "scrollRightChangeSelection",
- "PAGE_UP", "scrollUpChangeSelection"
- }),
- "Table.background",
- new ColorUIResource(Color.white),
- "Table.focusCellBackground",
- new ColorUIResource(Color.white),
- "Table.focusCellForeground",
- new ColorUIResource(Color.black),
- "Table.focusCellHighlightBorder",
- new BorderUIResource.LineBorderUIResource(null),
- "Table.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "Table.foreground",
- new ColorUIResource(Color.black),
- "Table.gridColor",
- new ColorUIResource(Color.gray),
- "Table.scrollPaneBorder",
- new BorderUIResource.BevelBorderUIResource(0),
- "Table.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "Table.selectionForeground",
- new ColorUIResource(Color.white),
- "TableHeader.background",
- new ColorUIResource(Color.lightGray),
- "TableHeader.cellBorder",
- new BorderUIResource.BevelBorderUIResource(0),
- "TableHeader.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "TableHeader.foreground",
- new ColorUIResource(Color.black),
- "TextArea.background",
- new ColorUIResource(Color.white),
- "TextArea.border",
- new BasicBorders.MarginBorder(),
- "TextArea.caretBlinkRate",
- new Integer(500),
- "TextArea.caretForeground",
- new ColorUIResource(Color.black),
- "TextArea.font",
- new FontUIResource("MonoSpaced", Font.PLAIN, 12),
- "TextArea.foreground",
- new ColorUIResource(Color.black),
- "TextArea.inactiveForeground",
- new ColorUIResource(Color.gray),
- "TextArea.keyBindings",
- new JTextComponent.KeyBinding[] {
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0),
- "caret-up"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0),
- "caret-down"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0),
- "page-up"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0),
- "page-down"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),
- "insert-break"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0),
- "insert-tab")
- },
- "TextArea.margin",
- new InsetsUIResource(0, 0, 0, 0),
- "TextArea.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "TextArea.selectionForeground",
- new ColorUIResource(Color.white),
- "TextField.background",
- new ColorUIResource(Color.white),
- "TextField.border",
- new BasicBorders.FieldBorder(null, null, null, null),
- "TextField.caretBlinkRate",
- new Integer(500),
- "TextField.caretForeground",
- new ColorUIResource(Color.black),
- "TextField.font",
- new FontUIResource("SansSerif", Font.PLAIN, 12),
- "TextField.foreground",
- new ColorUIResource(Color.black),
- "TextField.inactiveForeground",
- new ColorUIResource(Color.gray),
- "TextField.keyBindings",
- new JTextComponent.KeyBinding[] {
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),
- "notify-field-accept")
- },
- "TextField.margin",
- new InsetsUIResource(0, 0, 0, 0),
- "TextField.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "TextField.selectionForeground",
- new ColorUIResource(Color.white),
- "TextPane.background",
- new ColorUIResource(Color.white),
- "TextPane.border",
- new BasicBorders.MarginBorder(),
- "TextPane.caretBlinkRate",
- new Integer(500),
- "TextPane.caretForeground",
- new ColorUIResource(Color.black),
- "TextPane.font",
- new FontUIResource("Serif", Font.PLAIN, 12),
- "TextPane.foreground",
- new ColorUIResource(Color.black),
- "TextPane.inactiveForeground",
- new ColorUIResource(Color.gray),
- "TextPane.keyBindings",
- new JTextComponent.KeyBinding[] {
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_UP, 0),
- "caret-up"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, 0),
- "caret-down"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP, 0),
- "page-up"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN, 0),
- "page-down"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0),
- "insert-break"),
- new JTextComponent.KeyBinding(
- KeyStroke.getKeyStroke(KeyEvent.VK_TAB, 0),
- "insert-tab")
- },
- "TextPane.margin",
- new InsetsUIResource(3, 3, 3, 3),
- "TextPane.selectionBackground",
- new ColorUIResource(Color.lightGray),
- "TextPane.selectionForeground",
- new ColorUIResource(Color.white),
- "TitledBorder.border",
- new BorderUIResource.EtchedBorderUIResource(),
- "TitledBorder.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "TitledBorder.titleColor",
- new ColorUIResource(Color.black),
- "ToggleButton.background",
- new ColorUIResource(Color.lightGray),
- "ToggleButton.border",
- new BorderUIResource.CompoundBorderUIResource(null, null),
- "ToggleButton.focusInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "SPACE", "pressed",
- "released SPACE", "released"
- }),
- "ToggleButton.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "ToggleButton.foreground",
- new ColorUIResource(Color.black),
- "ToggleButton.margin",
- new InsetsUIResource(2, 14, 2, 14),
- "ToggleButton.textIconGap",
- new Integer(4),
- "ToggleButton.textShiftOffset",
- new Integer(0),
- "ToolBar.ancestorInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "UP", "navigateUp",
- "KP_UP", "navigateUp",
- "DOWN", "navigateDown",
- "KP_DOWN", "navigateDown",
- "LEFT", "navigateLeft",
- "KP_LEFT", "navigateLeft",
- "RIGHT", "navigateRight",
- "KP_RIGHT", "navigateRight"
- }),
- "ToolBar.background",
- new ColorUIResource(Color.lightGray),
- "ToolBar.border",
- new BorderUIResource.EtchedBorderUIResource(),
- "ToolBar.dockingBackground",
- new ColorUIResource(Color.lightGray),
- "ToolBar.dockingForeground",
- new ColorUIResource(Color.red),
- "ToolBar.floatingBackground",
- new ColorUIResource(Color.lightGray),
- "ToolBar.floatingForeground",
- new ColorUIResource(Color.darkGray),
- "ToolBar.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "ToolBar.foreground",
- new ColorUIResource(Color.black),
- "ToolBar.separatorSize",
- new DimensionUIResource(10, 10),
- "ToolTip.background",
- new ColorUIResource(Color.white),
- "ToolTip.border",
- new BorderUIResource.LineBorderUIResource(null),
- "ToolTip.font",
- new FontUIResource("SansSerif", Font.PLAIN, 12),
- "ToolTip.foreground",
- new ColorUIResource(Color.black),
- "Tree.ancestorInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "ESCAPE", "cancel"
- }),
- "Tree.background",
- new ColorUIResource(Color.white),
- "Tree.changeSelectionWithFocus",
- new Boolean(true),
- "Tree.closedIcon",
- new IconUIResource(new ImageIcon("icons/TreeClosed.gif")),
- "Tree.drawsFocusBorderAroundIcon",
- new Boolean(false),
- "Tree.editorBorder",
- new BorderUIResource.LineBorderUIResource(null),
- "Tree.focusInputMap",
- new UIDefaults.LazyInputMap(new Object[] {
- "shift PAGE_DOWN", "scrollDownExtendSelection",
- "PAGE_DOWN", "scrollDownChangeSelection",
- "END", "selectLast",
- "ctrl KP_UP", "selectPreviousChangeLead",
- "shift END", "selectLastExtendSelection",
- "HOME", "selectFirst",
- "ctrl END", "selectLastChangeLead",
- "ctrl /", "selectAll",
- "LEFT", "selectParent",
- "shift HOME", "selectFirstExtendSelection",
- "UP", "selectPrevious",
- "ctrl KP_DOWN", "selectNextChangeLead",
- "RIGHT", "selectChild",
- "ctrl HOME", "selectFirstChangeLead",
- "DOWN", "selectNext",
- "ctrl KP_LEFT", "scrollLeft",
- "shift UP", "selectPreviousExtendSelection",
- "F2", "startEditing",
- "ctrl LEFT", "scrollLeft",
- "ctrl KP_RIGHT","scrollRight",
- "ctrl UP", "selectPreviousChangeLead",
- "shift DOWN", "selectNextExtendSelection",
- "ENTER", "toggle",
- "KP_UP", "selectPrevious",
- "KP_DOWN", "selectNext",
- "ctrl RIGHT", "scrollRight",
- "KP_LEFT", "selectParent",
- "KP_RIGHT", "selectChild",
- "ctrl DOWN", "selectNextChangeLead",
- "ctrl A", "selectAll",
- "shift KP_UP", "selectPreviousExtendSelection",
- "shift KP_DOWN","selectNextExtendSelection",
- "ctrl SPACE", "toggleSelectionPreserveAnchor",
- "ctrl shift PAGE_UP", "scrollUpExtendSelection",
- "ctrl \\", "clearSelection",
- "shift SPACE", "extendSelection",
- "ctrl PAGE_UP", "scrollUpChangeLead",
- "shift PAGE_UP","scrollUpExtendSelection",
- "SPACE", "toggleSelectionPreserveAnchor",
- "ctrl shift PAGE_DOWN", "scrollDownExtendSelection",
- "PAGE_UP", "scrollUpChangeSelection",
- "ctrl PAGE_DOWN", "scrollDownChangeLead"
- }),
- "Tree.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
- "Tree.foreground",
- new ColorUIResource(Color.black),
- "Tree.hash",
- new ColorUIResource(Color.gray),
- "Tree.leafIcon",
- new IconUIResource(new ImageIcon("icons/TreeLeaf.gif")),
- "Tree.leftChildIndent",
- new Integer(7),
- "Tree.openIcon",
- new IconUIResource(new ImageIcon("icons/TreeOpen.gif")),
- "Tree.rightChildIndent",
- new Integer(13),
- "Tree.rowHeight",
- new Integer(16),
- "Tree.scrollsOnExpand",
- new Boolean(true),
- "Tree.selectionBackground",
- new ColorUIResource(0, 0, 128),
- "Tree.selectionBorderColor",
- new ColorUIResource(Color.black),
- "Tree.selectionForeground",
- new ColorUIResource(Color.white),
- "Tree.textBackground",
- new ColorUIResource(Color.lightGray),
- "Tree.textForeground",
- new ColorUIResource(Color.black),
- "Viewport.background",
- new ColorUIResource(Color.lightGray),
- "Viewport.font",
- new FontUIResource("Dialog", Font.PLAIN, 12),
-
- }; // Object[]
-
- // Add Component Defaults to UI Defaults table
- defaults.putDefaults(uiDefaults);
-
- } // initComponentDefaults()
-
-
-} // BasicLookAndFeel
-
+public abstract class BasicLookAndFeel extends LookAndFeel
+ implements Serializable
+{
+ /**
+ * Constructor BasicLookAndFeel
+ */
+ public BasicLookAndFeel()
+ {
+ // TODO
+ }
+
+ /**
+ * getDefaults
+ * @return UIDefaults
+ */
+ public UIDefaults getDefaults()
+ {
+ // Variables
+ UIDefaults def = new UIDefaults();
+ // Initialize Class Defaults
+ initClassDefaults(def);
+ // Initialize System Colour Defaults
+ initSystemColorDefaults(def);
+ // Initialize Component Defaults
+ initComponentDefaults(def);
+ // Return UI Defaults
+ return def;
+ }
+
+ /**
+ * initClassDefaults
+ * @param value0 TODO
+ */
+ protected void initClassDefaults(UIDefaults defaults)
+ {
+ // Variables
+ Object[] uiDefaults;
+ // Initialize Class Defaults
+ uiDefaults = new Object[] {
+ "ButtonUI", "javax.swing.plaf.basic.BasicButtonUI",
+ "CheckBoxMenuItemUI", "javax.swing.plaf.basic.BasicCheckBoxMenuItemUI",
+ "CheckBoxUI", "javax.swing.plaf.basic.BasicCheckBoxUI",
+ "ColorChooserUI", "javax.swing.plaf.basic.BasicColorChooserUI",
+ "ComboBoxUI", "javax.swing.plaf.basic.BasicComboBoxUI",
+ "DesktopIconUI", "javax.swing.plaf.basic.BasicDesktopIconUI",
+ "DesktopPaneUI", "javax.swing.plaf.basic.BasicDesktopPaneUI",
+ "EditorPaneUI", "javax.swing.plaf.basic.BasicEditorPaneUI",
+ "InternalFrameUI", "javax.swing.plaf.basic.BasicInternalFrameUI",
+ "LabelUI", "javax.swing.plaf.basic.BasicLabelUI",
+ "ListUI", "javax.swing.plaf.basic.BasicListUI",
+ "MenuBarUI", "javax.swing.plaf.basic.BasicMenuBarUI",
+ "MenuItemUI", "javax.swing.plaf.basic.BasicMenuItemUI",
+ "MenuUI", "javax.swing.plaf.basic.BasicMenuUI",
+ "OptionPaneUI", "javax.swing.plaf.basic.BasicOptionPaneUI",
+ "PanelUI", "javax.swing.plaf.basic.BasicPanelUI",
+ "PasswordFieldUI", "javax.swing.plaf.basic.BasicPasswordFieldUI",
+ "PopupMenuSeparatorUI", "javax.swing.plaf.basic.BasicPopupMenuSeparatorUI",
+ "PopupMenuUI", "javax.swing.plaf.basic.BasicPopupMenuUI",
+ "ProgressBarUI", "javax.swing.plaf.basic.BasicProgressBarUI",
+ "RadioButtonMenuItemUI", "javax.swing.plaf.basic.BasicRadioButtonMenuItemUI",
+ "RadioButtonUI", "javax.swing.plaf.basic.BasicRadioButtonUI",
+ "RootPaneUI", "javax.swing.plaf.basic.BasicRootPaneUI",
+ "ScrollBarUI", "javax.swing.plaf.basic.BasicScrollBarUI",
+ "ScrollPaneUI", "javax.swing.plaf.basic.BasicScrollPaneUI",
+ "SeparatorUI", "javax.swing.plaf.basic.BasicSeparatorUI",
+ "SliderUI", "javax.swing.plaf.basic.BasicSliderUI",
+ "SplitPaneUI", "javax.swing.plaf.basic.BasicSplitPaneUI",
+ "StandardDialogUI", "javax.swing.plaf.basic.BasicStandardDialogUI",
+ "TabbedPaneUI", "javax.swing.plaf.basic.BasicTabbedPaneUI",
+ "TableHeaderUI", "javax.swing.plaf.basic.BasicTableHeaderUI",
+ "TableUI", "javax.swing.plaf.basic.BasicTableUI",
+ "TextAreaUI", "javax.swing.plaf.basic.BasicTextAreaUI",
+ "TextFieldUI", "javax.swing.plaf.basic.BasicTextFieldUI",
+ "TextPaneUI", "javax.swing.plaf.basic.BasicTextPaneUI",
+ "ToggleButtonUI", "javax.swing.plaf.basic.BasicToggleButtonUI",
+ "ToolBarSeparatorUI", "javax.swing.plaf.basic.BasicToolBarSeparatorUI",
+ "ToolBarUI", "javax.swing.plaf.basic.BasicToolBarUI",
+ "ToolTipUI", "javax.swing.plaf.basic.BasicToolTipUI",
+ "TreeUI", "javax.swing.plaf.basic.BasicTreeUI",
+ "ViewportUI", "javax.swing.plaf.basic.BasicViewportUI"
+ };
+ // Add Class Defaults to UI Defaults table
+ defaults.putDefaults(uiDefaults);
+ }
+
+ /**
+ * initSystemColorDefaults
+ * @param defaults TODO
+ */
+ protected void initSystemColorDefaults(UIDefaults defaults)
+ {
+ Object[] uiDefaults;
+ uiDefaults = new Object[] {
+ "activeCaption", new ColorUIResource(0, 0, 128),
+ "activeCaptionBorder", new ColorUIResource(Color.lightGray),
+ "activeCaptionText", new ColorUIResource(Color.white),
+ "control", new ColorUIResource(Color.lightGray),
+ "controlDkShadow", new ColorUIResource(Color.black),
+ "controlHighlight", new ColorUIResource(Color.lightGray),
+ "controlLtHighlight", new ColorUIResource(Color.white),
+ "controlShadow", new ColorUIResource(Color.gray),
+ "controlText", new ColorUIResource(Color.black),
+ "desktop", new ColorUIResource(0, 92, 92),
+ "inactiveCaption", new ColorUIResource(Color.gray),
+ "inactiveCaptionBorder", new ColorUIResource(Color.lightGray),
+ "inactiveCaptionText", new ColorUIResource(Color.lightGray),
+ "info", new ColorUIResource(Color.white),
+ "infoText", new ColorUIResource(Color.black),
+ "menu", new ColorUIResource(Color.lightGray),
+ "menuText", new ColorUIResource(Color.black),
+ "scrollbar", new ColorUIResource(224, 224, 224),
+ "text", new ColorUIResource(Color.lightGray),
+ "textHighlight", new ColorUIResource(0, 0, 128),
+ "textHighlightText", new ColorUIResource(Color.white),
+ "textInactiveText", new ColorUIResource(Color.gray),
+ "textText", new ColorUIResource(Color.black),
+ "window", new ColorUIResource(Color.white),
+ "windowBorder", new ColorUIResource(Color.black),
+ "windowText", new ColorUIResource(Color.black)
+ };
+ defaults.putDefaults(uiDefaults);
+ }
+
+ /**
+ * loadSystemColors
+ * @param defaults TODO
+ * @param value1 TODO
+ * @param value2 TODO
+ */
+ protected void loadSystemColors(UIDefaults defaults, String[] value1,
+ boolean value2)
+ {
+ // TODO
+ }
+
+ /**
+ * loadResourceBundle
+ * @param defaults TODO
+ */
+ private void loadResourceBundle(UIDefaults defaults)
+ {
+ ResourceBundle bundle;
+ Enumeration enum;
+ String key;
+ String value;
+ bundle = ResourceBundle.getBundle("resources/basic");
+ // Process Resources
+ enum = bundle.getKeys();
+ while (enum.hasMoreElements())
+ {
+ key = (String) enum.nextElement();
+ value = bundle.getString(key);
+ defaults.put(key, value);
+ }
+ }
+
+ /**
+ * initComponentDefaults
+ * @param defaults TODO
+ */
+ protected void initComponentDefaults(UIDefaults defaults)
+ {
+ Object[] uiDefaults;
+ uiDefaults = new Object[] {
+ "Button.background", new ColorUIResource(Color.lightGray),
+ "Button.border", new BorderUIResource.CompoundBorderUIResource(null,
+ null),
+ "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "SPACE", "pressed",
+ "released SPACE", "released"
+ }),
+ "Button.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "Button.foreground", new ColorUIResource(Color.black),
+ "Button.margin", new InsetsUIResource(2, 14, 2, 14),
+ "Button.textIconGap", new Integer(4),
+ "Button.textShiftOffset", new Integer(0),
+ "CheckBox.background", new ColorUIResource(Color.lightGray),
+ "CheckBox.border", new BorderUIResource.CompoundBorderUIResource(null,
+ null),
+ "CheckBox.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "SPACE", "pressed",
+ "released SPACE", "released"
+ }),
+ "CheckBox.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "CheckBox.foreground", new ColorUIResource(Color.black),
+ "CheckBox.icon", BasicIconFactory.getCheckBoxIcon(),
+ "CheckBox.margin",new InsetsUIResource(2, 2, 2, 2),
+ "CheckBox.textIconGap", new Integer(4),
+ "CheckBox.textShiftOffset", new Integer(0),
+ "CheckBoxMenuItem.acceleratorFont", new FontUIResource("Dialog",
+ Font.PLAIN, 12),
+ "CheckBoxMenuItem.acceleratorForeground", new ColorUIResource(Color.black),
+ "CheckBoxMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white),
+ "CheckBoxMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(),
+ "CheckBoxMenuItem.background", new ColorUIResource(Color.lightGray),
+ "CheckBoxMenuItem.border", new BasicBorders.MarginBorder(),
+ "CheckBoxMenuItem.borderPainted", Boolean.FALSE,
+ "CheckBoxMenuItem.checkIcon", BasicIconFactory.getCheckBoxMenuItemIcon(),
+ "CheckBoxMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "CheckBoxMenuItem.foreground", new ColorUIResource(Color.black),
+ "CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
+ "CheckBoxMenuItem.selectionBackground", new ColorUIResource(0, 0, 128),
+ "CheckBoxMenuItem.selectionForeground", new ColorUIResource(Color.white),
+ "ColorChooser.background", new ColorUIResource(Color.lightGray),
+ "ColorChooser.cancelText", "Cancel",
+ "ColorChooser.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "ColorChooser.foreground", new ColorUIResource(Color.black),
+ "ColorChooser.hsbBlueText", "B",
+ "ColorChooser.hsbBrightnessText", "B",
+ "ColorChooser.hsbGreenText", "G",
+ "ColorChooser.hsbHueText", "H",
+ "ColorChooser.hsbNameText", "HSB",
+ "ColorChooser.hsbRedText", "R",
+ "ColorChooser.hsbSaturationText", "S",
+ "ColorChooser.okText", "OK",
+ "ColorChooser.previewText", "Preview",
+ "ColorChooser.resetText", "Reset",
+ "ColorChooser.rgbBlueMnemonic", new Integer(66),
+ "ColorChooser.rgbBlueText", "Blue",
+ "ColorChooser.rgbGreenMnemonic", new Integer(71),
+ "ColorChooser.rgbGreenText", "Green",
+ "ColorChooser.rgbNameText", "RGB",
+ "ColorChooser.rgbRedMnemonic", new Integer(82),
+ "ColorChooser.rgbRedText", "Red",
+ "ColorChooser.sampleText", "Sample Text Sample Text",
+ "ColorChooser.swatchesDefaultRecentColor", new ColorUIResource(Color.lightGray),
+ "ColorChooser.swatchesNameText", "Swatches",
+ "ColorChooser.swatchesRecentSwatchSize", new Dimension(10, 10),
+ "ColorChooser.swatchesRecentText", "Recent:",
+ "ColorChooser.swatchesSwatchSize", new Dimension(10, 10),
+ "ComboBox.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "ESCAPE", "hidePopup",
+ "PAGE_UP", "pageUpPassThrough",
+ "PAGE_DOWN", "pageDownPassThrough",
+ "HOME", "homePassThrough",
+ "END", "endPassThrough"
+ }),
+ "ComboBox.background", new ColorUIResource(Color.white),
+ "ComboBox.disabledBackground", new ColorUIResource(Color.lightGray),
+ "ComboBox.disabledForeground", new ColorUIResource(Color.gray),
+ "ComboBox.font", new FontUIResource("SansSerif", Font.PLAIN, 12),
+ "ComboBox.foreground", new ColorUIResource(Color.black),
+ "ComboBox.selectionBackground", new ColorUIResource(0, 0, 128),
+ "ComboBox.selectionForeground", new ColorUIResource(Color.white),
+ "Desktop.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "KP_LEFT", "left",
+ "KP_RIGHT", "right",
+ "ctrl F5", "restore",
+ "LEFT", "left",
+ "ctrl alt F6", "selectNextFrame",
+ "UP", "up",
+ "ctrl F6", "selectNextFrame",
+ "RIGHT", "right",
+ "DOWN", "down",
+ "ctrl F7", "move",
+ "ctrl F8", "resize",
+ "ESCAPE", "escape",
+ "ctrl TAB", "selectNextFrame",
+ "ctrl F9", "minimize",
+ "KP_UP", "up",
+ "ctrl F4", "close",
+ "KP_DOWN", "down",
+ "ctrl F10", "maximize",
+ "ctrl alt shift F6","selectPreviousFrame"
+ }),
+ "Desktop.background", new ColorUIResource(0, 92, 92),
+ "DesktopIcon.border", new BorderUIResource.CompoundBorderUIResource(null,
+ null),
+ "EditorPane.background", new ColorUIResource(Color.white),
+ "EditorPane.border", new BasicBorders.MarginBorder(),
+ "EditorPane.caretBlinkRate", new Integer(500),
+ "EditorPane.caretForeground", new ColorUIResource(Color.red),
+ "EditorPane.font", new FontUIResource("Serif", Font.PLAIN, 12),
+ "EditorPane.foreground", new ColorUIResource(Color.black),
+ "EditorPane.inactiveForeground", new ColorUIResource(Color.gray),
+ "EditorPane.keyBindings", new JTextComponent.KeyBinding[] {
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP,
+ 0), "caret-up"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN,
+ 0), "caret-down"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP,
+ 0), "page-up"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN,
+ 0), "page-down"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,
+ 0), "insert-break"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,
+ 0), "insert-tab")
+ },
+ "EditorPane.margin", new InsetsUIResource(3, 3, 3, 3),
+ "EditorPane.selectionBackground", new ColorUIResource(Color.lightGray),
+ "EditorPane.selectionForeground", new ColorUIResource(Color.white),
+ "FileChooser.acceptAllFileFilterText", "All Files (*.*)",
+ "FileChooser.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "ESCAPE", "cancelSelection"
+ }),
+ "FileChooser.cancelButtonMnemonic", new Integer(67),
+ "FileChooser.cancelButtonText", "Cancel",
+ "FileChooser.cancelButtonToolTipText", "Abort file chooser dialog",
+ // XXX Don't use gif
+ "FileChooser.detailsViewIcon", new IconUIResource(new ImageIcon("icons/DetailsView.gif")),
+ "FileChooser.directoryDescriptionText", "Directory",
+ "FileChooser.fileDescriptionText", "Generic File",
+ "FileChooser.helpButtonMnemonic", new Integer(72),
+ "FileChooser.helpButtonText", "Help",
+ "FileChooser.helpButtonToolTipText", "FileChooser help",
+ // XXX Don't use gif
+ "FileChooser.homeFolderIcon", new IconUIResource(new ImageIcon("icons/HomeFolder.gif")),
+ // XXX Don't use gif
+ "FileChooser.listViewIcon", new IconUIResource(new ImageIcon("icons/ListView.gif")),
+ "FileChooser.newFolderErrorSeparator", ":",
+ "FileChooser.newFolderErrorText", "Error creating new folder",
+ // XXX Don't use gif
+ "FileChooser.newFolderIcon", new IconUIResource(new ImageIcon("icons/NewFolder.gif")),
+ "FileChooser.openButtonMnemonic", new Integer(79),
+ "FileChooser.openButtonText", "Open",
+ "FileChooser.openButtonToolTipText", "Open selected file",
+ "FileChooser.saveButtonMnemonic", new Integer(83),
+ "FileChooser.saveButtonText", "Save",
+ "FileChooser.saveButtonToolTipText", "Save selected file",
+ // XXX Don't use gif
+ "FileChooser.upFolderIcon", new IconUIResource(new ImageIcon("icons/UpFolder.gif")),
+ "FileChooser.updateButtonMnemonic", new Integer(85),
+ "FileChooser.updateButtonText", "Update",
+ "FileChooser.updateButtonToolTipText", "Update directory listing",
+ // XXX Don't use gif
+ "FileView.computerIcon", new IconUIResource(new ImageIcon("icons/Computer.gif")),
+ // XXX Don't use gif
+ "FileView.directoryIcon", new IconUIResource(new ImageIcon("icons/Directory.gif")),
+ // XXX Don't use gif
+ "FileView.fileIcon", new IconUIResource(new ImageIcon("icons/File.gif")),
+ // XXX Don't use gif
+ "FileView.floppyDriveIcon", new IconUIResource(new ImageIcon("icons/Floppy.gif")),
+ // XXX Don't use gif
+ "FileView.hardDriveIcon", new IconUIResource(new ImageIcon("icons/HardDrive.gif")),
+ "FocusManagerClassName", "TODO",
+ "FormView.resetButtonText", "Reset",
+ "FormView.submitButtonText", "Submit Query",
+ "InternalFrame.activeTitleBackground", new ColorUIResource(0, 0, 128),
+ "InternalFrame.activeTitleForeground", new ColorUIResource(Color.white),
+ "InternalFrame.border", new BorderUIResource.CompoundBorderUIResource(null,
+ null),
+ "InternalFrame.closeIcon", BasicIconFactory.createEmptyFrameIcon(),
+ // XXX Don't use gif
+ "InternalFrame.icon", new IconUIResource(new ImageIcon("icons/JavaCup.gif")),
+ "InternalFrame.iconifyIcon", BasicIconFactory.createEmptyFrameIcon(),
+ "InternalFrame.inactiveTitleBackground", new ColorUIResource(Color.gray),
+ "InternalFrame.inactiveTitleForeground", new ColorUIResource(Color.lightGray),
+ "InternalFrame.maximizeIcon", BasicIconFactory.createEmptyFrameIcon(),
+ "InternalFrame.minimizeIcon", BasicIconFactory.createEmptyFrameIcon(),
+ "InternalFrame.titleFont", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "InternalFrame.windowBindings", new Object[] {
+ "shift ESCAPE", "showSystemMenu",
+ "ctrl SPACE", "showSystemMenu",
+ "ESCAPE", "showSystemMenu"
+ },
+ "Label.background", new ColorUIResource(Color.lightGray),
+ "Label.disabledForeground", new ColorUIResource(Color.white),
+ "Label.disabledShadow", new ColorUIResource(Color.gray),
+ "Label.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "List.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "PAGE_UP", "scrollUp",
+ "ctrl \\", "clearSelection",
+ "PAGE_DOWN", "scrollDown",
+ "shift PAGE_DOWN","scrollDownExtendSelection",
+ "END", "selectLastRow",
+ "HOME", "selectFirstRow",
+ "shift END", "selectLastRowExtendSelection",
+ "shift HOME", "selectFirstRowExtendSelection",
+ "UP", "selectPreviousRow",
+ "ctrl /", "selectAll",
+ "ctrl A", "selectAll",
+ "DOWN", "selectNextRow",
+ "shift UP", "selectPreviousRowExtendSelection",
+ "ctrl SPACE", "selectNextRowExtendSelection",
+ "shift DOWN", "selectNextRowExtendSelection",
+ "KP_UP", "selectPreviousRow",
+ "shift PAGE_UP","scrollUpExtendSelection",
+ "KP_DOWN", "selectNextRow"
+ }),
+ "List.foreground", new ColorUIResource(Color.black),
+ "List.selectionBackground", new ColorUIResource(0, 0, 128),
+ "List.selectionForeground", new ColorUIResource(Color.white),
+ "Menu.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "Menu.acceleratorForeground", new ColorUIResource(Color.black),
+ "Menu.acceleratorSelectionForeground", new ColorUIResource(Color.white),
+ "Menu.arrowIcon", BasicIconFactory.getMenuArrowIcon(),
+ "Menu.background", new ColorUIResource(Color.lightGray),
+ "Menu.border", new BasicBorders.MarginBorder(),
+ "Menu.borderPainted", Boolean.FALSE,
+ "Menu.checkIcon", BasicIconFactory.getMenuItemCheckIcon(),
+ "Menu.consumesTabs", Boolean.TRUE,
+ "Menu.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "Menu.foreground", new ColorUIResource(Color.black),
+ "Menu.margin", new InsetsUIResource(2, 2, 2, 2),
+ "Menu.selectedWindowInputMapBindings", new Object[] {
+ "ESCAPE", "cancel",
+ "DOWN", "selectNext",
+ "KP_DOWN", "selectNext",
+ "UP", "selectPrevious",
+ "KP_UP", "selectPrevious",
+ "LEFT", "selectParent",
+ "KP_LEFT", "selectParent",
+ "RIGHT", "selectChild",
+ "KP_RIGHT", "selectChild",
+ "ENTER", "return",
+ "SPACE", "return"
+ },
+ "Menutext.selectionBackground", new ColorUIResource(0, 0, 128),
+ "Menu.selectionForeground", new ColorUIResource(Color.white),
+ "MenuBar.background", new ColorUIResource(Color.lightGray),
+ "MenuBar.border", new BasicBorders.MenuBarBorder(null, null),
+ "MenuBar.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "MenuBar.foreground", new ColorUIResource(Color.black),
+ "MenuBar.windowBindings", new Object[] {
+ "F10", "takeFocus"
+ },
+ "MenuItem.acceleratorDelimiter", "+",
+ "MenuItem.acceleratorFont", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "MenuItem.acceleratorForeground", new ColorUIResource(Color.black),
+ "MenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white),
+ "MenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(),
+ "MenuItem.background", new ColorUIResource(Color.lightGray),
+ "MenuItem.border", new BasicBorders.MarginBorder(),
+ "MenuItem.borderPainted", Boolean.FALSE,
+ "MenuItem.checkIcon", BasicIconFactory.getMenuItemCheckIcon(),
+ "MenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "MenuItem.foreground", new ColorUIResource(Color.black),
+ "MenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
+ "MenuItem.selectionBackground", new ColorUIResource(0, 0, 128),
+ "MenuItem.selectionForeground", new ColorUIResource(Color.white),
+ "OptionPane.background", new ColorUIResource(Color.lightGray),
+ "OptionPane.border", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0),
+ "OptionPane.buttonAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0),
+ "OptionPane.cancelButtonText", "Cancel",
+ // XXX Don't use gif
+ "OptionPane.errorIcon", new IconUIResource(new ImageIcon("icons/Error.gif")),
+ "OptionPane.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "OptionPane.foreground", new ColorUIResource(Color.black),
+ // XXX Don't use gif
+ "OptionPane.informationIcon", new IconUIResource(new ImageIcon("icons/Inform.gif")),
+ "OptionPane.messageAreaBorder", new BorderUIResource.EmptyBorderUIResource(0, 0, 0, 0),
+ "OptionPane.messageForeground", new ColorUIResource(Color.black),
+ "OptionPane.minimumSize", new DimensionUIResource(262, 90),
+ "OptionPane.noButtonText", "No",
+ "OptionPane.okButtonText", "OK",
+ // XXX Don't use gif
+ "OptionPane.questionIcon", new IconUIResource(new ImageIcon("icons/Question.gif")),
+ // XXX Don't use gif
+ "OptionPane.warningIcon", new IconUIResource(new ImageIcon("icons/Warn.gif")),
+ "OptionPane.windowBindings", new Object[] {
+ "ESCAPE", "close"
+ },
+ "OptionPane.yesButtonText", "Yes",
+ "Panel.background", new ColorUIResource(Color.lightGray),
+ "Panel.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "Panel.foreground", new ColorUIResource(Color.black),
+ "PasswordField.background", new ColorUIResource(Color.white),
+ "PasswordField.border", new BasicBorders.FieldBorder(null, null,
+ null, null),
+ "PasswordField.caretBlinkRate", new Integer(500),
+ "PasswordField.caretForeground", new ColorUIResource(Color.black),
+ "PasswordField.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12),
+ "PasswordField.foreground", new ColorUIResource(Color.black),
+ "PasswordField.inactiveForeground", new ColorUIResource(Color.gray),
+ "PasswordField.keyBindings", new JTextComponent.KeyBinding[] {
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,
+ 0),
+ "notify-field-accept")},
+ "PasswordField.margin", new InsetsUIResource(0, 0, 0, 0),
+ "PasswordField.selectionBackground", new ColorUIResource(0, 0, 128),
+ "PasswordField.selectionForeground", new ColorUIResource(Color.white),
+ "PopupMenu.background", new ColorUIResource(Color.lightGray),
+ "PopupMenu.border", new BorderUIResource.BevelBorderUIResource(0),
+ "PopupMenu.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "PopupMenu.foreground", new ColorUIResource(Color.black),
+ "ProgressBar.background", new ColorUIResource(Color.lightGray),
+ "ProgressBar.border", new BorderUIResource.LineBorderUIResource(null),
+ "ProgressBar.cellLength", new Integer(1),
+ "ProgressBar.cellSpacing", new Integer(0),
+ "ProgressBar.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "ProgressBar.foreground", new ColorUIResource(0, 0, 128),
+ "ProgressBar.selectionBackground", new ColorUIResource(0, 0, 128),
+ "ProgressBar.selectionForeground", new ColorUIResource(Color.lightGray),
+ "RadioButton.background", new ColorUIResource(Color.lightGray),
+ "RadioButton.border", new BorderUIResource.CompoundBorderUIResource(null,
+ null),
+ "RadioButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "SPACE", "pressed",
+ "released SPACE", "released"
+ }),
+ "RadioButton.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "RadioButton.foreground", new ColorUIResource(Color.black),
+ "RadioButton.icon", BasicIconFactory.getRadioButtonIcon(),
+ "RadioButton.margin", new InsetsUIResource(2, 2, 2, 2),
+ "RadioButton.textIconGap", new Integer(4),
+ "RadioButton.textShiftOffset", new Integer(0),
+ "RadioButtonMenuItem.acceleratorFont", new FontUIResource("Dialog",
+ Font.PLAIN, 12),
+ "RadioButtonMenuItem.acceleratorForeground", new ColorUIResource(Color.black),
+ "RadioButtonMenuItem.acceleratorSelectionForeground", new ColorUIResource(Color.white),
+ "RadioButtonMenuItem.arrowIcon", BasicIconFactory.getMenuItemArrowIcon(),
+ "RadioButtonMenuItem.background", new ColorUIResource(Color.lightGray),
+ "RadioButtonMenuItem.border", new BasicBorders.MarginBorder(),
+ "RadioButtonMenuItem.borderPainted", Boolean.FALSE,
+ "RadioButtonMenuItem.checkIcon", BasicIconFactory.getRadioButtonMenuItemIcon(),
+ "RadioButtonMenuItem.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "RadioButtonMenuItem.foreground", new ColorUIResource(Color.black),
+ "RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2),
+ "RadioButtonMenuItem.selectionBackground", new ColorUIResource(0, 0, 128),
+ "RadioButtonMenuItem.selectionForeground", new ColorUIResource(Color.white),
+ "RootPane.defaultButtonWindowKeyBindings", new Object[] {
+ "ENTER", "press",
+ "released ENTER", "release",
+ "ctrl ENTER", "press",
+ "ctrl released ENTER", "release"
+ },
+ "ScrollBar.background", new ColorUIResource(224, 224, 224),
+ "ScrollBar.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "PAGE_UP", "negativeBlockIncrement",
+ "PAGE_DOWN", "positiveBlockIncrement",
+ "END", "maxScroll",
+ "HOME", "minScroll",
+ "LEFT", "positiveUnitIncrement",
+ "KP_UP", "negativeUnitIncrement",
+ "KP_DOWN", "positiveUnitIncrement",
+ "UP", "negativeUnitIncrement",
+ "RIGHT", "negativeUnitIncrement",
+ "KP_LEFT", "positiveUnitIncrement",
+ "DOWN", "positiveUnitIncrement",
+ "KP_RIGHT", "negativeUnitIncrement"
+ }),
+ "ScrollBar.foreground", new ColorUIResource(Color.lightGray),
+ "ScrollBar.maximumThumbSize", new DimensionUIResource(4096, 4096),
+ "ScrollBar.minimumThumbSize", new DimensionUIResource(8, 8),
+ "ScrollBar.thumb", new ColorUIResource(Color.lightGray),
+ "ScrollBar.thumbDarkShadow", new ColorUIResource(Color.black),
+ "ScrollBar.thumbHighlight", new ColorUIResource(Color.white),
+ "ScrollBar.thumbLightShadow", new ColorUIResource(Color.gray),
+ "ScrollBar.track", new ColorUIResource(224, 224, 224),
+ "ScrollBar.trackHighlight", new ColorUIResource(Color.black),
+ "ScrollPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "PAGE_UP", "scrollUp",
+ "KP_LEFT", "unitScrollLeft",
+ "ctrl PAGE_DOWN","scrollRight",
+ "PAGE_DOWN", "scrollDown",
+ "KP_RIGHT", "unitScrollRight",
+ "LEFT", "unitScrollLeft",
+ "ctrl END", "scrollEnd",
+ "UP", "unitScrollUp",
+ "RIGHT", "unitScrollRight",
+ "DOWN", "unitScrollDown",
+ "ctrl HOME", "scrollHome",
+ "ctrl PAGE_UP", "scrollLeft",
+ "KP_UP", "unitScrollUp",
+ "KP_DOWN", "unitScrollDown"
+ }),
+ "ScrollPane.background", new ColorUIResource(Color.lightGray),
+ "ScrollPane.border", new BorderUIResource.EtchedBorderUIResource(),
+ "ScrollPane.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "ScrollPane.foreground", new ColorUIResource(Color.black),
+ "Separator.background", new ColorUIResource(Color.white),
+ "Separator.foreground", new ColorUIResource(Color.gray),
+ "Separator.highlight", new ColorUIResource(Color.white),
+ "Separator.shadow", new ColorUIResource(Color.gray),
+ "Slider.background", new ColorUIResource(Color.lightGray),
+ "Slider.focus", new ColorUIResource(Color.black),
+ "Slider.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "PAGE_UP", "positiveBlockIncrement",
+ "PAGE_DOWN", "negativeBlockIncrement",
+ "END", "maxScroll",
+ "HOME", "minScroll",
+ "LEFT", "negativeUnitIncrement",
+ "KP_UP", "positiveUnitIncrement",
+ "KP_DOWN", "negativeUnitIncrement",
+ "UP", "positiveUnitIncrement",
+ "RIGHT", "positiveUnitIncrement",
+ "KP_LEFT", "negativeUnitIncrement",
+ "DOWN", "negativeUnitIncrement",
+ "KP_RIGHT", "positiveUnitIncrement"
+ }),
+ "Slider.focusInsets", new InsetsUIResource(2, 2, 2, 2),
+ "Slider.foreground", new ColorUIResource(Color.lightGray),
+ "Slider.highlight", new ColorUIResource(Color.white),
+ "Slider.shadow", new ColorUIResource(Color.gray),
+ "SplitPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "F6", "toggleFocus",
+ "F8", "startResize",
+ "END", "selectMax",
+ "HOME", "selectMin",
+ "LEFT", "negativeIncremnent",
+ "KP_UP", "negativeIncrement",
+ "KP_DOWN", "positiveIncrement",
+ "UP", "negativeIncrement",
+ "RIGHT", "positiveIncrement",
+ "KP_LEFT", "negativeIncrement",
+ "DOWN", "positiveIncrement",
+ "KP_RIGHT", "positiveIncrement"
+ }),
+ "SplitPane.background", new ColorUIResource(Color.lightGray),
+ "SplitPane.border", new BasicBorders.SplitPaneBorder(null, null),
+ "SplitPane.dividerSize", new Integer(7),
+ "SplitPane.highlight", new ColorUIResource(Color.white),
+ "SplitPane.shadow", new ColorUIResource(Color.gray),
+ "TabbedPane.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "ctrl PAGE_DOWN","navigatePageDown",
+ "ctrl PAGE_UP", "navigatePageUp",
+ "ctrl UP", "requestFocus",
+ "ctrl KP_UP", "requestFocus"
+ }),
+ "TabbedPane.background", new ColorUIResource(Color.lightGray),
+ "TabbedPane.contentBorderInsets", new InsetsUIResource(2, 2, 3, 3),
+ "TabbedPane.darkShadow", new ColorUIResource(Color.black),
+ "TabbedPane.focus", new ColorUIResource(Color.black),
+ "TabbedPane.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "LEFT", "navigateLeft",
+ "KP_UP", "navigateUp",
+ "ctrl DOWN", "requestFocusForVisibleComponent",
+ "UP", "navigateUp",
+ "KP_DOWN", "navigateDown",
+ "RIGHT", "navigateRight",
+ "KP_LEFT", "navigateLeft",
+ "ctrl KP_DOWN", "requestFocusForVisibleComponent",
+ "KP_RIGHT", "navigateRight",
+ "DOWN", "navigateDown"
+ }),
+ "TabbedPane.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "TabbedPane.foreground", new ColorUIResource(Color.black),
+ "TabbedPane.highlight", new ColorUIResource(Color.lightGray),
+ "TabbedPane.lightHighlight", new ColorUIResource(Color.white),
+ "TabbedPane.selectedTabPadInsets", new InsetsUIResource(2, 2, 2, 1),
+ "TabbedPane.shadow", new ColorUIResource(Color.gray),
+ "TabbedPane.tabAreaInsets", new InsetsUIResource(3, 2, 0, 2),
+ "TabbedPane.tabInsets", new InsetsUIResource(0, 4, 1, 4),
+ "TabbedPane.tabRunOverlay", new Integer(2),
+ "TabbedPane.textIconGap", new Integer(4),
+ "Table.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "shift PAGE_DOWN","scrollDownExtendSelection",
+ "PAGE_DOWN", "scrollDownChangeSelection",
+ "END", "selectLastColumn",
+ "shift END", "selectLastColumnExtendSelection",
+ "HOME", "selectFirstColumn",
+ "ctrl END", "selectLastRow",
+ "ctrl shift END","selectLastRowExtendSelection",
+ "LEFT", "selectPreviousColumn",
+ "shift HOME", "selectFirstColumnExtendSelection",
+ "UP", "selectPreviousRow",
+ "RIGHT", "selectNextColumn",
+ "ctrl HOME", "selectFirstRow",
+ "shift LEFT", "selectPreviousColumnExtendSelection",
+ "DOWN", "selectNextRow",
+ "ctrl shift HOME","selectFirstRowExtendSelection",
+ "shift UP", "selectPreviousRowExtendSelection",
+ "F2", "startEditing",
+ "shift RIGHT", "selectNextColumnExtendSelection",
+ "TAB", "selectNextColumnCell",
+ "shift DOWN", "selectNextRowExtendSelection",
+ "ENTER", "selectNextRowCell",
+ "KP_UP", "selectPreviousRow",
+ "KP_DOWN", "selectNextRow",
+ "KP_LEFT", "selectPreviousColumn",
+ "KP_RIGHT", "selectNextColumn",
+ "shift TAB", "selectPreviousColumnCell",
+ "ctrl A", "selectAll",
+ "shift ENTER", "selectPreviousRowCell",
+ "shift KP_DOWN", "selectNextRowExtendSelection",
+ "shift KP_LEFT", "selectPreviousColumnExtendSelection",
+ "ESCAPE", "cancel",
+ "ctrl shift PAGE_UP", "scrollRightExtendSelection",
+ "shift KP_RIGHT", " selectNextColumnExtendSelection",
+ "ctrl PAGE_UP", "scrollLeftChangeSelection",
+ "shift PAGE_UP", "scrollUpExtendSelection",
+ "ctrl shift PAGE_DOWN", "scrollLeftExtendSelection",
+ "ctrl PAGE_DOWN", "scrollRightChangeSelection",
+ "PAGE_UP", "scrollUpChangeSelection"
+ }),
+ "Table.background", new ColorUIResource(Color.white),
+ "Table.focusCellBackground", new ColorUIResource(Color.white),
+ "Table.focusCellForeground", new ColorUIResource(Color.black),
+ "Table.focusCellHighlightBorder", new BorderUIResource.LineBorderUIResource(null),
+ "Table.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "Table.foreground", new ColorUIResource(Color.black),
+ "Table.gridColor", new ColorUIResource(Color.gray),
+ "Table.scrollPaneBorder", new BorderUIResource.BevelBorderUIResource(0),
+ "Table.selectionBackground", new ColorUIResource(0, 0, 128),
+ "Table.selectionForeground", new ColorUIResource(Color.white),
+ "TableHeader.background", new ColorUIResource(Color.lightGray),
+ "TableHeader.cellBorder", new BorderUIResource.BevelBorderUIResource(0),
+ "TableHeader.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "TableHeader.foreground", new ColorUIResource(Color.black),
+ "TextArea.background", new ColorUIResource(Color.white),
+ "TextArea.border", new BasicBorders.MarginBorder(),
+ "TextArea.caretBlinkRate", new Integer(500),
+ "TextArea.caretForeground", new ColorUIResource(Color.black),
+ "TextArea.font", new FontUIResource("MonoSpaced", Font.PLAIN, 12),
+ "TextArea.foreground", new ColorUIResource(Color.black),
+ "TextArea.inactiveForeground", new ColorUIResource(Color.gray),
+ "TextArea.keyBindings", new JTextComponent.KeyBinding[] {
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP,
+ 0), "caret-up"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN,
+ 0), "caret-down"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP,
+ 0), "page-up"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN,
+ 0), "page-down"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,
+ 0), "insert-break"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,
+ 0), "insert-tab")
+ },
+ "TextArea.margin", new InsetsUIResource(0, 0, 0, 0),
+ "TextArea.selectionBackground", new ColorUIResource(0, 0, 128),
+ "TextArea.selectionForeground", new ColorUIResource(Color.white),
+ "TextField.background", new ColorUIResource(Color.white),
+ "TextField.border", new BasicBorders.FieldBorder(null, null, null, null),
+ "TextField.caretBlinkRate", new Integer(500),
+ "TextField.caretForeground", new ColorUIResource(Color.black),
+ "TextField.font", new FontUIResource("SansSerif", Font.PLAIN, 12),
+ "TextField.foreground", new ColorUIResource(Color.black),
+ "TextField.inactiveForeground", new ColorUIResource(Color.gray),
+ "TextField.keyBindings", new JTextComponent.KeyBinding[] {
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,
+ 0),
+ "notify-field-accept")},
+ "TextField.margin", new InsetsUIResource(0, 0, 0, 0),
+ "TextField.selectionBackground", new ColorUIResource(0, 0, 128),
+ "TextField.selectionForeground", new ColorUIResource(Color.white),
+ "TextPane.background", new ColorUIResource(Color.white),
+ "TextPane.border", new BasicBorders.MarginBorder(),
+ "TextPane.caretBlinkRate", new Integer(500),
+ "TextPane.caretForeground", new ColorUIResource(Color.black),
+ "TextPane.font", new FontUIResource("Serif", Font.PLAIN, 12),
+ "TextPane.foreground", new ColorUIResource(Color.black),
+ "TextPane.inactiveForeground", new ColorUIResource(Color.gray),
+ "TextPane.keyBindings", new JTextComponent.KeyBinding[] {
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_UP,
+ 0), "caret-up"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN,
+ 0), "caret-down"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_UP,
+ 0), "page-up"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_PAGE_DOWN,
+ 0), "page-down"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER,
+ 0), "insert-break"),
+ new JTextComponent.KeyBinding(KeyStroke.getKeyStroke(KeyEvent.VK_TAB,
+ 0), "insert-tab")
+ },
+ "TextPane.margin", new InsetsUIResource(3, 3, 3, 3),
+ "TextPane.selectionBackground", new ColorUIResource(Color.lightGray),
+ "TextPane.selectionForeground", new ColorUIResource(Color.white),
+ "TitledBorder.border", new BorderUIResource.EtchedBorderUIResource(),
+ "TitledBorder.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "TitledBorder.titleColor", new ColorUIResource(Color.black),
+ "ToggleButton.background", new ColorUIResource(Color.lightGray),
+ "ToggleButton.border", new BorderUIResource.CompoundBorderUIResource(null, null),
+ "ToggleButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "SPACE", "pressed",
+ "released SPACE", "released"
+ }),
+ "ToggleButton.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "ToggleButton.foreground", new ColorUIResource(Color.black),
+ "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14),
+ "ToggleButton.textIconGap", new Integer(4),
+ "ToggleButton.textShiftOffset", new Integer(0),
+ "ToolBar.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "UP", "navigateUp",
+ "KP_UP", "navigateUp",
+ "DOWN", "navigateDown",
+ "KP_DOWN", "navigateDown",
+ "LEFT", "navigateLeft",
+ "KP_LEFT", "navigateLeft",
+ "RIGHT", "navigateRight",
+ "KP_RIGHT", "navigateRight"
+ }),
+ "ToolBar.background", new ColorUIResource(Color.lightGray),
+ "ToolBar.border", new BorderUIResource.EtchedBorderUIResource(),
+ "ToolBar.dockingBackground", new ColorUIResource(Color.lightGray),
+ "ToolBar.dockingForeground", new ColorUIResource(Color.red),
+ "ToolBar.floatingBackground", new ColorUIResource(Color.lightGray),
+ "ToolBar.floatingForeground", new ColorUIResource(Color.darkGray),
+ "ToolBar.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "ToolBar.foreground", new ColorUIResource(Color.black),
+ "ToolBar.separatorSize", new DimensionUIResource(10, 10),
+ "ToolTip.background", new ColorUIResource(Color.white),
+ "ToolTip.border", new BorderUIResource.LineBorderUIResource(null),
+ "ToolTip.font", new FontUIResource("SansSerif", Font.PLAIN, 12),
+ "ToolTip.foreground", new ColorUIResource(Color.black),
+ "Tree.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "ESCAPE", "cancel"
+ }),
+ "Tree.background", new ColorUIResource(Color.white),
+ "Tree.changeSelectionWithFocus", Boolean.TRUE,
+ // XXX Don't use gif
+ "Tree.closedIcon", new IconUIResource(new ImageIcon("icons/TreeClosed.gif")),
+ "Tree.drawsFocusBorderAroundIcon", Boolean.FALSE,
+ "Tree.editorBorder", new BorderUIResource.LineBorderUIResource(null),
+ "Tree.focusInputMap", new UIDefaults.LazyInputMap(new Object[] {
+ "shift PAGE_DOWN", "scrollDownExtendSelection",
+ "PAGE_DOWN", "scrollDownChangeSelection",
+ "END", "selectLast",
+ "ctrl KP_UP", "selectPreviousChangeLead",
+ "shift END", "selectLastExtendSelection",
+ "HOME", "selectFirst",
+ "ctrl END", "selectLastChangeLead",
+ "ctrl /", "selectAll",
+ "LEFT", "selectParent",
+ "shift HOME", "selectFirstExtendSelection",
+ "UP", "selectPrevious",
+ "ctrl KP_DOWN", "selectNextChangeLead",
+ "RIGHT", "selectChild",
+ "ctrl HOME", "selectFirstChangeLead",
+ "DOWN", "selectNext",
+ "ctrl KP_LEFT", "scrollLeft",
+ "shift UP", "selectPreviousExtendSelection",
+ "F2", "startEditing",
+ "ctrl LEFT", "scrollLeft",
+ "ctrl KP_RIGHT","scrollRight",
+ "ctrl UP", "selectPreviousChangeLead",
+ "shift DOWN", "selectNextExtendSelection",
+ "ENTER", "toggle",
+ "KP_UP", "selectPrevious",
+ "KP_DOWN", "selectNext",
+ "ctrl RIGHT", "scrollRight",
+ "KP_LEFT", "selectParent",
+ "KP_RIGHT", "selectChild",
+ "ctrl DOWN", "selectNextChangeLead",
+ "ctrl A", "selectAll",
+ "shift KP_UP", "selectPreviousExtendSelection",
+ "shift KP_DOWN","selectNextExtendSelection",
+ "ctrl SPACE", "toggleSelectionPreserveAnchor",
+ "ctrl shift PAGE_UP", "scrollUpExtendSelection",
+ "ctrl \\", "clearSelection",
+ "shift SPACE", "extendSelection",
+ "ctrl PAGE_UP", "scrollUpChangeLead",
+ "shift PAGE_UP","scrollUpExtendSelection",
+ "SPACE", "toggleSelectionPreserveAnchor",
+ "ctrl shift PAGE_DOWN", "scrollDownExtendSelection",
+ "PAGE_UP", "scrollUpChangeSelection",
+ "ctrl PAGE_DOWN", "scrollDownChangeLead"
+ }),
+ "Tree.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ "Tree.foreground", new ColorUIResource(Color.black),
+ "Tree.hash", new ColorUIResource(Color.gray),
+ // XXX Don't use gif
+ "Tree.leafIcon", new IconUIResource(new ImageIcon("icons/TreeLeaf.gif")),
+ "Tree.leftChildIndent", new Integer(7),
+ // XXX Don't use gif
+ "Tree.openIcon", new IconUIResource(new ImageIcon("icons/TreeOpen.gif")),
+ "Tree.rightChildIndent", new Integer(13),
+ "Tree.rowHeight", new Integer(16),
+ "Tree.scrollsOnExpand", Boolean.TRUE,
+ "Tree.selectionBackground", new ColorUIResource(0, 0, 128),
+ "Tree.selectionBorderColor", new ColorUIResource(Color.black),
+ "Tree.selectionForeground", new ColorUIResource(Color.white),
+ "Tree.textBackground", new ColorUIResource(Color.lightGray),
+ "Tree.textForeground", new ColorUIResource(Color.black),
+ "Viewport.background", new ColorUIResource(Color.lightGray),
+ "Viewport.font", new FontUIResource("Dialog", Font.PLAIN, 12),
+ };
+ defaults.putDefaults(uiDefaults);
+ }
+} // class BasicLookAndFeel
diff --git a/javax/swing/plaf/basic/Makefile.am b/javax/swing/plaf/basic/Makefile.am
new file mode 100644
index 000000000..9c823e06f
--- /dev/null
+++ b/javax/swing/plaf/basic/Makefile.am
@@ -0,0 +1,19 @@
+EXTRA_DIST = \
+BasicBorders.java \
+BasicButtonUI.java \
+BasicCheckBoxUI.java \
+BasicDefaults.java \
+BasicGraphicsUtils.java \
+BasicIconFactory.java \
+BasicLabelUI.java \
+BasicListUI.java \
+BasicLookAndFeel.java \
+BasicOptionPaneUI.java \
+BasicPanelUI.java \
+BasicRadioButtonUI.java \
+BasicScrollPaneUI.java \
+BasicTabbedPaneUI.java \
+BasicTextUI.java \
+BasicToggleButtonUI.java \
+BasicTreeUI.java \
+BasicViewportUI.java
diff --git a/javax/swing/plaf/metal/.cvsignore b/javax/swing/plaf/metal/.cvsignore
new file mode 100644
index 000000000..3dda72986
--- /dev/null
+++ b/javax/swing/plaf/metal/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/javax/swing/plaf/metal/Makefile.am b/javax/swing/plaf/metal/Makefile.am
new file mode 100644
index 000000000..61eed1498
--- /dev/null
+++ b/javax/swing/plaf/metal/Makefile.am
@@ -0,0 +1,2 @@
+EXTRA_DIST = \
+MetalLookAndFeel.java
diff --git a/javax/swing/table/.cvsignore b/javax/swing/table/.cvsignore
new file mode 100644
index 000000000..3dda72986
--- /dev/null
+++ b/javax/swing/table/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/javax/swing/table/DefaultTableCellRenderer.java b/javax/swing/table/DefaultTableCellRenderer.java
new file mode 100644
index 000000000..63c8db2c2
--- /dev/null
+++ b/javax/swing/table/DefaultTableCellRenderer.java
@@ -0,0 +1,31 @@
+package javax.swing.table;
+import java.awt.Component;
+import java.io.Serializable;
+import javax.swing.JLabel;
+import javax.swing.JTable;
+/**
+ * STUBBED
+ */
+public class DefaultTableCellRenderer extends JLabel
+ implements TableCellRenderer, Serializable
+{
+ public static class UIResource extends DefaultTableCellRenderer
+ implements javax.swing.plaf.UIResource
+ {
+ public UIResource()
+ {
+ }
+ } // class UIResource
+
+ public DefaultTableCellRenderer()
+ {
+ }
+
+ public Component getTableCellRendererComponent(JTable table, Object value,
+ boolean isSelected,
+ boolean hasFocus,
+ int row, int column)
+ {
+ return null;
+ }
+} // class DefaultTableCellRenderer
diff --git a/javax/swing/table/Makefile.am b/javax/swing/table/Makefile.am
new file mode 100644
index 000000000..b4a100ac7
--- /dev/null
+++ b/javax/swing/table/Makefile.am
@@ -0,0 +1,9 @@
+EXTRA_DIST = \
+AbstractTableModel.java \
+DefaultTableColumnModel.java \
+DefaultTableModel.java \
+TableCellEditor.java \
+TableCellRenderer.java \
+TableColumn.java \
+TableColumnModel.java \
+TableModel.java
diff --git a/javax/swing/text/.cvsignore b/javax/swing/text/.cvsignore
new file mode 100644
index 000000000..3dda72986
--- /dev/null
+++ b/javax/swing/text/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/javax/swing/text/JTextComponent.java b/javax/swing/text/JTextComponent.java
index 0e441b717..8664cdf63 100644
--- a/javax/swing/text/JTextComponent.java
+++ b/javax/swing/text/JTextComponent.java
@@ -1,23 +1,43 @@
package javax.swing.text;
-import java.awt.*;
-import javax.swing.*;
-import javax.swing.plaf.*;
-
-
+import java.awt.AWTEvent;
+import java.awt.Component;
+import java.awt.Dimension;
+import java.awt.Image;
+import java.awt.Rectangle;
+import javax.accessibility.Accessible;
import javax.accessibility.AccessibleContext;
import javax.accessibility.AccessibleRole;
import javax.accessibility.AccessibleState;
import javax.accessibility.AccessibleStateSet;
-
-public class JTextComponent extends JComponent
+import javax.swing.Icon;
+import javax.swing.JComponent;
+import javax.swing.KeyStroke;
+import javax.swing.Scrollable;
+import javax.swing.UIManager;
+import javax.swing.plaf.TextUI;
+
+public abstract class JTextComponent extends JComponent
+ implements Scrollable, Accessible
{
- public class KeyBinding
+// public class AccessibleJTextComponent extends AccessibleJComponent
+// implements AccessibleText, CaretListener, DocumentListener,
+// AccessibleAction, AccessibleEditableText
+// {
+// } // class AccessibleJTextComponent
+
+ public static class KeyBinding
+ {
+ public KeyStroke key;
+ public String actionName;
+ public KeyBinding(KeyStroke key, String actionName)
{
- char from, to;
+ this.key = key;
+ this.actionName = actionName;
}
-
- int icon_gap;
+ } // class KeyBinding
+
+ int icon_gap;
Icon icon;
int align;
Document doc;
@@ -212,7 +232,22 @@ public class JTextComponent extends JComponent
TextUI b = (TextUI)UIManager.getUI(this);
setUI(b);
}
-}
+
+ public Dimension getPreferredScrollableViewportSize()
+ {
+ return null;
+ }
+ public int getScrollableUnitIncrement(Rectangle visible, int orientation,
+ int direction)
+ {
+ return 0;
+ }
+ public int getScrollableBlockIncrement(Rectangle visible, int orientation,
+ int direction)
+ {
+ return 0;
+ }
+} // class JTextComponent
diff --git a/javax/swing/text/Makefile.am b/javax/swing/text/Makefile.am
new file mode 100644
index 000000000..7730c870a
--- /dev/null
+++ b/javax/swing/text/Makefile.am
@@ -0,0 +1,22 @@
+EXTRA_DIST = \
+AbstractDocument.java \
+AttributeSet.java \
+BadLocationException.java \
+Caret.java \
+CharacterIterator.java \
+ComponentView.java \
+DefaultCaret.java \
+DefaultEditorKit.java \
+Document.java \
+EditorKit.java \
+Element.java \
+GapContent.java \
+JTextComponent.java \
+Keymap.java \
+PlainDocument.java \
+PlainEditorKit.java \
+Position.java \
+Segment.java \
+Style.java \
+View.java \
+ViewFactory.java
diff --git a/javax/swing/tree/.cvsignore b/javax/swing/tree/.cvsignore
new file mode 100644
index 000000000..3dda72986
--- /dev/null
+++ b/javax/swing/tree/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/javax/swing/tree/Makefile.am b/javax/swing/tree/Makefile.am
new file mode 100644
index 000000000..b0809a796
--- /dev/null
+++ b/javax/swing/tree/Makefile.am
@@ -0,0 +1,18 @@
+EXTRA_DIST = \
+AbstractLayoutCache.java \
+DefaultMutableTreeNode.java \
+DefaultTreeCellEditor.java \
+DefaultTreeCellRenderer.java \
+DefaultTreeModel.java \
+DefaultTreeSelectionModel.java \
+ExpandVetoException.java \
+FixedHeightLayoutCache.java \
+MutableTreeNode.java \
+RowMapper.java \
+TreeCellEditor.java \
+TreeCellRenderer.java \
+TreeModel.java \
+TreeNode.java \
+TreePath.java \
+TreeSelectionModel.java \
+VariableHeightLayoutCache.java
diff --git a/javax/swing/tree/TreeCellEditor.java b/javax/swing/tree/TreeCellEditor.java
index 3155d9135..c55b97d33 100644
--- a/javax/swing/tree/TreeCellEditor.java
+++ b/javax/swing/tree/TreeCellEditor.java
@@ -40,7 +40,6 @@ package javax.swing.tree;
// Imports
import java.awt.Component;
import javax.swing.JTree;
-import javax.swing.CellEditor;
/**
* TreeCellEditor interface
diff --git a/javax/swing/undo/.cvsignore b/javax/swing/undo/.cvsignore
new file mode 100644
index 000000000..3dda72986
--- /dev/null
+++ b/javax/swing/undo/.cvsignore
@@ -0,0 +1,2 @@
+Makefile.in
+Makefile
diff --git a/javax/swing/undo/Makefile.am b/javax/swing/undo/Makefile.am
new file mode 100644
index 000000000..f176eaa45
--- /dev/null
+++ b/javax/swing/undo/Makefile.am
@@ -0,0 +1,10 @@
+EXTRA_DIST = \
+AbstractUndoableEdit.java \
+CannotRedoException.java \
+CannotUndoException.java \
+CompoundEdit.java \
+StateEdit.java \
+StateEditable.java \
+UndoManager.java \
+UndoableEdit.java \
+UndoableEditSupport.java
diff --git a/lib/standard.omit b/lib/standard.omit
index d0d3c7969..18d465035 100644
--- a/lib/standard.omit
+++ b/lib/standard.omit
@@ -5,4 +5,3 @@
../java/util/prefs/.*$
../gnu/java/util/prefs/.*$
../gnu/classpath/tools/.*$
-../javax/swing/.*$