southpan.setForeground(Color.white);
JLabel labelsouth = new JLabel("A green label in the south panel ");
labelsouth.setForeground(Color.green);
southpan.add(labelsouth);
JButton okButton = new JButton("OK");
okButton.addActionListener(this);
southpan.add(okButton);
contentPane.add(southpan, BorderLayout.SOUTH);
okButton.setMnemonic(KeyEvent.VK_F10);
pack();
}