/*
 * @(#)swingset.js	May 22, 2005
 *
 * *****[ JFCML 0.9.3 MANUAL/WEBSITE (/demo/swingset.js) ]*****
 *
 *	Copyright 2004-2005 Shawn Curry,  http://meta-solutions.com
 *	Licensed under the Academic Free License version 2.1
 *	
 *	For license details see http://meta-solutions.com/jfcml/license
 */

/***********************
 *   SWINGSET 3 DEMO   *
 ***********************/

function SwingSet3() {
	return new String(
"\n<JFCML>" +
"\n <script default=\"beanshell\"/>" +
"\n <script>" +
"\n  import bsh;" +
"\n  import javax.swing.JToggleButton;" +
"\n  import javax.swing.ImageIcon;" +
"\n  import javax.swing.JSeparator;" +
"\n  import javax.swing.JComboBox;" +
"\n  import javax.swing.SwingUtilities;" +
"\n  import javax.swing.UIManager;" +
"\n  import java.awt.Component;" +
"\n  import java.awt.Container;" +
"\n  import java.awt.Rectangle;" +
"\n  import javax.swing.Icon;" +
"\n  import java.awt.event.ContainerListener;" +
"\n  import java.awt.event.ContainerEvent;" +
"\n </script>" +
"\n <Import package=\"javax.swing\"/>" +
"\n <Import package=\"java.awt\"/>" +
"\n <Import package=\"java.awt.event\"/>" +
"\n <Import class=\"javax.swing.JFrame\"/>" +
"\n <Import class=\"javax.swing.JComboBox\"/>" +
"\n <Import class=\"javax.swing.JMenu\"/>" +
"\n <Import class=\"javax.swing.JMenuBar\"/>" +
"\n <Import class=\"javax.swing.JMenuItem\"/>" +
"\n <Import class=\"javax.swing.JCheckBoxMenuItem\"/>" +
"\n <Import class=\"javax.swing.JRadioButtonMenuItem\"/>" +
"\n <Import class=\"javax.swing.JPanel\"/>" +
"\n <Import class=\"javax.swing.JToggleButton\"/>" +
"\n <Import class=\"javax.swing.JToolBar\"/>" +
"\n <Import class=\"javax.swing.JLabel\"/>" +
"\n <Import class=\"javax.swing.JSeparator\"/>" +
"\n <Import class=\"javax.swing.JTabbedPane\"/>" +
"\n <Import class=\"javax.swing.JScrollPane\"/>" +
"\n <Import class=\"javax.swing.JEditorPane\"/>" +
"\n <Import class=\"javax.swing.Icon\"/>" +
"\n <Import class=\"javax.swing.ImageIcon\"/>" +
"\n <Import class=\"javax.swing.Box\"/>" +
"\n <Import class=\"javax.swing.BoxLayout\"/>" +
"\n <Import class=\"javax.swing.ImageIcon\"/>" +
"\n <Import class=\"javax.swing.ButtonGroup\"/>" +
"\n <Import class=\"javax.swing.Action\"/>" +
"\n <Import class=\"java.awt.event.ActionListener\"/>" +
"\n <Import class=\"java.awt.event.ContainerListener\"/>" +
"\n <Import class=\"java.awt.event.MouseListener\"/>" +
"\n <Import class=\"java.awt.BorderLayout\"/>" +
"\n <Import class=\"java.awt.Container\"/>" +
"\n <Import class=\"java.awt.Component\"/>" +
"\n <Import class=\"java.awt.Color\"/>" +
"\n <Import class=\"java.awt.Dimension\"/>" +
"\n <Import class=\"java.awt.Insets\"/>" +
"\n <Import class=\"javax.swing.border.BevelBorder\"/>" +
"\n <Import class=\"java.net.URL\"/>" +
"\n <Import class=\"java.util.HashMap\"/>" +
"\n <Import class=\"com.metasolutions.jfcml.script.Face\"/>" +
"\n <JFrame setPreferredSize=\"new Dimension(720,640)\"" +
"\n  Size=\"new Dimension(720,640)\" Title=\"'SwingSet3: Powered by JFCML!'\"" +
"\n  setDefaultCloseOperation=\"JFrame.EXIT_ON_CLOSE\"/>" +
"\n <Header>" +
"\n " +
"\n  <Face symbol=\"'face_icon'\"/>" +
"\n " +
"\n  <Dimension symbol=\"'HGAP2'\" new=\"new Dimension(2,1)\"/>" +
"\n  <Dimension symbol=\"'VGAP2'\" new=\"new Dimension(1,2)\"/>" +
"\n " +
"\n  <Dimension symbol=\"'HGAP5'\" new=\"new Dimension(5,1)\"/>" +
"\n  <Dimension symbol=\"'VGAP5'\" new=\"new Dimension(1,5)\"/>" +
"\n  " +
"\n  <Dimension symbol=\"'HGAP10'\" new=\"new Dimension(10,1)\"/>" +
"\n  <Dimension symbol=\"'VGAP10'\" new=\"new Dimension(1,10)\"/>" +
"\n " +
"\n  <Dimension symbol=\"'HGAP15'\" new=\"new Dimension(15,1)\"/>" +
"\n  <Dimension symbol=\"'VGAP15'\" new=\"new Dimension(1,15)\"/>" +
"\n  " +
"\n  <Dimension symbol=\"'HGAP20'\" new=\"new Dimension(20,1)\"/>" +
"\n  <Dimension symbol=\"'VGAP20'\" new=\"new Dimension(1,20)\"/>" +
"\n " +
"\n  <Dimension symbol=\"'HGAP25'\" new=\"new Dimension(25,1)\"/>" +
"\n  <Dimension symbol=\"'VGAP25'\" new=\"new Dimension(1,25)\"/>" +
"\n " +
"\n  <Dimension symbol=\"'HGAP30'\" new=\"new Dimension(30,1)\"/>" +
"\n  <Dimension symbol=\"'VGAP30'\" new=\"new Dimension(1,30)\"/>" +
"\n" +
"\n  <MouseListener symbol=\"'mylistener'\" mouseClicked=\"[" +
"\n     print(&quot;Hello from BeanShell!&quot;);" +
"\n  ]\"/>" +
"\n" +
"\n  <ContainerListener symbol=\"'toolbar_panel_listener'\" listener=\"[" +
"\n   return new ContainerListener() {" +
"\n    public boolean contains(int x, int y) {" +
"\n     Component c = getParent();" +
"\n     if (c != null) {" +
"\n     Rectangle r = c.getBounds();" +
"\n     return (x &gt;= 0) &amp;&amp; (x &lt; r.width)" +
"\n     &amp;&amp; (y &gt;= 0) &amp;&amp; (y &lt; r.height);" +
"\n     }" +
"\n     else {" +
"\n     return super.contains(x,y);" +
"\n     }" +
"\n    }" +
"\n   " +
"\n    public void componentAdded(ContainerEvent e) {" +
"\n     Container c = e.getContainer().getParent();" +
"\n     if (c != null) {" +
"\n     c.getParent().validate();" +
"\n     c.getParent().repaint();  " +
"\n     }" +
"\n    }" +
"\n   " +
"\n    public void componentRemoved(ContainerEvent e) {" +
"\n     Container c = e.getContainer().getParent();" +
"\n     if (c != null) {" +
"\n     c.getParent().validate();" +
"\n     c.getParent().repaint();" +
"\n     }" +
"\n    }" +
"\n   };" +
"\n  ]\"/>" +
"\n  <ActionListener symbol=\"'laf_action'\" actionPerformed=\"[" +
"\n   Object source = event.getSource();" +
"\n   if( source instanceof JToggleButton )" +
"\n    ((JToggleButton)source).setSelected(true);" +
"\n   UIManager.setLookAndFeel(event.getActionCommand());" +
"\n   SwingUtilities.updateComponentTreeUI(target);" +
"\n  ]\"/>" +
"\n  " +
"\n  <ActionListener symbol=\"'laf_action2'\" actionPerformed=\"[" +
"\n   Object source = event.getSource();" +
"\n   if( source instanceof JToggleButton )" +
"\n    ((JToggleButton)source).setSelected(true);" +
"\n   UIManager.setLookAndFeel(event.getActionCommand());" +
"\n   SwingUtilities.updateComponentTreeUI(target);" +
"\n  ]\"/>" +
"\n  " +
"\n  <Action symbol=\"'metal_laf_action'\" setActionListener=\"laf_action\">" +
"\n   <this putValue=\"Action.NAME, 'Java Look &amp; Feel'\"/>" +
"\n   <this putValue=\"Action.ACTION_COMMAND_KEY," +
"\n    'javax.swing.plaf.metal.MetalLookAndFeel'\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'motif_laf_action'\" setActionListener=\"laf_action\">" +
"\n   <this putValue=\"Action.NAME, 'Motif Look &amp; Feel'\"/>" +
"\n   <this putValue=\"Action.ACTION_COMMAND_KEY," +
"\n    'com.sun.java.swing.plaf.motif.MotifLookAndFeel'\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'windows_laf_action'\" setActionListener=\"laf_action2\">" +
"\n   <this putValue=\"Action.NAME, 'Windows Look &amp; Feel'\"/>" +
"\n   <this putValue=\"Action.ACTION_COMMAND_KEY," +
"\n    'com.sun.java.swing.plaf.windows.WindowsLookAndFeel'\"/>" +
"\n  </Action>" +
"\n  " +
"\n  " +
"\n  <ActionListener symbol=\"'theme_action'\" actionPerformed=\"[" +
"\n   Object source = event.getSource();" +
"\n   if( source instanceof JToggleButton )" +
"\n    ((JToggleButton)source).setSelected(true);" +
"\n   if( event.getActionCommand().compareTo(&quot;true&quot;) == 0 )" +
"\n    UIManager.put(&quot;swing.boldMetal&quot;, Boolean.TRUE);" +
"\n   else" +
"\n    UIManager.put(&quot;swing.boldMetal&quot;, Boolean.FALSE);" +
"\n   SwingUtilities.updateComponentTreeUI(target);" +
"\n  ]\"/>" +
"\n  " +
"\n  <Action symbol=\"'bold_theme_action'\" setActionListener=\"theme_action\">" +
"\n   <this putValue=\"Action.NAME, 'Bold'\"/>" +
"\n   <this putValue=\"Action.ACTION_COMMAND_KEY, 'true'\"/>" +
"\n  </Action>" +
"\n  " +
"\n  <Action symbol=\"'plain_theme_action'\" setActionListener=\"theme_action\">" +
"\n   <this putValue=\"Action.NAME, 'Plain'\"/>" +
"\n   <this putValue=\"Action.ACTION_COMMAND_KEY, 'false'\"/>" +
"\n  </Action>" +
"\n  " +
"\n  " +
"\n  <JToggleButton symbol=\"'last'\"/>" +
"\n  " +
"\n  <ActionListener symbol=\"'toolbar_action'\" actionPerformed=\"[" +
"\n   last.setSelected(false);" +
"\n   last = (JToggleButton)event.getSource();" +
"\n   print(&quot;Hello from BeanShell!&quot;);" +
"\n  ]\"/>" +
"\n  " +
"\n  <Action symbol=\"'desktop_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JInternalFrame Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JDesktop.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'button_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JButton Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JButton.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'color_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JColorChooser Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JColorChooser.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'combo_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JComboBox Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JComboBox.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'file_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JFileChooser Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JFileChooser.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'html_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JEditorPane HTML Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JEditorPane.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'list_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JList Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JList.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'option_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JOptionPane Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JOptionPane.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'progress_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JProgrssBar Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JProgressBar.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'scroll_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JProgrssBar Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JScrollPane.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'slider_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JProgrssBar Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JSlider.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'split_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JProgrssBar Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JSplitPane.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'tab_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JProgrssBar Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JTabbedPane.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'table_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JProgrssBar Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JTable.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'tooltip_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JProgrssBar Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/ToolTip.gif'))\"/>" +
"\n  </Action>" +
"\n  <Action symbol=\"'tree_demo_action'\" ActionListener=\"toolbar_action\">" +
"\n   <this putValue=\"Action.NAME, 'JProgrssBar Demo'\"/>" +
"\n   <this putValue=\"Action.SMALL_ICON, new ImageIcon(getClass().getResource('/images/toolbar/JTree.gif'))\"/>" +
"\n  </Action>" +
"\n  " +
"\n  <HashMap symbol=\"'parts'\">" +
"\n   <this put=\"'Brenthair', new ImageIcon(getClass().getResource('/images/combobox/brenthair.jpg'))\"/>" +
"\n   <this put=\"'Georgeshair', new ImageIcon(getClass().getResource('/images/combobox/georgeshair.jpg'))\"/>" +
"\n   <this put=\"'Hanshair', new ImageIcon(getClass().getResource('/images/combobox/hanshair.jpg'))\"/>" +
"\n   <this put=\"'Howardhair', new ImageIcon(getClass().getResource('/images/combobox/howardhair.jpg'))\"/>" +
"\n   <this put=\"'Jameshair', new ImageIcon(getClass().getResource('/images/combobox/jameshair.jpg'))\"/>" +
"\n   <this put=\"'Jeffhair', new ImageIcon(getClass().getResource('/images/combobox/jeffhair.jpg'))\"/>" +
"\n   <this put=\"'Jonhair', new ImageIcon(getClass().getResource('/images/combobox/jonhair.jpg'))\"/>" +
"\n   <this put=\"'Larahair', new ImageIcon(getClass().getResource('/images/combobox/larahair.jpg'))\"/>" +
"\n   <this put=\"'Larryhair', new ImageIcon(getClass().getResource('/images/combobox/larryhair.jpg'))\"/>" +
"\n   <this put=\"'Lisahair', new ImageIcon(getClass().getResource('/images/combobox/lisahair.jpg'))\"/>" +
"\n   <this put=\"'Michaelhair', new ImageIcon(getClass().getResource('/images/combobox/michaelhair.jpg'))\"/>" +
"\n   <this put=\"'Philiphair', new ImageIcon(getClass().getResource('/images/combobox/philiphair.jpg'))\"/>" +
"\n   <this put=\"'Scotthair', new ImageIcon(getClass().getResource('/images/combobox/scotthair.jpg'))\"/>" +
"\n   " +
"\n   <this put=\"'Brenteyes', new ImageIcon(getClass().getResource('/images/combobox/brenteyes.jpg'))\"/>" +
"\n   <this put=\"'Georgeseyes', new ImageIcon(getClass().getResource('/images/combobox/georgeseyes.jpg'))\"/>" +
"\n   <this put=\"'Hanseyes', new ImageIcon(getClass().getResource('/images/combobox/hanseyes.jpg'))\"/>" +
"\n   <this put=\"'Howardeyes', new ImageIcon(getClass().getResource('/images/combobox/howardeyes.jpg'))\"/>" +
"\n   <this put=\"'Jameseyes', new ImageIcon(getClass().getResource('/images/combobox/jameseyes.jpg'))\"/>" +
"\n   <this put=\"'Jeffeyes', new ImageIcon(getClass().getResource('/images/combobox/jeffeyes.jpg'))\"/>" +
"\n   <this put=\"'Joneyes', new ImageIcon(getClass().getResource('/images/combobox/joneyes.jpg'))\"/>" +
"\n   <this put=\"'Laraeyes', new ImageIcon(getClass().getResource('/images/combobox/laraeyes.jpg'))\"/>" +
"\n   <this put=\"'Larryeyes', new ImageIcon(getClass().getResource('/images/combobox/larryeyes.jpg'))\"/>" +
"\n   <this put=\"'Lisaeyes', new ImageIcon(getClass().getResource('/images/combobox/lisaeyes.jpg'))\"/>" +
"\n   <this put=\"'Michaeleyes', new ImageIcon(getClass().getResource('/images/combobox/michaeleyes.jpg'))\"/>" +
"\n   <this put=\"'Philipeyes', new ImageIcon(getClass().getResource('/images/combobox/philipeyes.jpg'))\"/>" +
"\n   <this put=\"'Scotteyes', new ImageIcon(getClass().getResource('/images/combobox/scotteyes.jpg'))\"/>" +
"\n   " +
"\n   <this put=\"'Brentmouth', new ImageIcon(getClass().getResource('/images/combobox/brentmouth.jpg'))\"/>" +
"\n   <this put=\"'Georgesmouth', new ImageIcon(getClass().getResource('/images/combobox/georgesmouth.jpg'))\"/>" +
"\n   <this put=\"'Hansmouth', new ImageIcon(getClass().getResource('/images/combobox/hansmouth.jpg'))\"/>" +
"\n   <this put=\"'Howardmouth', new ImageIcon(getClass().getResource('/images/combobox/howardmouth.jpg'))\"/>" +
"\n   <this put=\"'Jamesmouth', new ImageIcon(getClass().getResource('/images/combobox/jamesmouth.jpg'))\"/>" +
"\n   <this put=\"'Jeffmouth', new ImageIcon(getClass().getResource('/images/combobox/jeffmouth.jpg'))\"/>" +
"\n   <this put=\"'Jonmouth', new ImageIcon(getClass().getResource('/images/combobox/jonmouth.jpg'))\"/>" +
"\n   <this put=\"'Laramouth', new ImageIcon(getClass().getResource('/images/combobox/laramouth.jpg'))\"/>" +
"\n   <this put=\"'Larrymouth', new ImageIcon(getClass().getResource('/images/combobox/larrymouth.jpg'))\"/>" +
"\n   <this put=\"'Lisamouth', new ImageIcon(getClass().getResource('/images/combobox/lisamouth.jpg'))\"/>" +
"\n   <this put=\"'Michaelmouth', new ImageIcon(getClass().getResource('/images/combobox/michaelmouth.jpg'))\"/>" +
"\n   <this put=\"'Philipmouth', new ImageIcon(getClass().getResource('/images/combobox/philipmouth.jpg'))\"/>" +
"\n   <this put=\"'Scottmouth', new ImageIcon(getClass().getResource('/images/combobox/scottmouth.jpg'))\"/>" +
"\n  </HashMap>" +
"\n  " +
"\n  " +
"\n  <Face new=\"face_icon\"" +
"\n   setHair=\"(ImageIcon)parts.get('brenthair')\"" +
"\n   setEyes=\"(ImageIcon)parts.get('joneyes')\"" +
"\n   setMouth=\"(ImageIcon)parts.get('scottmouth')\"/>" +
"\n  " +
"\n  <JLabel symbol=\"'face_label'\" new=\"new JLabel((Icon)face_icon)\"" +
"\n   setSize=\"face_icon.getIconWidth(), face_icon.getIconHeight()\"/>" +
"\n  " +
"\n  <ActionListener symbol=\"'hair_action'\" actionPerformed=\"[" +
"\n   JComboBox combo = (JComboBox) event.getSource();" +
"\n   face_icon.setHair( (ImageIcon) parts.get(" +
"\n    ((String)combo.getSelectedItem()) + &quot;hair&quot;)" +
"\n   );" +
"\n   face_label.repaint();" +
"\n  ]\"/>" +
"\n  " +
"\n  <ActionListener symbol=\"'eyes_action'\" actionPerformed=\"[" +
"\n   JComboBox combo = (JComboBox) event.getSource();" +
"\n   face_icon.setEyes( (ImageIcon) parts.get(" +
"\n    ((String)combo.getSelectedItem()) + &quot;eyes&quot;)" +
"\n   );" +
"\n   face_label.repaint();" +
"\n  ]\"/>" +
"\n  " +
"\n  <ActionListener symbol=\"'mouth_action'\" actionPerformed=\"[" +
"\n   JComboBox combo = (JComboBox) event.getSource();" +
"\n   face_icon.setMouth( (ImageIcon) parts.get(" +
"\n    ((String)combo.getSelectedItem()) + &quot;mouth&quot;)" +
"\n   );" +
"\n   face_label.repaint();" +
"\n  ]\"/>" +
"\n  " +
"\n  <JComboBox symbol=\"'preset_combo'\"" +
"\n   setAlignmentX=\"JComboBox.LEFT_ALIGNMENT\">" +
"\n   <this addItem=\"'Philip, Howard, Jeff'\"/>" +
"\n   <this addItem=\"'Jeff, Larry, Philip'\"/>" +
"\n   <this addItem=\"'Howard, Scott, Hans'\"/>" +
"\n   <this addItem=\"'Philip, Jeff, Hans'\"/>" +
"\n   <this addItem=\"'Brent, Jon, Scott'\"/>" +
"\n   <this addItem=\"'Lara, Larry, Lisa'\"/>" +
"\n   <this addItem=\"'James, Philip, Michael'\"/>" +
"\n   <this addItem=\"'Philip, Lisa, Brent'\"/>" +
"\n   <this addItem=\"'James, Philip, Jon'\"/>" +
"\n   <this addItem=\"'Lara, Jon, Scott'\"/>" +
"\n  </JComboBox>" +
"\n  <JComboBox symbol=\"'hair_combo'\"" +
"\n   setAlignmentX=\"JComboBox.LEFT_ALIGNMENT\"" +
"\n   addActionListener=\"hair_action\">" +
"\n   <this addItem=\"'Brent'\"/>" +
"\n   <this addItem=\"'Georges'\"/>" +
"\n   <this addItem=\"'Hans'\"/>" +
"\n   <this addItem=\"'Howard'\"/>" +
"\n   <this addItem=\"'James'\"/>" +
"\n   <this addItem=\"'Jeff'\"/>" +
"\n   <this addItem=\"'Jon'\"/>" +
"\n   <this addItem=\"'Lara'\"/>" +
"\n   <this addItem=\"'Larry'\"/>" +
"\n   <this addItem=\"'Lisa'\"/>" +
"\n   <this addItem=\"'Michael'\"/>" +
"\n   <this addItem=\"'Philip'\"/>" +
"\n   <this addItem=\"'Scott'\"/>" +
"\n  </JComboBox>" +
"\n  <JComboBox symbol=\"'eyes_combo'\"" +
"\n   setAlignmentX=\"JComboBox.LEFT_ALIGNMENT\"" +
"\n   addActionListener=\"eyes_action\">" +
"\n   <this addItem=\"'Brent'\"/>" +
"\n   <this addItem=\"'Georges'\"/>" +
"\n   <this addItem=\"'Hans'\"/>" +
"\n   <this addItem=\"'Howard'\"/>" +
"\n   <this addItem=\"'James'\"/>" +
"\n   <this addItem=\"'Jeff'\"/>" +
"\n   <this addItem=\"'Jon'\"/>" +
"\n   <this addItem=\"'Lara'\"/>" +
"\n   <this addItem=\"'Larry'\"/>" +
"\n   <this addItem=\"'Lisa'\"/>" +
"\n   <this addItem=\"'Michael'\"/>" +
"\n   <this addItem=\"'Philip'\"/>" +
"\n   <this addItem=\"'Scott'\"/>" +
"\n  </JComboBox>" +
"\n  <JComboBox symbol=\"'mouth_combo'\"" +
"\n   setAlignmentX=\"JComboBox.LEFT_ALIGNMENT\"" +
"\n   addActionListener=\"mouth_action\">" +
"\n   <this addItem=\"'Brent'\"/>" +
"\n   <this addItem=\"'Georges'\"/>" +
"\n   <this addItem=\"'Hans'\"/>" +
"\n   <this addItem=\"'Howard'\"/>" +
"\n   <this addItem=\"'James'\"/>" +
"\n   <this addItem=\"'Jeff'\"/>" +
"\n   <this addItem=\"'Jon'\"/>" +
"\n   <this addItem=\"'Lara'\"/>" +
"\n   <this addItem=\"'Larry'\"/>" +
"\n   <this addItem=\"'Lisa'\"/>" +
"\n   <this addItem=\"'Michael'\"/>" +
"\n   <this addItem=\"'Philip'\"/>" +
"\n   <this addItem=\"'Scott'\"/>" +
"\n  </JComboBox>" +
"\n  " +
"\n  <ActionListener symbol=\"'preset_action'\" actionPerformed=\"[" +
"\n   String hair;" +
"\n   String eyes;" +
"\n   String mouth;" +
"\n   int index = preset_combo.getSelectedIndex();" +
"\n   if( index == 0 )" +
"\n   {" +
"\n      hair = &quot;Philip&quot;;" +
"\n      eyes = &quot;Howard&quot;;" +
"\n      mouth = &quot;Jeff&quot;;" +
"\n   }" +
"\n   else if( index == 1 )" +
"\n   {" +
"\n      hair = &quot;Jeff&quot;;" +
"\n      eyes = &quot;Larry&quot;;" +
"\n      mouth = &quot;Philip&quot;;" +
"\n   }" +
"\n   else if( index == 2 )" +
"\n   {" +
"\n      hair = &quot;Howard&quot;;" +
"\n      eyes = &quot;Scott&quot;;" +
"\n      mouth = &quot;Hans&quot;;" +
"\n   }" +
"\n   else if( index == 3 )" +
"\n   {" +
"\n      hair = &quot;Philip&quot;;" +
"\n      eyes = &quot;Jeff&quot;;" +
"\n      mouth = &quot;Hans&quot;;" +
"\n   }" +
"\n   else if( index == 4 )" +
"\n   {" +
"\n      hair = &quot;Brent&quot;;" +
"\n      eyes = &quot;Jon&quot;;" +
"\n      mouth = &quot;Scott&quot;;" +
"\n   }" +
"\n   else if( index == 5 )" +
"\n   {" +
"\n      hair = &quot;Lara&quot;;" +
"\n      eyes = &quot;Larry&quot;;" +
"\n      mouth = &quot;Lisa&quot;;" +
"\n   }" +
"\n   else if( index == 6 )" +
"\n   {" +
"\n      hair = &quot;James&quot;;" +
"\n      eyes = &quot;Philip&quot;;" +
"\n      mouth = &quot;Michael&quot;;" +
"\n   }" +
"\n   else if( index == 7 )" +
"\n   {" +
"\n      hair = &quot;Philip&quot;;" +
"\n      eyes = &quot;Lisa&quot;;" +
"\n      mouth = &quot;Brent&quot;;" +
"\n   }" +
"\n   else if( index == 8 )" +
"\n   {" +
"\n      hair = &quot;James&quot;;" +
"\n      eyes = &quot;Philip&quot;;" +
"\n      mouth = &quot;Jon&quot;;" +
"\n   }" +
"\n   else if( index == 9 )" +
"\n   {" +
"\n      hair = &quot;Lara&quot;;" +
"\n      eyes = &quot;Jon&quot;;" +
"\n      mouth = &quot;Scott&quot;;" +
"\n   }" +
"\n   if(hair != null) {" +
"\n   hair_combo.setSelectedItem(hair);" +
"\n   eyes_combo.setSelectedItem(eyes);" +
"\n   mouth_combo.setSelectedItem(mouth);" +
"\n   face_label.repaint();" +
"\n   }" +
"\n  ]\"/>" +
"\n  " +
"\n  <JPanel symbol=\"'combo_demo_panel'\"" +
"\n   setLayout=\"new BoxLayout(this, BoxLayout.Y_AXIS)\">" +
"\n   <this add=\"Box.createRigidArea(VGAP20)\"/>" +
"\n   <JPanel setLayout=\"new BoxLayout(this, BoxLayout.X_AXIS)\">" +
"\n    <this add=\"Box.createRigidArea(HGAP20)\"/>" +
"\n    <JPanel symbol=\"'combo_panel'\"" +
"\n     setLayout=\"new BoxLayout(this, BoxLayout.Y_AXIS)\">" +
"\n     <this add=\"Box.createRigidArea(VGAP15)\"/>" +
"\n     <JLabel setText=\"'Presets'\"" +
"\n      setLabelFor=\"preset_combo\"" +
"\n      setAlignmentX=\"JLabel.LEFT_ALIGNMENT\"/>" +
"\n     <JComboBox new=\"preset_combo\"" +
"\n      addActionListener=\"preset_action\"/>" +
"\n     <this add=\"Box.createRigidArea(VGAP30)\"/>" +
"\n     <JLabel setText=\"'Hair'\"" +
"\n      setLabelFor=\"hair_combo\"" +
"\n      setAlignmentX=\"JLabel.LEFT_ALIGNMENT\"/>" +
"\n     <JComboBox new=\"hair_combo\"" +
"\n      setSelectedItem=\"'Philip'\"/>" +
"\n     <this add=\"Box.createRigidArea(VGAP15)\"/>" +
"\n     <JLabel setText=\"'Eyes'\"" +
"\n      setLabelFor=\"eyes_combo\"" +
"\n      setAlignmentX=\"JLabel.LEFT_ALIGNMENT\"/>" +
"\n     <JComboBox new=\"eyes_combo\"" +
"\n      setSelectedItem=\"'Howard'\"/>" +
"\n     <this add=\"Box.createRigidArea(VGAP15)\"/>" +
"\n     <JLabel setText=\"'Mouth'\"" +
"\n      setLabelFor=\"mouth_combo\"" +
"\n      setAlignmentX=\"JLabel.LEFT_ALIGNMENT\"/>" +
"\n     <JComboBox new=\"mouth_combo\"" +
"\n      setSelectedItem=\"'Jeff'\"/>" +
"\n     <this add=\"Box.createRigidArea(VGAP15)\"/>" +
"\n     <JPanel setLayout=\"new BorderLayout()\"/>" +
"\n    </JPanel>" +
"\n    <this add=\"Box.createRigidArea(HGAP30)\"/>" +
"\n    <JPanel symbol=\"'face_panel'\"" +
"\n     setLayout=\"new BorderLayout()\"" +
"\n     setBorder=\"new BevelBorder(BevelBorder.LOWERED)\">" +
"\n     <JLabel new=\"face_label\"" +
"\n      LayoutArg=\"BorderLayout.CENTER\" setVisible=\"true\"/>" +
"\n    </JPanel>" +
"\n    <this add=\"Box.createRigidArea(HGAP20)\"/>" +
"\n   </JPanel>" +
"\n   <this add=\"Box.createRigidArea(VGAP20)\"/>" +
"\n  </JPanel>" +
"\n  " +
"\n  " +
"\n  <JEditorPane symbol=\"'source_code_editor'\"" +
"\n   setEditable=\"false\" setContentType=\"'text/plain'\"" +
"\n   setPage=\"getClass().getResource('/jfcml/swingset.jfcml')\">" +
"\n  </JEditorPane>" +
"\n  " +
"\n  <JScrollPane symbol=\"'source_code_panel'\"" +
"\n   setViewportView=\"(Component)source_code_editor\"" +
"\n   setVerticalScrollBarPolicy=\"JScrollPane.VERTICAL_SCROLLBAR_ALWAYS\"" +
"\n   setHorizontalScrollBarPolicy=\"JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS\"" +
"\n  />" +
"\n </Header>" +
"\n <JRootPane>" +
"\n  <JMenuBar>" +
"\n   <JMenu Text=\"'File'\" Mnemonic=\"'F'\">" +
"\n    <JMenuItem Text=\"'About'\"/>" +
"\n    <JSeparator/>" +
"\n    <JMenuItem Text=\"'Open'\" Enabled=\"false\"/>" +
"\n    <JMenuItem Text=\"'Save'\" Enabled=\"false\"/>" +
"\n    <JMenuItem Text=\"'Save As...'\" Enabled=\"false\"/>" +
"\n    <JSeparator/>" +
"\n    <JMenuItem Text=\"'Exit'\"/>" +
"\n   </JMenu>" +
"\n   <JMenu Text=\"'Look &amp; Feel'\" Mnemonic=\"'L'\">" +
"\n    <ButtonGroup>" +
"\n     <JRadioButtonMenuItem" +
"\n      new=\"new JRadioButtonMenuItem(metal_laf_action)\"" +
"\n      Selected=\"true\"/>" +
"\n     <JRadioButtonMenuItem" +
"\n      new=\"new JRadioButtonMenuItem(motif_laf_action)\"/>" +
"\n     <JRadioButtonMenuItem" +
"\n      new=\"new JRadioButtonMenuItem(windows_laf_action)\"/>" +
"\n    </ButtonGroup>" +
"\n   </JMenu>" +
"\n   <JMenu Text=\"'Themes'\" Mnemonic=\"'T'\">" +
"\n    <JMenu Text=\"'Audio'\">" +
"\n     <ButtonGroup>" +
"\n      <JRadioButtonMenuItem Text=\"'On'\"/>" +
"\n      <JRadioButtonMenuItem Text=\"'Default'\"  Selected=\"true\"/>" +
"\n      <JRadioButtonMenuItem Text=\"'Off'\"/>" +
"\n     </ButtonGroup>" +
"\n    </JMenu>" +
"\n    <JMenu Text=\"'Fonts'\">" +
"\n     <ButtonGroup>" +
"\n      <JRadioButtonMenuItem" +
"\n       new=\"new JRadioButtonMenuItem(plain_theme_action)\"" +
"\n       Text=\"'Plain'\"  Selected=\"true\"/>" +
"\n      <JRadioButtonMenuItem" +
"\n       new=\"new JRadioButtonMenuItem(bold_theme_action)\"" +
"\n       Text=\"'Bold'\"/>" +
"\n     </ButtonGroup>" +
"\n    </JMenu>" +
"\n    <ButtonGroup>" +
"\n     <JRadioButtonMenuItem Text=\"'Ocean'\"  Selected=\"true\"/>" +
"\n     <JRadioButtonMenuItem Text=\"'Steel'\"/>" +
"\n     <JRadioButtonMenuItem Text=\"'Aqua'\"/>" +
"\n     <JRadioButtonMenuItem Text=\"'Charcoal'\"/>" +
"\n     <JRadioButtonMenuItem Text=\"'High Contrast'\"/>" +
"\n     <JRadioButtonMenuItem Text=\"'Emerald'\"/>" +
"\n     <JRadioButtonMenuItem Text=\"'Ruby'\"/>" +
"\n    </ButtonGroup>" +
"\n   </JMenu>" +
"\n   <JMenu Text=\"'Options'\" Mnemonic=\"'O'\">" +
"\n    <JCheckBoxMenuItem Text=\"'Enable Tool Tips'\" State=\"true\"/>" + 
"\n    <JCheckBoxMenuItem Text=\"'Enable Drag Support'\"/>" + 
"\n   </JMenu>" +
"\n  </JMenuBar>" +
"\n  <ContentPane>" +
"\n   <JPanel Layout=\"new BorderLayout()\">" +
"\n    <JPanel Layout=\"new BorderLayout()\" LayoutArg=\"BorderLayout.NORTH\">" +
"\n     <JPanel Layout=\"new BorderLayout()\" LayoutArg=\"BorderLayout.SOUTH\"" +
"\n       addContainerListener=\"toolbar_panel_listener\">" +
"\n      <JToolBar LayoutArg=\"BorderLayout.CENTER\">" +
"\n       <JToggleButton new=\"new JToggleButton(desktop_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(button_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(color_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(combo_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(file_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(html_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(list_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(option_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(progress_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(scroll_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(slider_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(split_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(tab_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(table_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(tooltip_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n       <JToggleButton new=\"new JToggleButton(tree_demo_action)\"" +
"\n        setText=\"null\" setMargin=\"new Insets(1,1,1,1)\"/>" +
"\n      </JToolBar>" +
"\n     </JPanel>" +
"\n    </JPanel>" +
"\n    <JTabbedPane>" +
"\n     <this addTab=\"'ComboBox Demo', combo_demo_panel\"/>" +
"\n     <this addTab=\"'Source Code', source_code_panel\"/>" +
"\n    </JTabbedPane>" +
"\n   </JPanel>" +
"\n  </ContentPane>" +
"\n </JRootPane>" +
"\n</JFCML>"
	);
}
