button swing java style code example Example: style jbuttons btn.setBorderPainted(false); btn.setFocusPainted(false);