This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
FYI: TestLookAndFeel
- From: David Gilbert <david dot gilbert at object-refinery dot com>
- To: mauve-patches at sources dot redhat dot com
- Date: Fri, 21 Oct 2005 11:09:10 +0100
- Subject: FYI: TestLookAndFeel
I committed this class which is needed by the JComboBox.setEditor() test
I committed earlier - sorry for the omission:
2005-10-21 David Gilbert <david.gilbert@object-refinery.com>
* gnu/testlet/javax/swing/plaf/TestLookAndFeel.java: New support class,
* gnu/testlet/javax/swing/JComboBox/setEditor.java: Updated import for
TestLookAndFeel.
Regards,
Dave
Index: gnu/testlet/javax/swing/JComboBox/setEditor.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/JComboBox/setEditor.java,v
retrieving revision 1.1
diff -u -r1.1 setEditor.java
--- gnu/testlet/javax/swing/JComboBox/setEditor.java 18 Oct 2005 15:51:41 -0000 1.1
+++ gnu/testlet/javax/swing/JComboBox/setEditor.java 21 Oct 2005 09:05:18 -0000
@@ -21,7 +21,7 @@
import gnu.testlet.TestHarness;
import gnu.testlet.Testlet;
-import gnu.testlet.javax.swing.TestLookAndFeel;
+import gnu.testlet.javax.swing.plaf.TestLookAndFeel;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
Index: gnu/testlet/javax/swing/plaf/TestLookAndFeel.java
===================================================================
RCS file: gnu/testlet/javax/swing/plaf/TestLookAndFeel.java
diff -N gnu/testlet/javax/swing/plaf/TestLookAndFeel.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gnu/testlet/javax/swing/plaf/TestLookAndFeel.java 21 Oct 2005 09:05:19 -0000
@@ -0,0 +1,62 @@
+// Tags: not-a-test
+
+// Copyright (C) 2005 David Gilbert <david.gilbert@object-refinery.com>
+
+// Mauve is free software; you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// Mauve is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with Mauve; see the file COPYING. If not, write to
+// the Free Software Foundation, 59 Temple Place - Suite 330,
+// Boston, MA 02111-1307, USA.
+
+package gnu.testlet.javax.swing.plaf;
+
+import javax.swing.UIDefaults;
+import javax.swing.plaf.basic.BasicLookAndFeel;
+
+/**
+ * A test look and feel based on the BasicLookAndFeel.
+ */
+public class TestLookAndFeel extends BasicLookAndFeel {
+
+ public String getID()
+ {
+ return "TestLookAndFeel";
+ }
+ public String getName()
+ {
+ return "TestLookAndFeel";
+ }
+ public String getDescription()
+ {
+ return "TestLookAndFeel";
+ }
+ public boolean isSupportedLookAndFeel()
+ {
+ return true;
+ }
+ public boolean isNativeLookAndFeel()
+ {
+ return false;
+ }
+ public void initSystemColorDefaults(UIDefaults defaults)
+ {
+ super.initSystemColorDefaults(defaults);
+ }
+ public void initComponentDefaults(UIDefaults defaults)
+ {
+ super.initComponentDefaults(defaults);
+ }
+ public void initClassDefaults(UIDefaults defaults)
+ {
+ super.initClassDefaults(defaults);
+ }
+}