desktop
I have made a JDesktopPane in a JFrame with a JInternalFrame in side. The problem is when i compile the code i can't seen to get the JInternalFrame to be selected...
The Code...
import javax.swing.*;
publicclass Desktop{
publicstaticvoid main(String[] args){
JFrame frame =new JFrame("Desktop");
JDesktopPane desktop =new JDesktopPane( );
JInternalFrame internal =new JInternalFrame("Frame ", true, true, true,true);
internal.setSize(180, 180);
internal.setVisible(true);
desktop.add(internal);
frame.setSize(300, 300);
frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
frame.setContentPane(desktop);
frame.setVisible(true);
}
}

