private void addSystemMenuItems ( JPopupMenu menu ) { // PENDING: this should all be localizable! JMenuItem mi = ( JMenuItem ) menu . add ( restoreAction ) ; mi . setMnemonic ( ' ' ) ; mi = ( JMenuItem ) menu . add ( moveAction ) ; mi . setMnemonic ( ' ' ) ; mi = ( JMenuItem ) menu . add ( sizeAction ) ; mi . setMnemonic ( ' ' ) ; mi = ( JMenuItem ) menu . add ( iconifyAction ) ; mi . setMnemonic ( ' ' ) ; mi = ( JMenuItem ) menu . add ( maximizeAction ) ; mi . setMnemonic ( ' ' ) ; menu . add ( new JSeparator ( ) ) ; mi = ( JMenuItem ) menu . add ( closeAction ) ; mi . setMnemonic ( ' ' ) ; }
Add the items to the system menu .