@Override public void focusGained(FocusEvent e) {
        repaint();
        // ensure we don't have two repaints of properties panel - one from focus gain and another from click
        myAlarm.addRequest(() -> editor.fireSelectedComponentChanged(), 1000);
      }
@Override public void focusGained(FocusEvent e)