desktopPane.add( internalFrame );
    private void createSwingInternalFrame( JDesktopPane desktopPane, String title, int x, int y ) {        final JInternalFrame internalFrame = new JInternalFrame( title );        if ( title == null ) {            internalFrame.putClientProperty( "JInternalFrame.isPalette", Boolean.TRUE );        }        internalFrame.setLocation( x, y );        desktopPane.add( internalFrame );        internalFrame.setResizable( true );        internalFrame.getContentPane().setLayout( new FlowLayout() );        button1 = new JButton( "button in " + title );        internalFrame.getContentPane().add( button1 );        internalFrame.getContentPane().add( new JButton( "<html><i>test</i> <big>2</big></html>" ) );        internalFrame.setVisible( true );        internalFrame.pack();        final JTextField textField = new JTextField( "type in here" );        internalFrame.getContentPane().add( textField );        internalFrame.pack();    }