Package com.jgoodies.forms.layout

Examples of com.jgoodies.forms.layout.CellConstraints.rc()


    sumoexeEdit = new JTextField();
    final FormLayout sumoExecutableLayout = new FormLayout("100px, 200px, 70px", "25px");
    sumoExecutablePanel.setLayout(sumoExecutableLayout);

    final JLabel sumoexeLabel = new JLabel("Sumo Executable:");
    sumoExecutablePanel.add(sumoexeLabel, cc.rc(1, 1));
    sumoExecutablePanel.add(sumoexeEdit, cc.rc(1, 2));
    filechooseButton = new JButton("...");
    filechooseButton.addActionListener(this);
    sumoExecutablePanel.add(filechooseButton, cc.rc(1, 3));
    add(sumoExecutablePanel, cc.rcw(3, 1, 2, CellConstraints.FILL, CellConstraints.FILL));
View Full Code Here


    final FormLayout sumoExecutableLayout = new FormLayout("100px, 200px, 70px", "25px");
    sumoExecutablePanel.setLayout(sumoExecutableLayout);

    final JLabel sumoexeLabel = new JLabel("Sumo Executable:");
    sumoExecutablePanel.add(sumoexeLabel, cc.rc(1, 1));
    sumoExecutablePanel.add(sumoexeEdit, cc.rc(1, 2));
    filechooseButton = new JButton("...");
    filechooseButton.addActionListener(this);
    sumoExecutablePanel.add(filechooseButton, cc.rc(1, 3));
    add(sumoExecutablePanel, cc.rcw(3, 1, 2, CellConstraints.FILL, CellConstraints.FILL));
View Full Code Here

    final JLabel sumoexeLabel = new JLabel("Sumo Executable:");
    sumoExecutablePanel.add(sumoexeLabel, cc.rc(1, 1));
    sumoExecutablePanel.add(sumoexeEdit, cc.rc(1, 2));
    filechooseButton = new JButton("...");
    filechooseButton.addActionListener(this);
    sumoExecutablePanel.add(filechooseButton, cc.rc(1, 3));
    add(sumoExecutablePanel, cc.rcw(3, 1, 2, CellConstraints.FILL, CellConstraints.FILL));

    // UI: Connect remote section radio button
    b_connectRemote = new JRadioButton("Connect to a running instance on a remote host.");
    b_connectRemote.setEnabled(false);
View Full Code Here

    portEdit.setEnabled(false);
    final FormLayout hostSettingsLayout = new FormLayout("100px, 270px", "25px, 25px");
    hostSettingsPanel.setLayout(hostSettingsLayout);

    final JLabel hostnameLabel = new JLabel("Hostname:");
    hostSettingsPanel.add(hostnameLabel, cc.rc(1, 1));

    final JLabel portLabel = new JLabel("Port:");
    hostSettingsPanel.add(portLabel, cc.rc(2, 1));
    hostSettingsPanel.add(hostnameEdit, cc.rc(1, 2));
    hostSettingsPanel.add(portEdit, cc.rc(2, 2));
View Full Code Here

    final JLabel hostnameLabel = new JLabel("Hostname:");
    hostSettingsPanel.add(hostnameLabel, cc.rc(1, 1));

    final JLabel portLabel = new JLabel("Port:");
    hostSettingsPanel.add(portLabel, cc.rc(2, 1));
    hostSettingsPanel.add(hostnameEdit, cc.rc(1, 2));
    hostSettingsPanel.add(portEdit, cc.rc(2, 2));
    add(hostSettingsPanel, cc.rcw(5, 1, 2, CellConstraints.FILL, CellConstraints.FILL));

    // UI: Start and Cancel buttons
View Full Code Here

    final JLabel hostnameLabel = new JLabel("Hostname:");
    hostSettingsPanel.add(hostnameLabel, cc.rc(1, 1));

    final JLabel portLabel = new JLabel("Port:");
    hostSettingsPanel.add(portLabel, cc.rc(2, 1));
    hostSettingsPanel.add(hostnameEdit, cc.rc(1, 2));
    hostSettingsPanel.add(portEdit, cc.rc(2, 2));
    add(hostSettingsPanel, cc.rcw(5, 1, 2, CellConstraints.FILL, CellConstraints.FILL));

    // UI: Start and Cancel buttons
    startButton = new JButton("Proceed to Export...");
View Full Code Here

    hostSettingsPanel.add(hostnameLabel, cc.rc(1, 1));

    final JLabel portLabel = new JLabel("Port:");
    hostSettingsPanel.add(portLabel, cc.rc(2, 1));
    hostSettingsPanel.add(hostnameEdit, cc.rc(1, 2));
    hostSettingsPanel.add(portEdit, cc.rc(2, 2));
    add(hostSettingsPanel, cc.rcw(5, 1, 2, CellConstraints.FILL, CellConstraints.FILL));

    // UI: Start and Cancel buttons
    startButton = new JButton("Proceed to Export...");
    getRootPane().setDefaultButton(startButton);
View Full Code Here

    expDisableCheckbox = new JCheckBox("Do not display this warning anymore.");
    add(expDisableCheckbox, cc.rcw(2, 1, 2));

    okButton = new JButton("Ok");
    okButton.addActionListener(this);
    add(okButton, cc.rc(3, 1));
  }

  public void actionPerformed(final ActionEvent e) {
    if (e.getSource() == okButton) {
      okButtonPressed();
View Full Code Here

        JPanel nameLabelPanel = new JPanel();
        nameLabelPanel.add(new JLabel("Suite Name:"));
        nameLabelPanel.add(txtSuiteName);

        builder.appendRow("fill:pref");
        builder.addLabel("Suite Name:", lblConstraints.rc(1, 1), txtSuiteName, constraints.xy(3, 1));

        JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);

        splitPane.setLeftComponent(createNotInSuitePanel());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.