private void hideSliderValue() {
        try {
            Class<?> sliderUIClass = Class.forName("javax.swing.plaf.synth.SynthSliderUI");
            final Field paintValue = sliderUIClass.getDeclaredField("paintValue");
            paintValue.setAccessible(true);
            paintValue.set(zoomSlider.getUI(), false);
        } catch (ClassNotFoundException | IllegalAccessException | IllegalArgumentException | NoSuchFieldException | SecurityException ex) {
            System.out.println("Could not hide the slide value: " + ex.getMessage());
        }
    }