Posts by Luan • 1 point
1 post
-
0
votes2
answers754
viewsA: how to access the jbutton that is in the other class?
You can leave the button as static: Private Static JButton btnBotão; And create a statistical method to call this button: public static JButton getButton(){ return btnBotao; } all this in the main…