question: InternalWindow ( String title ) { setLayout ( new BorderLayout ( ) ) ; titleBar = new TitleBar ( ) ; add ( titleBar , BorderLayout . NORTH ) ; titleBar . setLayout ( new SBoxLayout ( SBoxLayout . HORIZONTAL , TITLEBAR_PADDING ) ) ; titleLabel = new JLabel ( ) ; setTitle ( title ) ; titleLabel . setMinimumSize ( new Dimension ( 0 , 0 ) ) ; titleBar . add ( titleLabel ) ; SBoxLayout . addSpring ( titleBar ) ; minimizeButton = new JButton ( minimizeIcon ) ; minimizeButton . setMargin ( new Insets ( 0 , 0 , 0 , 0 ) ) ; minimizeButton . setBorder ( BorderFactory . createEmptyBorder ( ) ) ; minimizeButton . setFocusable ( false ) ; minimizeButton . addActionListener ( new MinimizeListener ( ) ) ; titleBar . add ( minimizeButton ) ; closeButton = new JButton ( closeIcon ) ; closeButton . setMargin ( new Insets ( 0 , 0 , 0 , 0 ) ) ; closeButton . setBorder ( BorderFactory . createEmptyBorder ( ) ) ; closeButton . setFocusable ( false ) ; closeButton . addActionListener ( new CloseActionListener ( ) ) ; titleBar . add ( closeButton ) ; cache = new ComponentPaintCache ( this ) ; }
target:  Create a new InternalWindow.