Answer the question
In order to leave comments, you need to log in
How to replace one component with another in Java Swing on button click?
For example, replace the button with JLabel. What is the principle?
Answer the question
In order to leave comments, you need to log in
Delete the button object, create the label and position it in the same place. Your CO.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question