dnTextField.setColumns(60);
    public AddObjectPanel()        throws NamingException    {        super(new SFlowDownLayout());        setEncodingType("multipart/form-data");        dnTextField = new STextField();        dnTextField.setAttribute("width", "100%");        add(dnTextField);        objectClassList = new SList();        objectClassList.setAttribute("width", "100%");        objectClassList.setListData(LDAP.getObjectClasses(getSchema()));        objectClassList.setSelectionMode(SINGLE_SELECTION);        add(objectClassList);        objectClassLabel = new SLabel();        add(objectClassLabel);        editor = new AttributesEditor();        add(editor);        SPanel buttons = new SPanel(null);        buttons.setAttribute("align", "right");        addButton = new SButton("add");        addButton.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent event) {                    add();                }            });        buttons.add(addButton);        okButton = new SButton("ok");        okButton.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent event) {                    ok();                }            });        buttons.add(okButton);        cancelButton = new SButton("cancel");        cancelButton.addActionListener(new ActionListener() {                public void actionPerformed(ActionEvent event) {                    cancel();                }            });        buttons.add(cancelButton);        add(buttons);        objectClassLabel.setVisible(false);        editor.setVisible(false);        okButton.setVisible(false);        cancelButton.setVisible(false);    }