JButton b = new JButton("test"); b.setContentAreaFilled(false); con.add(b); con.setBackground(Color.red);