//package desktop;
/*
* DesktopTest3.java
*/
import java.awt.*;
import javax.swing.*;
public class DesktopTest3 extends JFrame {
private JDesktopPane desktopPane;
private JInternalFrame internalFrame1;
private JInternalFrame internalFrame2;
private JInternalFrame internalFrame3;
public DesktopTest3() {
super("Desktop Test3");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(400, 300);
setLocationRelativeTo(null);
desktopPane = new JDesktopPane();
internalFrame1 = new JInternalFrame("1", true, true, true, true);
internalFrame2 = new JInternalFrame("2", true, true, true, true);
internalFrame3 = new JInternalFrame("3", true, true, true, true);
internalFrame1.setVisible(true);
internalFrame1.setBounds(50, 40, 140, 90);
desktopPane.add(internalFrame1, JLayeredPane.DEFAULT_LAYER);
internalFrame2.setVisible(true);
internalFrame2.setBounds(50, 160, 160, 70);
desktopPane.add(internalFrame2, JLayeredPane.DEFAULT_LAYER);
internalFrame3.setVisible(true);
internalFrame3.setBounds(220, 60, 160, 70);
desktopPane.add(internalFrame3, JLayeredPane.DEFAULT_LAYER);
getContentPane().add(desktopPane, BorderLayout.CENTER);
}
public static void main(String args[]) {new DesktopTest3().setVisible(true);}
}