I have a single JPanel that contains a JSlider and a JLabel. I want to configure it so that when the JSlider\'s value is being changed by the user, that new value is reflect
What you need to do is add the change listener to the slider.
Then in the change method that you have to implement, change the value of the text in the JLabel.
JLabel
Regarding your code, all the doSomething(int) method needs to do is:
doSomething(int)
label.setText(currentTime + "");