label2.setText(Integer.toString(slider.getValue()) +
label1.setText(Integer.toString(slider.getValue()) +
                    public void stateChanged(ChangeEvent e) {                        JSlider slider = (JSlider) e.getSource();                        label2.setText(Integer.toString(slider.getValue()) +                                       " kb/s");                    }