update status bar with mouse over
authoramwaterhouse <Andrew Waterhouse>
Thu, 14 Apr 2005 15:04:45 +0000 (15:04 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 14 Apr 2005 15:04:45 +0000 (15:04 +0000)
src/jalview/gui/AnnotationPanel.java

index 420e369..7b0fa67 100755 (executable)
@@ -312,7 +312,14 @@ public class AnnotationPanel extends JPanel implements MouseListener, MouseMotio
 \r
     int res = evt.getX() / av.getCharWidth() + av.getStartRes();\r
     if(row>-1 && res<aa[row].annotations.length && aa[row].annotations[res]!=null)\r
+    {\r
       this.setToolTipText(aa[row].annotations[res].description);\r
+      StringBuffer text = new StringBuffer("Sequence position " + (res + 1) +\r
+                                           "  " +\r
+                                           aa[row].annotations[res].description);\r
+      ap.alignFrame.statusBar.setText(text.toString());\r
+    }\r
+\r
 \r
   }\r
   public void mouseClicked(MouseEvent evt) {}\r