private static void hideSlider(JSlider slider, ChangeListener listener) {
      slider.removeChangeListener(listener);
      slider.setVisible(false);
    }
private static void hideSlider(JSlider slider, ChangeListener listener)