question: protected JPopupMenu createPopupMenu ( ) { JPopupMenu menu = new JPopupMenu ( ) ; JMenuItem menuItem ; menuItem = new JMenuItem ( undoAction ) ; menuItem . setAccelerator ( null ) ; menuItem . setToolTipText ( null ) ; menu . add ( menuItem ) ; menuItem = new JMenuItem ( redoAction ) ; menuItem . setAccelerator ( null ) ; menuItem . setToolTipText ( null ) ; menu . add ( menuItem ) ; menu . addSeparator ( ) ; menuItem = new JMenuItem ( cutAction ) ; menuItem . setAccelerator ( null ) ; menuItem . setToolTipText ( null ) ; menu . add ( menuItem ) ; menuItem = new JMenuItem ( copyAction ) ; menuItem . setAccelerator ( null ) ; menuItem . setToolTipText ( null ) ; menu . add ( menuItem ) ; menuItem = new JMenuItem ( pasteAction ) ; menuItem . setAccelerator ( null ) ; menuItem . setToolTipText ( null ) ; menu . add ( menuItem ) ; menuItem = new JMenuItem ( deleteAction ) ; menuItem . setAccelerator ( null ) ; menuItem . setToolTipText ( null ) ; menu . add ( menuItem ) ; menu . addSeparator ( ) ; menuItem = new JMenuItem ( selectAllAction ) ; menuItem . setAccelerator ( null ) ; menuItem . setToolTipText ( null ) ; menu . add ( menuItem ) ; return menu ; }
target:  Creates the right-click popup menu. Subclasses can override this method to replace or augment the popup menu returned.