X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FFeatureSettings.java;h=062eda1cef61758ca9bd304823b5d5dd7052739a;hb=51c68cf0145a7d72e4952bf0d2284318e229d58f;hp=c0097cda2a78b7f2cf4db5a84469a1fd93cc5733;hpb=dc28588f5b5aa01098cfffec7fbcb0184fdf7162;p=jalview.git diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index c0097cd..062eda1 100644 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -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; @@ -236,7 +237,7 @@ public class FeatureSettings extends JPanel } /** - * Position the tooltip at the bottom edge of, and half way across, the + * Position the tooltip near the bottom edge of, and half way across, the * current cell */ @Override @@ -246,12 +247,13 @@ public class FeatureSettings extends JPanel int column = table.columnAtPoint(point); int row = table.rowAtPoint(point); Rectangle r = getCellRect(row, column, false); - Point loc = new Point(r.x + r.width / 2, r.y + r.height); + Point loc = new Point(r.x + r.width / 2, r.y + r.height - 3); return loc; } }; 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));