Hello everyone!
Guys, I have been googling a lot about my problem and found a number of similar issues, but they have not helped me
What I want is to refresh my components when something on which my components depend occures.
I have created a special class called MyLabel and overridden a repaint() and setText(..) methods there. Also I have overridden repaint() method in MyButton class. Now when someone calls that methods MyButton should become disabled, and MyLabel should change its caption, both depending on the value of boolean status variable.
I change that variable using another button and I use validate, revalidate, repaintall methods to repaint components, but they do not produce any result. Where I am wrong?