Revision: 3443
Author: ferguson.sebastian
Date: Wed Apr  7 15:22:07 2010
Log: Added tool tips for oversized usernames in the projectsecuritypanel
http://code.google.com/p/power-architect/source/detail?r=3443

Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/enterprise/ProjectSecurityPanel.java

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/enterprise/ProjectSecurityPanel.java Wed Apr 7 14:53:55 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/enterprise/ProjectSecurityPanel.java Wed Apr 7 15:22:07 2010
@@ -229,6 +229,11 @@
             this.model = model;
         }
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
+
+            if (column == 0) {
+ table.setToolTipText(((JLabel) model.getValueAt(row, column)).getText());
+            }
+
             return (Component) model.getValueAt(row, column);
         }
     }


--
To unsubscribe, reply using "remove me" as the subject.

Reply via email to