JAL-3032 register JTable with ToolTipManager
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 6 Jul 2018 09:49:56 +0000 (10:49 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 6 Jul 2018 09:49:56 +0000 (10:49 +0100)
src/jalview/gui/FeatureSettings.java

index c0097cd..32d3603 100644 (file)
@@ -94,6 +94,7 @@ import javax.swing.JSlider;
 import javax.swing.JTable;
 import javax.swing.ListSelectionModel;
 import javax.swing.SwingConstants;
+import javax.swing.ToolTipManager;
 import javax.swing.border.Border;
 import javax.swing.event.ChangeEvent;
 import javax.swing.event.ChangeListener;
@@ -252,6 +253,7 @@ public class FeatureSettings extends JPanel
     };
     table.getTableHeader().setFont(new Font("Verdana", Font.PLAIN, 12));
     table.setFont(new Font("Verdana", Font.PLAIN, 12));
+    ToolTipManager.sharedInstance().registerComponent(table);
 
     // table.setDefaultRenderer(Color.class, new ColorRenderer());
     // table.setDefaultEditor(Color.class, new ColorEditor(this));