Example usage for com.jgoodies.forms.builder DefaultFormBuilder append

List of usage examples for com.jgoodies.forms.builder DefaultFormBuilder append

Introduction

In this page you can find the example usage for com.jgoodies.forms.builder DefaultFormBuilder append.

Prototype

public JLabel append(String textWithMnemonic) 

Source Link

Document

Adds a text label to the panel and proceeds to the next column.

Usage

From source file:com.zeroc.IceGridGUI.Application.AdapterEditor.java

License:Open Source License

@Override
protected void appendProperties(DefaultFormBuilder builder) {
    builder.append("Adapter Name");
    builder.append(_name, 3);/*from  ww  w.j ava2 s.  c  o m*/
    builder.nextLine();

    builder.append("Description");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-2);
    CellConstraints cc = new CellConstraints();
    JScrollPane scrollPane = new JScrollPane(_description);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 3));
    builder.nextRow(2);
    builder.nextLine();

    builder.append("Adapter ID");
    builder.append(_id, 3);
    builder.nextLine();

    builder.append("Replica Group", _replicaGroupId);
    builder.append(_replicaGroupButton);
    builder.nextLine();

    builder.append("Priority");
    builder.append(_priority, 3);
    builder.nextLine();

    builder.append("Endpoints");
    builder.append(_endpoints, 3);
    builder.nextLine();

    builder.append("Published Endpoints");
    builder.append(_publishedEndpoints, 3);
    builder.nextLine();

    builder.append("Proxy Options");
    builder.append(_proxyOptions, 3);
    builder.nextLine();

    builder.append("", _registerProcess);
    builder.nextLine();
    builder.append("", _serverLifetime);
    builder.nextLine();

    builder.append("Well-known Objects");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-6);
    scrollPane = new JScrollPane(_objects);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 7));
    builder.nextRow(6);
    builder.nextLine();

    builder.append("Allocatable Objects");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-6);
    scrollPane = new JScrollPane(_allocatables);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 7));
    builder.nextRow(6);
    builder.nextLine();
}

From source file:com.zeroc.IceGridGUI.Application.ApplicationEditor.java

License:Open Source License

@Override
protected void appendProperties(DefaultFormBuilder builder) {
    builder.append("Name");
    builder.append(_name, 3);// w w  w. jav  a  2 s. c  om

    builder.append("Description");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-2);
    CellConstraints cc = new CellConstraints();
    JScrollPane scrollPane = new JScrollPane(_description);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 3));
    builder.nextRow(2);
    builder.nextLine();

    builder.append("Variables");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-6);
    scrollPane = new JScrollPane(_variables);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 7));
    builder.nextRow(6);
    builder.nextLine();

    JComponent c = builder.appendSeparator("Distribution");
    c.setToolTipText("Files shared by all servers in your application");
    builder.append("IcePatch2 Proxy");
    builder.append(_distrib, 3);
    builder.nextLine();
    builder.append("Directories");
    builder.append(_distribDirs, 3);
    builder.nextLine();
}

From source file:com.zeroc.IceGridGUI.Application.CommunicatorSubEditor.java

License:Open Source License

void appendProperties(DefaultFormBuilder builder) {
    builder.append("Description");
    builder.nextLine();//  w w  w. j a  v  a  2s. co  m
    builder.append("");
    builder.nextRow(-2);
    CellConstraints cc = new CellConstraints();
    JScrollPane scrollPane = new JScrollPane(_description);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 3));
    builder.nextRow(2);
    builder.nextLine();

    builder.append("Property Sets");
    builder.append(_propertySets, 3);
    builder.nextLine();

    builder.append("Properties");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");

    builder.nextRow(-6);
    scrollPane = new JScrollPane(_properties);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 7));
    builder.nextRow(6);
    builder.nextLine();

    builder.append("Log files");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-4);
    scrollPane = new JScrollPane(_logFiles);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 5));
    builder.nextRow(4);
    builder.nextLine();
}

From source file:com.zeroc.IceGridGUI.Application.DbEnvEditor.java

License:Open Source License

@Override
protected void appendProperties(DefaultFormBuilder builder) {
    builder.append("Name");
    builder.append(_name, 3);/*from   w w w  . j  av  a 2  s  . c o m*/
    builder.nextLine();

    builder.append("Description");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-2);
    CellConstraints cc = new CellConstraints();
    JScrollPane scrollPane = new JScrollPane(_description);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 3));
    builder.nextRow(2);
    builder.nextLine();

    builder.append("DB Home");
    builder.append(_dbHome, 3);
    builder.nextLine();

    builder.append("Properties");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");

    builder.nextLine();
    builder.append("");

    builder.nextRow(-6);
    scrollPane = new JScrollPane(_properties);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 7));
    builder.nextRow(6);
    builder.nextLine();
}

From source file:com.zeroc.IceGridGUI.Application.NodeEditor.java

License:Open Source License

@Override
protected void appendProperties(DefaultFormBuilder builder) {
    builder.append("Name");
    builder.append(_name, 3);/*from w  w  w . j a va2 s.c  o m*/
    builder.nextLine();

    builder.append("Description");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-2);
    CellConstraints cc = new CellConstraints();
    JScrollPane scrollPane = new JScrollPane(_description);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 3));
    builder.nextRow(2);
    builder.nextLine();

    builder.append("Variables");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-6);
    scrollPane = new JScrollPane(_variables);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 7));
    builder.nextRow(6);
    builder.nextLine();

    builder.append("Load Factor");
    builder.append(_loadFactor, 3);
    builder.nextLine();
}

From source file:com.zeroc.IceGridGUI.Application.PropertySetEditor.java

License:Open Source License

@Override
protected void appendProperties(DefaultFormBuilder builder) {
    builder.append(_idLabel);
    builder.append(getIdComponent(), 3);
    builder.nextLine();//  w w  w  .j a  v  a 2  s .  com

    builder.append("Property Sets");
    builder.append(_propertySets, 3);
    builder.nextLine();

    builder.append("Properties");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");

    builder.nextRow(-6);
    JScrollPane scrollPane = new JScrollPane(_properties);
    CellConstraints cc = new CellConstraints();
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 7));
    builder.nextRow(6);
    builder.nextLine();
}

From source file:com.zeroc.IceGridGUI.Application.ReplicaGroupEditor.java

License:Open Source License

@Override
protected void appendProperties(DefaultFormBuilder builder) {
    builder.append("Replica Group ID");
    builder.append(_id, 3);//from   w  w  w  .  jav  a 2 s  .c o  m
    builder.nextLine();

    builder.append("Description");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-2);
    CellConstraints cc = new CellConstraints();
    JScrollPane scrollPane = new JScrollPane(_description);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 3));
    builder.nextRow(2);
    builder.nextLine();

    builder.append("Proxy Options");
    builder.append(_proxyOptions, 3);
    builder.nextLine();

    builder.append("Filter");
    builder.append(_filter, 3);
    builder.nextLine();

    builder.append("Well-known Objects");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-6);
    scrollPane = new JScrollPane(_objects);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 7));
    builder.nextRow(6);
    builder.nextLine();

    builder.append("Load Balancing Policy");
    builder.append(_loadBalancing, 3);
    builder.nextLine();
    builder.append("How many Adapters? (0 = all)");
    builder.append(_nReplicas, 3);
    builder.nextLine();
    _loadSampleLabel = builder.append("Load Sample");
    builder.append(_loadSample, 3);
    builder.nextLine();
}

From source file:com.zeroc.IceGridGUI.Application.ServerSubEditor.java

License:Open Source License

@Override
void appendProperties(DefaultFormBuilder builder) {
    builder.append("Server ID");
    builder.append(_id, 3);//from  ww w .  j a  v a2s .  c om
    builder.nextLine();

    //
    // Add Communicator fields
    //
    super.appendProperties(builder);

    builder.appendSeparator("Activation");
    builder.append("Path to Executable");
    builder.append(_exe, 3);
    builder.nextLine();
    builder.append("Ice Version");
    builder.append(_iceVersion, 3);
    builder.nextLine();
    builder.append("Working Directory");
    builder.append(_pwd, 3);
    builder.nextLine();
    builder.append("Command Arguments");
    builder.append(_options, 3);
    builder.nextLine();
    builder.append("Run as");
    builder.append(_user, 3);
    builder.nextLine();
    builder.append("Environment Variables");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextRow(-6);
    CellConstraints cc = new CellConstraints();
    JScrollPane scrollPane = new JScrollPane(_envs);
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 7));
    builder.nextRow(6);
    builder.nextLine();

    builder.append("Activation Mode");
    builder.append(_activation, 3);
    builder.nextLine();
    builder.append("Activation Timeout");
    builder.append(_activationTimeout, 3);
    builder.nextLine();
    builder.append("Deactivation Timeout");
    builder.append(_deactivationTimeout, 3);
    builder.nextLine();
    builder.append("", _allocatable);
    builder.nextLine();

    JComponent c = builder.appendSeparator("Distribution");
    c.setToolTipText("Files specific to this server");

    builder.append("", _applicationDistrib);
    builder.nextLine();
    builder.append("IcePatch2 Proxy");
    builder.append(_distrib, 3);
    builder.nextLine();
    builder.append("Directories");
    builder.append(_distribDirs, 3);
    builder.nextLine();
}

From source file:com.zeroc.IceGridGUI.Application.ServiceSubEditor.java

License:Open Source License

@Override
void appendProperties(DefaultFormBuilder builder) {
    builder.append("Service Name");
    builder.append(_name, 3);/* w  ww  .  j av a 2s  .c om*/
    builder.nextLine();

    //
    // Add Communicator fields
    //
    super.appendProperties(builder);

    builder.append("Entry Point");
    builder.append(_entry, 3);
    builder.nextLine();
}

From source file:com.zeroc.IceGridGUI.Application.TemplateEditor.java

License:Open Source License

@Override
protected void appendProperties(DefaultFormBuilder builder) {
    builder.append("Template ID");
    builder.append(_template, 3);/* www .  ja v  a2 s  .  c  o  m*/
    builder.nextLine();

    builder.append("Parameters");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");
    builder.nextLine();
    builder.append("");

    builder.nextRow(-6);
    JScrollPane scrollPane = new JScrollPane(_parameters);
    CellConstraints cc = new CellConstraints();
    builder.add(scrollPane, cc.xywh(builder.getColumn(), builder.getRow(), 3, 7));
    builder.nextRow(6);
    builder.nextLine();
}