Have you tried setting JButton.setOpaque(true)?
JButton button = new JButton("test");
button.setBackground(Color.RED);
button.setOpaque(true);
More Related Contents:
- JAR Bundler using OSXAdapter causing application to lag or terminate
- Re-paint on translucent frame/panel/component.
- How do I move my JMenuBar to the screen menu bar on Mac OS X?
- Custom button not working on mac (ButtonUI)
- Swing on OSX: How to Trap command-Q?
- Java – How to hook into the Copy and Paste menu on the Mac OS
- Native Swing Menu Bar Support For MacOS X In Java
- Setting the default application icon image in Java swing on OS X
- permission denied error while reading/writing file by application(.jar) in mac
- Java Event-Dispatching Thread explanation
- Scale the ImageIcon automatically to label size
- Get Selected Rows in JTable using AbstractTableModel
- SwingUtilities.invokeLater() why is it needed?
- How to add MouseListener to item on Java Swing Canvas
- How to retrieve image from project folder?
- Graphics rendering in title bar
- Get a Swing component by name
- How to change highlighting color in Java Swing TextArea? And also, change the beginning of text corresponding to the highlighting location
- Prevent Swing GUI locking up during a background task
- Java Linux Terminal in JPanel
- Rotate an image in java
- Rotate a Java Graphics2D Rectangle?
- Exporting a JPanel to an image
- Is The Java Tutorials Translucent Window example giving trouble to those playing with jdk7?
- SunTlsRsaPremasterSecret KeyGenerator not available
- How to include custom panel with NetBeans GUI Builder?
- Java Drag-n-Drop files of specific extension on JFrame
- Snake game in Java but my restart button does not work
- add JMenuBar to a JPanel?
- JTable Cell Renderer