How to create partly transparent JButton on fully transparent JFrame?
问题 I am able to make JFrame totally transparent and the JButton is partly transparent just fine until I move my mouse on the button ( do not click ) and move the mouse off from the button ( MouseExited called via MouseListener ). What happens is that the background of the JButton is drawn again, so after couple of mouse movements on and off the button the button is totally opaque. public class ButtonExample extends JWindow { public ButtonExample( ) { JButton But = new JButton( "Testing" ); But