FileDocCategorySizeDatePackage
SimpleInternalFrame.javaAPI DocExample999Thu Oct 24 20:14:24 BST 2002None

SimpleInternalFrame

public class SimpleInternalFrame extends Frame

Fields Summary
JLayeredPane
desktop
JInternalFrame
internalFrame
Constructors Summary
public SimpleInternalFrame()

    super("");
    setSize(500,400);

    // Set up the layered pane
    desktop = new JDesktopPane();
    desktop.setOpaque(true);
    add(desktop, BorderLayout.CENTER);

    internalFrame = new JInternalFrame("Meow", 
			 true, true, true, true);
    internalFrame.setBounds(50, 50, 200, 100);
    //internalFrame.getContentPane().setLayout(new BorderLayout());
    internalFrame.getContentPane().add(new JLabel(new ImageIcon("images/pussin.jpg")));
    internalFrame.setVisible(true);
    
    desktop.add(internalFrame, new Integer(1));    
  
Methods Summary
public static voidmain(java.lang.String[] args)

    SimpleInternalFrame sif = new SimpleInternalFrame();
    sif.setVisible(true);