private void createButtons ( ) { iconButton = new NoFocusButton ( "InternalFrameTitlePane.iconifyButtonAccessibleName" ) ; iconButton . addActionListener ( iconifyAction ) ; if ( iconButtonToolTip != null && iconButtonToolTip . length ( ) != 0 ) { iconButton . setToolTipText ( iconButtonToolTip ) ; } maxButton = new NoFocusButton ( "InternalFrameTitlePane.maximizeButtonAccessibleName" ) ; maxButton . addActionListener ( maximizeAction ) ; closeButton = new NoFocusButton ( "InternalFrameTitlePane.closeButtonAccessibleName" ) ; closeButton . addActionListener ( closeAction ) ; if ( closeButtonToolTip != null && closeButtonToolTip . length ( ) != 0 ) { closeButton . setToolTipText ( closeButtonToolTip ) ; } setButtonTooltips ( ) ; }
Create the buttons and add action listeners .