Java Netbeans Jlabel visiblity
posted 10 months ago
Hi , I have created a java gui using jlabels , I have 2 tabs (Home & About) . In the about tab , I have a button which when I click an icon appears . That works fine , but I have a problem , when I try switching tabs (Go to home tab) and Go back to the about tab , the icon doesn't stay there (disappears) , I have to click again for it to appear ... my question is , is there a way to make the program realize that the button was clicked and it stays there even if I click on different tabs?