I have a code below
jSlider1.setValue(0);
int i =0;
while (i <= jSlider1.getMaximum()) {
jSlider1.setValue(i);
// JOptionPane.showMessageDialog(rootPane,"deded");
Thread.sleep(2000);
i++;
}
What I want is I want to move JSlider automatically its min to max value. I have writeen above code. But I can not get the output. But when I remove the comment of "JOptionPane.showMessageDialog(rootPane,"deded"); " , It's work properly with the message. Please help me. I am in big trouble. I like to have a sample code if any one know the sollution. Thank you