Пример #1
0
 /**
  * Tests if enter is pressed in the _bbodField so we need to set the target bounds.
  *
  * @see java.awt.event.KeyListener#keyTyped(java.awt.event.KeyEvent)
  */
 public void keyTyped(KeyEvent e) {
   if (e.getSource().equals(bboxField) && e.getKeyChar() == '\n') {
     setTargetBBox();
   }
 }
Пример #2
0
 /**
  * Makes sure that the fig is updated when the bboxField loses focus.
  *
  * <p>{@inheritDoc}
  */
 public void focusLost(FocusEvent e) {
   if (e.getSource() == bboxField) {
     setTargetBBox();
   }
 }