//Invisible/Transparent Button in swing button.setOpaque(false); button.setContentAreaFilled(false); button.setBorderPainted(false);

Read more of this post