textArea.setPreferredSize(new SDimension("100%", "100%"));
textArea.setPreferredSize(new SDimension("100%", null));
    public Editor() {        menuBar = createMenu();        getContentPane().add(menuBar);        toolbar = createToolbar();        textArea = new STextArea();        textArea.setColumns(80);        textArea.setRows(24);        textArea.setPreferredSize(new SDimension("100%", "100%"));                SForm form = new SForm();        form.add(toolbar);        form.add(textArea);        getContentPane().add(form);        saveResource = new EditorDynamicResource();        SIcon icon = new SURLIcon("../icons/penguin.png");        setIcon(icon);        addInternalFrameListener(this);    }