Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package MDI;
- import java.awt.Dimension;
- import javax.swing.DefaultDesktopManager;
- import javax.swing.JApplet;
- import javax.swing.JDesktopPane;
- import javax.swing.JInternalFrame;
- public class hauptfenster extends JApplet{
- public hauptfenster() {
- JDesktopPane desktop = new JDesktopPane();
- desktop.setDesktopManager(new DefaultDesktopManager());
- setContentPane(desktop);
- JInternalFrame j = new JInternalFrame();
- j.setSize(new Dimension(100,100));
- desktop.add(j);
- j.setVisible(true);
- setVisible(true);
- }
- public static void main(String[] args) {
- new hauptfenster();
- }
- }
Advertisement