maxZoomLabel.setText(String.valueOf(val)+"%");
            public void maxZoomLevelChanged(double level)            {                int val = (int)Math.round(level*100);                if(slider.getValue() > val)                {                    slider.setValue(val);                }                slider.setMaximum(val);            }