animationDelaySlider = new JSlider(0, 1000, (int) sleepAmount);
animationDelaySlider = new JSlider(0, 100, (int) sleepAmount);
        public ControlPanel() {            super(BoxLayout.X_AXIS);            animationDelaySlider = new JSlider(0, 1000, (int) sleepAmount);            animationDelaySlider.addChangeListener(this);            //animationDelaySlider.setPaintLabels(true);            animationOn = new JCheckBox("Animation On");            animationOn.setSelected(Display.ENABLE_ANIMATION);            animationOn.addChangeListener(this);            add(new JLabel("Animation delay:"));            add(animationDelaySlider);            add(Box.createHorizontalStrut(20));            add(animationOn);        }