Cappuccino90

Untitled

Jun 22nd, 2015
297
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. package MDI;
  2.  
  3. import java.awt.Dimension;
  4.  
  5. import javax.swing.DefaultDesktopManager;
  6. import javax.swing.JApplet;
  7. import javax.swing.JDesktopPane;
  8. import javax.swing.JInternalFrame;
  9.  
  10. public class hauptfenster extends JApplet{
  11.  
  12.     public hauptfenster() {
  13.         JDesktopPane desktop = new JDesktopPane();
  14.         desktop.setDesktopManager(new DefaultDesktopManager());
  15.         setContentPane(desktop);
  16.        
  17.         JInternalFrame j = new JInternalFrame();
  18.        
  19.         j.setSize(new Dimension(100,100));
  20.         desktop.add(j);
  21.         j.setVisible(true);
  22.         setVisible(true);
  23.     }
  24.    
  25.    
  26.     public static void main(String[] args) {
  27.         new hauptfenster();
  28.     }
  29. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment