I don't want to change color of JButton when pressed
问题 Color newColor = new Color(197,222,90); JButton newButton; newButton = new JButton(icon); newButton.setBacgroundColor(newColor); When it is pressed it changes color. How can i keep it from changing color. I have multiple buttons, so if there is solution in one or two rows pls help me, and keep in mind that I'm beginner, writing some huge classes wont help me, because i have multiple buttons with different name to be affected with this. EDIT: Solution in one line is: UIManager.put("Button