Changeset 234

Show
Ignore:
Timestamp:
04/25/08 13:05:53 (7 months ago)
Author:
Stuart Thiel
Message:

-Fixed #198
--Wasn't catching the key events explicitly on the buttons

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • MediAnnotate/trunk/src/org/mediannotate/ui/UtilityPanel.java

    r183 r234  
    6767                jb.addActionListener(new UtilityPanel.addAnnotationEventListener()); 
    6868                jb.setToolTipText("Save Annotation"); 
    69                 this.add(jb); 
     69                jb.addKeyListener(p); 
     70                this.add(jb); 
     71                 
    7072                 
    7173                jb = new JButton(new ImageIcon(inImage)); 
    7274                jb.addActionListener(new UtilityPanel.markInEventHandler(p)); 
    7375                jb.setToolTipText("Mark Start of Annotation (ctrl-i)"); 
     76                jb.addKeyListener(p); 
    7477                this.add(jb); 
    7578                 
     
    7780                jb.addActionListener(new UtilityPanel.markOutEventHandler(p)); 
    7881                jb.setToolTipText("Mark End of Annotation (ctrl-o)"); 
     82                jb.addKeyListener(p); 
    7983                this.add(jb); 
    8084                 
     
    8286                jb.addActionListener(p.getPlayListener()); 
    8387                jb.setToolTipText("Play Movie"); 
     88                jb.addKeyListener(p); 
    8489                this.add(jb); 
    8590                 
     
    8792                jb.addActionListener(p.getStopListener()); 
    8893                jb.setToolTipText("Stop Movie"); 
     94                jb.addKeyListener(p); 
    8995                this.add(jb); 
    9096