Display labels one at a time in a jbutton ActionListener
posted 3 years ago
I have tried every way I can think of to solve this problem. I'm trying to display 4 labels when a person clicks on a jbutton. I want each label to be displayed one at a time rather than all at once. it appears that nothing will be displayed until the actionlistener has gone through the entire actionlistener class. Is this how actionListeners work? I've tried to put timedelays between label.setVisible(true);, but it doesn't matter, it still outputs all the labels at once.