[jsword-svn] r1392 - in trunk/common-swing/src/main/java/org/crosswire/common: config/swing swing

dmsmith at www.crosswire.org dmsmith at www.crosswire.org
Thu Jun 7 07:41:28 MST 2007


Author: dmsmith
Date: 2007-06-07 07:41:28 -0700 (Thu, 07 Jun 2007)
New Revision: 1392

Modified:
   trunk/common-swing/src/main/java/org/crosswire/common/config/swing/AbstractConfigEditor.java
   trunk/common-swing/src/main/java/org/crosswire/common/swing/FormPane.java
Log:
Fixed a tooltip problem on the Options dialog.

Modified: trunk/common-swing/src/main/java/org/crosswire/common/config/swing/AbstractConfigEditor.java
===================================================================
--- trunk/common-swing/src/main/java/org/crosswire/common/config/swing/AbstractConfigEditor.java	2007-06-07 14:27:23 UTC (rev 1391)
+++ trunk/common-swing/src/main/java/org/crosswire/common/config/swing/AbstractConfigEditor.java	2007-06-07 14:41:28 UTC (rev 1392)
@@ -185,10 +185,9 @@
 
         // Add the Field to the FieldPanel
         JComponent comp = field.getComponent();
-        comp.setToolTipText(model.getHelpText());
 
         String name = Config.getLeaf(model.getFullPath()) + ':';
-        card.addEntry(name, comp);
+        card.addEntry(name, model.getHelpText(), comp);
 
         // Fill in the current value
         String value = config.getLocal(key);

Modified: trunk/common-swing/src/main/java/org/crosswire/common/swing/FormPane.java
===================================================================
--- trunk/common-swing/src/main/java/org/crosswire/common/swing/FormPane.java	2007-06-07 14:27:23 UTC (rev 1391)
+++ trunk/common-swing/src/main/java/org/crosswire/common/swing/FormPane.java	2007-06-07 14:41:28 UTC (rev 1392)
@@ -51,9 +51,10 @@
      * @param prompt The name for the field
      * @param comp The component to add alongside the label
      */
-    public void addEntry(String prompt, Component comp)
+    public void addEntry(String prompt, String tooltip, Component comp)
     {
         JLabel label = new JLabel(prompt);
+        label.setToolTipText(tooltip);
 
         add(label);
         add(comp);




More information about the jsword-svn mailing list