// Funktion addChild fügt ein neues MDI-Child vom Typ JInternalFrame zum MDIParent (JDesktopPane) hinzu
private void addChild(javax.swing.JDesktopPane MDIParent, String caption, int x , int y, int w, int h,
boolean selected, boolean maximizable, boolean closeable,
boolean iconifiable, boolean resizable)
{
MDIChild c = new MDIChild();
MDIParent.add(c);
c.setTitle(caption);
c.setVisible(true);
c.setLocation(x, y);
c.setSize(w, h);
c.setMaximizable(maximizable);
c.setClosable(closeable);
c.setIconifiable(iconifiable);
c.setResizable(resizable);
try
{
c.setSelected(selected);
}
catch (java.beans.PropertyVetoException e) {}
}