textArea.setPreferredSize(new SDimension(400, 200));
textArea.setPreferredSize(new SDimension("100%", "100%"));
    protected SComponent createExample() {        controls = new TabbedPaneControls();        SForm c = new SForm(new SBorderLayout());        c.add(controls, "North");        tabbedPane = new STabbedPane();        tabbedPane.setBackground(new java.awt.Color(200, 200, 255));        tabbedPane.setShowAsFormComponent(false);        controls.addSizable(tabbedPane);        SPanel west = new SPanel(new SFlowDownLayout());        west.add(new SLabel("<html>Tab Placement:&nbsp;"));        PlacementActionListener placementActionListener = new PlacementActionListener(tabbedPane);        SRadioButton top = new SRadioButton("Top");        top.putClientProperty("placement", new Integer(SConstants.TOP));        top.addActionListener(placementActionListener);        top.setShowAsFormComponent(false);        west.add(top);        SRadioButton left = new SRadioButton("Left");        left.putClientProperty("placement", new Integer(SConstants.LEFT));        left.addActionListener(placementActionListener);        left.setShowAsFormComponent(false);        west.add(left);        SRadioButton right = new SRadioButton("Right");        right.putClientProperty("placement", new Integer(SConstants.RIGHT));        right.addActionListener(placementActionListener);        right.setShowAsFormComponent(false);        west.add(right);        SRadioButton bottom = new SRadioButton("Bottom");        bottom.putClientProperty("placement", new Integer(SConstants.BOTTOM));        bottom.addActionListener(placementActionListener);        bottom.setShowAsFormComponent(false);        west.add(bottom);        SButtonGroup group = new SButtonGroup();        group.add(top);        group.add(left);        group.add(right);        group.add(bottom);        group.setSelected(top, true);        west.add(new SLabel("<html>&nbsp;"));        group = new SButtonGroup();        west.add(new SLabel("<html>Color:&nbsp;"));        final Object[] clrs = {            "Yellow", Color.yellow,            "Green", Color.green,            "Lightblue", new Color(200, 200, 255),            "Lightgray", Color.lightGray,            "Orange", new Color(255, 153, 0)};        for (int i = 0; i < clrs.length; i += 2) {            SRadioButton btn = new SRadioButton(clrs[i].toString());            btn.putClientProperty("color", clrs[i+1]);            btn.addActionListener(new ColorActionListener(tabbedPane));            btn.setShowAsFormComponent(false);            group.add(btn);            if (i == 0) {                group.setSelected(btn, true);            }            west.add(btn);        }        west.setHorizontalAlignment(SConstants.CENTER);        c.add(west, "West");        textArea = new STextArea();        textArea.setPreferredSize(new SDimension(400, 200));        for (int i = 0; i < 12; ++i) {            SPanel p = new SPanel(new SBorderLayout());            p.add(new SLabel("Tab # " + i), "North");            p.add(textArea);            tabbedPane.add("Tab " + i, p);        }        tabbedPane.setIconAt(3, JAVA_CUP_ICON);        tabbedPane.setIconAt(8, SMALL_COW_ICON);        tabbedPane.setEnabledAt(1, false);        tabbedPane.addChangeListener(new ChangeListener() {            public void stateChanged(ChangeEvent ce) {                String t = textArea.getText();                t += "\n";                t += "wingS: Changed to tab " + tabbedPane.getSelectedIndex() + "\n";                textArea.setText(t);            }        });        c.add(tabbedPane, "Center");        return c;    }