panel.add(list, "List"); panel.add(new SLabel("<html><br>textfield(stay visible):")); panel.add(new STextField("wingS is great"), "TextField"); panel.add(new SLabel("<html><br>textarea(stay visible):")); panel.add(new STextArea("wingS is a great framework for implementing complex web applications"), "TextArea");
formPanel.add(list, "List"); formPanel.add(new SLabel("<html><br>textfield(stay visible):")); formPanel.add(new STextField("wingS is great")); formPanel.add(new SLabel("<html><br>textarea(stay visible):")); formPanel.add(new STextArea("wingS is a great framework for implementing complex web applications"));
    public SComponent createExample() {        ComponentControls controls = new ComponentControls();        SForm panel = new SForm();        panel.setLayout(new SBoxLayout(SConstants.VERTICAL));        panel.setPreferredSize(SDimension.FULLWIDTH);                        selectionLabel = new SLabel("nothing selected");        menuBar = createMenuBar(HugeTreeModel.ROOT_NODE);        controls.addSizable(menuBar);        panel.add(controls);        panel.add(menuBar, "MenuBar");        panel.add(new SLabel("<html><br>Form components are overlayed or hidden (in IE). Selected Menu: "), "Intro");        panel.add(selectionLabel, "SelectionLabel");        panel.add(new SLabel("<html><hr><br>combobox :"));        panel.add(new SComboBox(new DefaultComboBoxModel(ListExample.createElements())), "ComboBox");        panel.add(new SLabel("<html><br>list:"));        SList list = new SList(ListExample.createListModel());        list.setVisibleRowCount(3);        panel.add(list, "List");        panel.add(new SLabel("<html><br>textfield(stay visible):"));        panel.add(new STextField("wingS is great"), "TextField");        panel.add(new SLabel("<html><br>textarea(stay visible):"));        panel.add(new STextArea("wingS is a great framework for implementing complex web applications"), "TextArea");        // enable / disable some menuitems        final SCheckBox switchEnable = new SCheckBox("disable some menuitems");        controls.add(switchEnable);                switchEnable.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                setMenuItemsEnabled(!switchEnable.isSelected());            }        });        return panel;    }