question: public static JMenuItem addSetting ( JMenu parent , final String name , BooleanSetting setting ) { JMenuItem item = new SkinCheckBoxMenuItem ( name , setting . getValue ( ) ) ; item . putClientProperty ( SETTING , setting ) ; item . addActionListener ( SETTING_LISTENER ) ; parent . add ( item ) ; return item ; }
target:  Creates & adds a checkbox-setting with a listener.