ButtonBar bar = new ButtonBar();
bar.addConfiguredButton(new Button("Add an FTP server", "addserver", ActionType.OK));
bar.addConfiguredButton(new Button("Remove an FTP server", "removeServer", ActionType.OK));
bar.addToControlPanel(panel);
bar.register(actionRegistry);
Separator sep = new Separator();
sep.addToControlPanel(panel);
BooleanProperty bp = new BooleanProperty();
bp.setLabel("Passive-mode connection:");
bp.setProperty("pasv");
bp.setEditable(true);