JDesktopePane に JLable を追加したい..以下のコードを書いた..しかし、ラベルはペインに表示されません。
{
frame1.setContentPane(desktop);
frame1.setSize(900,700);
frame1.setVisible(true);
desktop.setBackground(Color.DARK_GRAY );
JLabel label1 = new JLabel("Main Page", SwingConstants.CENTER);
label1.setFont(new Font("SansSerif",Font.ITALIC + Font.BOLD,54));
desktop.add(label1);**
}