@Override
      public void focusLost(FocusEvent e) {
        if (!myPatternField.getEditorField().isExpanded()) {
          myPositionPanel.setVisible(false);
          myPanel.revalidate();
        }
      }
@Override
      public void focusLost(FocusEvent e)