toBack() doesn't work on this:
public DesktopPanel()
{
Dimension screenSize =
Toolkit.getDefaultToolkit().getScreenSize();
JPanel j = new JPanel();
j.setBorder(new LineBorder(Color.blue));
setSize((int)(screenSize.getWidth()), 22);
setLocation(0,(int)(screenSize.getHeight())-100);
setContentPane(frameContent);
frameContent.setBackground(new java.awt.Color(58,58,58));
frameContent.setLayout(new BorderLayout());
addMouseMotionListener(this);
addMouseListener(this);
JButton quitButton = new JButton("X");
quitButton.setSize(20,20);
quitButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.exit(99);
}
});
JLabel west=null;
try{
west = new JLabel(new ImageIcon("logo.gif"));
}catch(Exception gh){gh.printStackTrace();}
frameContent.setBorder(new LineBorder(new java.awt.Color(189,189,255)));
frameContent.add(west, BorderLayout.WEST);
frameContent.add(quitButton,BorderLayout.EAST);
setVisible(true);
toBack();
}