public ButtonsPanel() { super(); setOpaque(true); for (JButton b : buttons) { b.setFocusable(false); b.setRolloverEnabled(false); add(b); } }