Class LafMenu

  • All Implemented Interfaces:
    ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants

    public class LafMenu
    extends JMenu
    Allow user to change look and feel of Swing app on the fly. Selections can be persisted to backing store so that changes affect subsequent sessions. Manually call resetLaf() to initialize application look and feel. Extended applet available

    To test LAFs with ANT, try something like:

     <java classname="com.iamsoft.util.ui.swing.LafMenu" fork="true">
            <classpath>
                    <pathelement location="${libDir}"/>
                    <pathelement location="${log4jDir}/dist/lib/log4j-1.2.8.jar"/>
                    <pathelement location="${java.home}/demo/jfc/SwingSet2/SwingSet2.jar"/>
                    <fileset dir="${lafsDir}" includes="*.jar"/>
            </classpath>
            <arg value="swingset"/>
     </java>
     
    See Also:
    Preferences, Serialized Form