protected JMenu newLookAndFeelMenu ( final ActionListener listener ) { final JMenu menuLookAndFeel = new JMenu ( "Look and Feel" ) ; menuLookAndFeel . setMnemonic ( ' ' ) ; // Look and Feel JMenuItems // GTK JMenuItem jmiPlafGTK ; jmiPlafGTK = new JMenuItem ( "GTK" , ' ' ) ; //$NON-NLS-1$ MenuExtensions . setCtrlAccelerator ( jmiPlafGTK , ' ' ) ; jmiPlafGTK . addActionListener ( new LookAndFeelGTKAction ( "GTK" , this . applicationFrame ) ) ; menuLookAndFeel . add ( jmiPlafGTK ) ; // Metal default Metal theme JMenuItem jmiPlafMetal ; jmiPlafMetal = new JMenuItem ( "Metal" , ' ' ) ; //$NON-NLS-1$ MenuExtensions . setCtrlAccelerator ( jmiPlafMetal , ' ' ) ; jmiPlafMetal . addActionListener ( new LookAndFeelMetalAction ( "Metal" , this . applicationFrame ) ) ; menuLookAndFeel . add ( jmiPlafMetal ) ; // Metal Ocean theme JMenuItem jmiPlafOcean ; jmiPlafOcean = new JMenuItem ( "Ocean" , ' ' ) ; //$NON-NLS-1$ MenuExtensions . setCtrlAccelerator ( jmiPlafOcean , ' ' ) ; jmiPlafOcean . addActionListener ( new LookAndFeelMetalAction ( "Ocean" , this . applicationFrame ) ) ; menuLookAndFeel . add ( jmiPlafOcean ) ; // Motif JMenuItem jmiPlafMotiv ; jmiPlafMotiv = new JMenuItem ( "Motif" , ' ' ) ; //$NON-NLS-1$ MenuExtensions . setCtrlAccelerator ( jmiPlafMotiv , ' ' ) ; jmiPlafMotiv . addActionListener ( new LookAndFeelMotifAction ( "Motif" , this . applicationFrame ) ) ; menuLookAndFeel . add ( jmiPlafMotiv ) ; // Nimbus JMenuItem jmiPlafNimbus ; jmiPlafNimbus = new JMenuItem ( "Nimbus" , ' ' ) ; //$NON-NLS-1$ MenuExtensions . setCtrlAccelerator ( jmiPlafNimbus , ' ' ) ; jmiPlafNimbus . addActionListener ( new LookAndFeelNimbusAction ( "Nimbus" , this . applicationFrame ) ) ; menuLookAndFeel . add ( jmiPlafNimbus ) ; // Windows JMenuItem jmiPlafSystem ; jmiPlafSystem = new JMenuItem ( "System" , ' ' ) ; //$NON-NLS-1$ MenuExtensions . setCtrlAccelerator ( jmiPlafSystem , ' ' ) ; jmiPlafSystem . addActionListener ( new LookAndFeelSystemAction ( "System" , this . applicationFrame ) ) ; menuLookAndFeel . add ( jmiPlafSystem ) ; return menuLookAndFeel ; }
Creates the look and feel menu .