private JComboBox comboBox;
private JTextField sessionName;
public BasicConnectionPanel(String serverUrlProperty, FactoryConfig factoryConfig, HermesConfig config) {
this.factoryConfig = factoryConfig;
ConnectionConfig connectionConfig = factoryConfig.getConnection().get(0) ;
SessionConfig sessionConfig = connectionConfig.getSession().get(0) ;
setLayout(new FormLayout(new ColumnSpec[] {
FormFactory.RELATED_GAP_COLSPEC,
ColumnSpec.decode("max(41dlu;default)"),
FormFactory.RELATED_GAP_COLSPEC,
ColumnSpec.decode("118dlu:grow"),
ColumnSpec.decode("22dlu"),},
new RowSpec[] {
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,
FormFactory.RELATED_GAP_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC,}));
JLabel lblName = new JLabel("Name:");
lblName.setHorizontalAlignment(SwingConstants.RIGHT);
add(lblName, "2, 2, right, default");
sessionName = new JTextField();
add(sessionName, "4, 2, fill, default");
sessionName.setColumns(10);
JLabel lblServerurl = new JLabel(getServerUrlLabel());
lblServerurl.setHorizontalAlignment(SwingConstants.RIGHT);
add(lblServerurl, "2, 4, right, default");
serverURL = new JTextField();
serverURL.setText(getValueOf(serverUrlProperty));
add(serverURL, "4, 4, fill, default");
serverURL.setColumns(10);
JLabel lblUsername = new JLabel("Username:");
lblUsername.setHorizontalAlignment(SwingConstants.RIGHT);
add(lblUsername, "2, 6, right, default");
username = new JTextField(connectionConfig.getUsername());
add(username, "4, 6, fill, default");
username.setColumns(10);
JLabel lblPassword = new JLabel("Password:");
lblPassword.setHorizontalAlignment(SwingConstants.RIGHT);
add(lblPassword, "2, 8, right, default");
password = new JPasswordField(connectionConfig.getPassword()) ;
add(password, "4, 8, fill, default");
password.setColumns(10);
JLabel lblClientid = new JLabel("ClientID:");
lblClientid.setHorizontalAlignment(SwingConstants.RIGHT);
add(lblClientid, "2, 10, right, default");
clientID = new JTextField(connectionConfig.getClientID());
add(clientID, "4, 10, fill, default");
clientID.setColumns(10);
JLabel lblClassloader = new JLabel("ClassLoader:");
lblClassloader.setHorizontalAlignment(SwingConstants.RIGHT);