cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgen...@apache.org
Subject svn commit: r1022797 - /cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java
Date Fri, 15 Oct 2010 00:53:53 GMT
Author: mgentry
Date: Fri Oct 15 00:53:53 2010
New Revision: 1022797

URL: http://svn.apache.org/viewvc?rev=1022797&view=rev
Log:
Added tooltip when hovering over the model path so you can actually know which model you are
selecting when you have long paths which are the same for the first 5+ or so directories.

Modified:
    cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java

Modified: cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java?rev=1022797&r1=1022796&r2=1022797&view=diff
==============================================================================
--- cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java
(original)
+++ cayenne/main/trunk/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java
Fri Oct 15 00:53:53 2010
@@ -237,7 +237,7 @@ public class WelcomeScreen extends JPane
         /**
          * List which is rendered
          */
-        private JList list;
+        private final JList list;
 
         /**
          * Row mouse is over
@@ -251,7 +251,7 @@ public class WelcomeScreen extends JPane
             this.list = list;
             rolloverRow = -1;
 
-            setHorizontalTextPosition(10);
+            setHorizontalTextPosition(SwingConstants.LEADING);
         }
 
         @Override
@@ -268,6 +268,7 @@ public class WelcomeScreen extends JPane
                 setOpaque(true);
                 setForeground(ROLLOVER_FOREGROUND);
                 setBackground(ROLLOVER_BACKGROUND);
+                setToolTipText(getText());
             }
             else {
                 setOpaque(false);



Mime
View raw message