Jbuttons transparent look needed

java, look-and-feel, netbeans, swing, transparency

Solution

Try the following:

button.setOpaque(false);
button.setContentAreaFilled(false); //to make the content area transparent
button.setBorderPainted(false); //to make the borders transparent

Problem

I am using Java Netbeans GUI Builder for making GUI. I want to give the buttons a transparent (glossy) look.I am using ``` UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); ``` which also gives nice look to GUI but the buttons are still the same boring buttons. So,how to give buttons a transparent look?

Original source

Related problems