public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
* Patch: BasicLookAndFeel initComponentDefaults
@ 2005-12-21 20:23 Lillian Angel
  2005-12-21 20:30 ` Roman Kennke
  0 siblings, 1 reply; 4+ messages in thread
From: Lillian Angel @ 2005-12-21 20:23 UTC (permalink / raw)
  To: mauve-patches

[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

2005-12-20  Lillian Angel  <langel@redhat.com>

        * gnu/testlet/javax/swing/plaf/basic/BasicLookAndFeel/
	initComponentDefaults.java:
        Added checks for TextArea.focusInputMap, 
	TextField.focusInputMap, TextPane.focusInputMap, and 
	PasswordField.focusInputMap.


[-- Attachment #2: patch.diff --]
[-- Type: text/x-patch, Size: 2916 bytes --]

Index: gnu/testlet/javax/swing/plaf/basic/BasicLookAndFeel/initComponentDefaults.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/javax/swing/plaf/basic/BasicLookAndFeel/initComponentDefaults.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- gnu/testlet/javax/swing/plaf/basic/BasicLookAndFeel/initComponentDefaults.java	27 Sep 2005 18:36:26 -0000	1.5
+++ gnu/testlet/javax/swing/plaf/basic/BasicLookAndFeel/initComponentDefaults.java	21 Dec 2005 20:20:37 -0000	1.6
@@ -36,6 +36,7 @@
 import javax.swing.KeyStroke;
 import javax.swing.ListCellRenderer;
 import javax.swing.UIDefaults;
+import javax.swing.UIManager;
 import javax.swing.border.Border;
 import javax.swing.plaf.BorderUIResource;
 import javax.swing.plaf.ColorUIResource;
@@ -251,6 +252,7 @@
     harness.check(defaults.get("PasswordField.caretBlinkRate"), new Integer(500));
     harness.check(defaults.get("PasswordField.font"), new FontUIResource("MonoSpaced", Font.PLAIN, 12));
     harness.check(defaults.get("PasswordField.margin"), new InsetsUIResource(0, 0, 0, 0));
+    harness.check(UIManager.get("PasswordField.focusInputMap") instanceof InputMapUIResource);
     
     harness.checkPoint("PopupMenu");
     harness.check(defaults.get("PopupMenu.border") instanceof BorderUIResource.CompoundBorderUIResource);
@@ -389,12 +391,14 @@
     harness.check(defaults.get("TextArea.caretBlinkRate"), new Integer(500));
     harness.check(defaults.get("TextArea.font"), new FontUIResource("MonoSpaced", Font.PLAIN, 12));
     harness.check(defaults.get("TextArea.margin"), new InsetsUIResource(0, 0, 0, 0));
+    harness.check(UIManager.get("TextArea.focusInputMap") instanceof InputMapUIResource);
     
     harness.checkPoint("TextField");
     harness.check(defaults.get("TextField.border") instanceof BasicBorders.FieldBorder);
     harness.check(defaults.get("TextField.caretBlinkRate"), new Integer(500));
     harness.check(defaults.get("TextField.font"), new FontUIResource("SansSerif", Font.PLAIN, 12));
     harness.check(defaults.get("TextField.margin"), new InsetsUIResource(0, 0, 0, 0));
+    harness.check(UIManager.get("TextField.focusInputMap") instanceof InputMapUIResource);
     
     harness.checkPoint("TextPane");
     harness.check(defaults.get("TextPane.background"), new ColorUIResource(255, 255, 255));
@@ -402,6 +406,7 @@
     harness.check(defaults.get("TextPane.caretBlinkRate"), new Integer(500));
     harness.check(defaults.get("TextPane.font"), new FontUIResource("Serif", Font.PLAIN, 12));
     harness.check(defaults.get("TextPane.margin"), new InsetsUIResource(3, 3, 3, 3));
+    harness.check(UIManager.get("TextPane.focusInputMap") instanceof InputMapUIResource);
     
     harness.checkPoint("TitledBorder");
     harness.check(defaults.get("TitledBorder.border") instanceof BorderUIResource.EtchedBorderUIResource);

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-22 14:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21 20:23 Patch: BasicLookAndFeel initComponentDefaults Lillian Angel
2005-12-21 20:30 ` Roman Kennke
2005-12-21 22:15   ` Lillian Angel
2005-12-22 14:36     ` FYI: " Lillian Angel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).