SyntaxFix
Write A Post
Hire A Developer
Questions
Have you tried setting the painted border false?
JButton button = new JButton(); button.setBackground(Color.red); button.setOpaque(true); button.setBorderPainted(false);
It works on my mac :)