/** * 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(); } }
/** * Makes sure that the fig is updated when the bboxField loses focus. * * <p>{@inheritDoc} */ public void focusLost(FocusEvent e) { if (e.getSource() == bboxField) { setTargetBBox(); } }