Example usage for com.jgoodies.forms.layout CellConstraints DEFAULT

List of usage examples for com.jgoodies.forms.layout CellConstraints DEFAULT

Introduction

In this page you can find the example usage for com.jgoodies.forms.layout CellConstraints DEFAULT.

Prototype

Alignment DEFAULT

To view the source code for com.jgoodies.forms.layout CellConstraints DEFAULT.

Click Source Link

Document

Use the column's or row's default alignment.

Usage

From source file:com.tcay.slalom.UI.RaceConfigUI.java

License:Open Source License

/**
 * Method generated by IntelliJ IDEA GUI Designer
 * >>> IMPORTANT!! <<<
 * DO NOT edit this method OR call it in your code!
 *
 * @noinspection ALL//from  w w  w.  j  av  a 2  s.  c  om
 */
private void $$$setupUI$$$() {
    createUIComponents();
    panel1 = new JPanel();
    panel1.setLayout(new FormLayout(
            "fill:127px:noGrow,left:max(m;10px):noGrow,left:max(m;200px):grow,fill:max(d;4px):noGrow,fill:max(d;4px):noGrow",
            "center:d:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:d:grow,top:3dlu:noGrow,center:max(d;4px):noGrow"));
    final JLabel label1 = new JLabel();
    this.$$$loadLabelText$$$(label1,
            ResourceBundle.getBundle("resources/SlalomAppMessages").getString("race.name"));
    CellConstraints cc = new CellConstraints();
    panel1.add(label1, cc.xy(1, 1));
    raceName = new JTextField();
    panel1.add(raceName, cc.xyw(3, 1, 3, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JLabel label2 = new JLabel();
    this.$$$loadLabelText$$$(label2,
            ResourceBundle.getBundle("resources/SlalomAppMessages").getString("race.date"));
    panel1.add(label2, cc.xy(1, 3));
    final JLabel label3 = new JLabel();
    this.$$$loadLabelText$$$(label3,
            ResourceBundle.getBundle("resources/SlalomAppMessages").getString("race.location"));
    panel1.add(label3, cc.xy(1, 5));
    raceVenue = new JTextField();
    raceVenue.setMinimumSize(new Dimension(60, 28));
    raceVenue.setPreferredSize(new Dimension(60, 28));
    panel1.add(raceVenue, cc.xyw(3, 5, 3, CellConstraints.FILL, CellConstraints.DEFAULT));
    panelLower = new JPanel();
    panelLower.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));
    panel1.add(panelLower, cc.xyw(1, 9, 5));
    final JLabel label4 = new JLabel();
    this.$$$loadLabelText$$$(label4,
            ResourceBundle.getBundle("resources/SlalomAppMessages").getString("race.config.totalNbrGates"));
    panel1.add(label4, cc.xy(1, 7));
    panel1.add(nbrGates, cc.xyw(3, 7, 3, CellConstraints.FILL, CellConstraints.DEFAULT));
    panel1.add(panelSectionConfig, cc.xyw(1, 11, 4, CellConstraints.CENTER, CellConstraints.FILL));
    doneButton = new JButton();
    doneButton.setText("Done");
    panel1.add(doneButton, cc.xyw(1, 13, 4));
    panel1.add(dateSpinner1, cc.xy(3, 3, CellConstraints.FILL, CellConstraints.DEFAULT));
}

From source file:com.tcay.slalom.UI.RacePenaltiesUI_REFERENCE.java

License:Open Source License

/**
 * Method generated by IntelliJ IDEA GUI Designer
 * >>> IMPORTANT!! <<<
 * DO NOT edit this method OR call it in your code!
 *
 * @noinspection ALL/*from w w  w.j a v  a 2 s  . c o  m*/
 */
private void $$$setupUI$$$() {
    createUIComponents();
    panel1 = new JPanel();
    panel1.setLayout(new FormLayout(
            "fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow",
            "center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:d:grow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:d:grow,top:3dlu:noGrow,center:max(d;4px):noGrow"));
    panel1.setMinimumSize(new Dimension(513, 200));
    panel1.setOpaque(false);
    panel1.setPreferredSize(new Dimension(513, 200));
    panel1.setBorder(
            BorderFactory.createTitledBorder(BorderFactory.createLoweredBevelBorder(), "Penalty Scoring"));
    CellConstraints cc = new CellConstraints();
    panel1.add(activeOrRecentRunsComboBox, cc.xyw(3, 1, 4));
    rb1_Touch.setText("Touch (2)");
    panel1.add(rb1_Touch, cc.xy(5, 5));
    rb1_Clean.setText("Clean");
    panel1.add(rb1_Clean, cc.xy(3, 5));
    panel1.add(gate1Label, cc.xy(1, 5));
    final JLabel label1 = new JLabel();
    label1.setText("Racer");
    panel1.add(label1, cc.xy(1, 3));
    rb1_50.setText("Missed (50)");
    panel1.add(rb1_50, cc.xywh(7, 5, 1, 2));
    panel1.add(raceRunLabel, cc.xy(3, 3));
    selectRaceRun = new JButton();
    selectRaceRun.setText("Select Boat");
    panel1.add(selectRaceRun, cc.xy(7, 1));
    rb2_Touch.setText("Touch (2)");
    panel1.add(rb2_Touch, cc.xy(5, 9));
    rb2_Clean.setText("Clean");
    panel1.add(rb2_Clean, cc.xy(3, 9));
    panel1.add(gate2Label, cc.xy(1, 9));
    rb2_50.setText("Missed (50)");
    panel1.add(rb2_50, cc.xy(7, 9));
    rb3_Touch.setText("Touch (2)");
    panel1.add(rb3_Touch, cc.xy(5, 13));
    rb3_Clean.setText("Clean");
    panel1.add(rb3_Clean, cc.xy(3, 13));
    panel1.add(gate3Label, cc.xy(1, 13));
    rb3_50.setText("Missed (50)");
    panel1.add(rb3_50, cc.xy(7, 13));
    doneBtn.setText("Done");
    panel1.add(doneBtn, cc.xy(5, 17));
    final Spacer spacer1 = new Spacer();
    panel1.add(spacer1, cc.xy(5, 15, CellConstraints.DEFAULT, CellConstraints.FILL));
    final Spacer spacer2 = new Spacer();
    panel1.add(spacer2, cc.xy(5, 11, CellConstraints.DEFAULT, CellConstraints.FILL));
    final JLabel label2 = new JLabel();
    label2.setText("Section 2");
    panel1.add(label2, cc.xy(1, 11));
    final JScrollPane scrollPane1 = new JScrollPane();
    panel1.add(scrollPane1, cc.xy(1, 1, CellConstraints.FILL, CellConstraints.FILL));
}

From source file:com.tcay.slalom.UI.RaceTimingUI.java

License:Open Source License

/**
 * Method generated by IntelliJ IDEA GUI Designer
 * >>> IMPORTANT!! <<<
 * DO NOT edit this method OR call it in your code!
 *
 * @noinspection ALL//  ww w  .  j a  v a2s.  com
 */
private void $$$setupUI$$$() {
    createUIComponents();
    mainPanel = new JPanel();
    mainPanel.setLayout(new GridLayoutManager(6, 1, new Insets(0, 0, 0, 0), -1, -1));
    selectRacerPanel = new JPanel();
    selectRacerPanel.setLayout(new FormLayout(
            "fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:267px:noGrow,left:12dlu:noGrow,fill:max(d;4px):noGrow,left:51dlu:noGrow,fill:85px:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow",
            "top:29px:grow,top:6dlu:noGrow,center:32px:noGrow"));
    selectRacerPanel.setToolTipText(
            "Start list contains all boats that are registered and have not yet compoleted the current run in progress");
    mainPanel.add(selectRacerPanel,
            new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null,
                    new Dimension(658, 84), null, 0, false));
    selectRacerPanel.setBorder(
            BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.black), "Start List"));
    final JPanel panel1 = new JPanel();
    panel1.setLayout(new BorderLayout(0, 0));
    CellConstraints cc = new CellConstraints();
    selectRacerPanel.add(panel1, cc.xy(7, 1));
    newRunButton = new JButton();
    newRunButton.setBackground(Color.pink);
    newRunButton.setOpaque(true);
    newRunButton.setText("New Run");
    newRunButton.setToolTipText("Select next run e.g. second runs");
    panel1.add(newRunButton, BorderLayout.NORTH);
    reRunButton = new JButton();
    reRunButton.setBackground(Color.pink);
    reRunButton.setOpaque(true);
    reRunButton.setText("Re-Run");
    reRunButton.setToolTipText("Select a boat to do a Re-run, this Re-Run will replace their existing run ");
    selectRacerPanel.add(reRunButton, cc.xy(7, 3));
    startListSelectRacerReadyButton = new JButton();
    startListSelectRacerReadyButton.setBackground(Color.green);
    startListSelectRacerReadyButton.setOpaque(true);
    startListSelectRacerReadyButton.setText("Select Racer");
    startListSelectRacerReadyButton.setToolTipText(
            "put selected boat from the start list into the starting block (replaces boat currently in starting block)");
    startListSelectRacerReadyButton.setVerticalAlignment(3);
    selectRacerPanel.add(startListSelectRacerReadyButton,
            cc.xy(5, 3, CellConstraints.DEFAULT, CellConstraints.BOTTOM));
    startListComboBox.setBackground(Color.green);
    startListComboBox.setOpaque(true);
    startListComboBox.setToolTipText("List of all boats that have not yet started the current run");
    selectRacerPanel.add(startListComboBox, cc.xy(3, 3, CellConstraints.DEFAULT, CellConstraints.BOTTOM));
    final JLabel label1 = new JLabel();
    label1.setText("Boats that have not started this run");
    selectRacerPanel.add(label1, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.BOTTOM));
    adjustButton = new JButton();
    adjustButton.setBackground(new Color(-1178868));
    adjustButton.setOpaque(true);
    adjustButton.setText("Adjust");
    selectRacerPanel.add(adjustButton, cc.xy(9, 3));
    startPanel = new JPanel();
    startPanel.setLayout(new FormLayout(
            "fill:53px:noGrow,left:4dlu:noGrow,fill:219px:noGrow,left:12dlu:noGrow,fill:118px:noGrow,left:52dlu:noGrow,fill:85px:noGrow",
            "center:30px:noGrow,top:7dlu:noGrow,center:max(d;4px):noGrow"));
    startPanel.setToolTipText("Starting block is the boat that is about to begin racing");
    mainPanel.add(startPanel,
            new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
                    null, 0, false));
    startPanel.setBorder(
            BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.black), "Starting Block"));
    startButton = new JButton();
    startButton.setBackground(Color.green);
    startButton.setOpaque(true);
    startButton.setText("Start");
    startButton.setToolTipText("Start timer for this boat");
    startPanel.add(startButton, cc.xy(5, 1));
    DNSButton = new JButton();
    DNSButton.setBackground(Color.pink);
    DNSButton.setOpaque(true);
    DNSButton.setText("DNS");
    DNSButton.setToolTipText("Mark boat as DID NOT START");
    startPanel.add(DNSButton, cc.xy(7, 1));
    waitingForAFinishLabel = new JLabel();
    waitingForAFinishLabel.setForeground(Color.red);
    waitingForAFinishLabel.setText("Waiting for a finish or DNF");
    startPanel.add(waitingForAFinishLabel, cc.xyw(5, 3, 2));
    jRacerInStartGateLabel = new JLabel();
    startPanel.add(jRacerInStartGateLabel, cc.xy(3, 1));
    startPanel.add(bibLabel, cc.xy(1, 1));
    spacerForLayoutManager = new JLabel();
    startPanel.add(spacerForLayoutManager, cc.xy(3, 3));
    finishPanel = new JPanel();
    finishPanel.setLayout(new FormLayout(
            "fill:134px:noGrow,left:4dlu:noGrow,fill:48px:noGrow,left:8dlu:noGrow,fill:179px:noGrow,left:5dlu:noGrow,fill:117px:noGrow,fill:14px:noGrow,fill:85px:noGrow,left:28dlu:noGrow,fill:max(d;4px):noGrow",
            "center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow"));
    finishPanel.setToolTipText("Finish Line shows all boats currently started and on the course");
    mainPanel.add(finishPanel,
            new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null,
                    new Dimension(634, 155), null, 0, false));
    finishPanel.setBorder(
            BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.black), "Finish Line"));
    finishPanel.add(innerFinishPanel1, cc.xyw(1, 1, 10));
    finishPanel.add(innerFinishPanel2, cc.xyw(1, 3, 10));
    finishPanel.add(innerFinishPanel3, cc.xyw(1, 5, 10));
    final Spacer spacer1 = new Spacer();
    mainPanel.add(spacer1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
            GridConstraints.FILL_VERTICAL, 1, 1, null, null, null, 0, false));
    final Spacer spacer2 = new Spacer();
    mainPanel.add(spacer2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER,
            GridConstraints.FILL_VERTICAL, 1, 1, null, null, null, 0, false));
    statusBarPanel = new JPanel();
    statusBarPanel.setLayout(new FormLayout("fill:d:grow", "center:d:grow"));
    mainPanel.add(statusBarPanel,
            new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1,
                    new Dimension(-1, 20), new Dimension(-1, 20), null, 0, false));
}

From source file:com.tcay.slalom.UI.RegisterRacer.java

License:Open Source License

/**
 * Method generated by IntelliJ IDEA GUI Designer
 * >>> IMPORTANT!! <<<
 * DO NOT edit this method OR call it in your code!
 *
 * @noinspection ALL//  w w  w .j  a va2  s . com
 */
private void $$$setupUI$$$() {
    createUIComponents();
    mainPanel = new JPanel();
    mainPanel.setLayout(new GridLayoutManager(9, 4, new Insets(0, 0, 0, 0), -1, -1));
    mainPanel.setBorder(BorderFactory.createTitledBorder("Register Racer"));
    final JLabel label1 = new JLabel();
    label1.setText("First Name");
    mainPanel.add(label1,
            new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    final JLabel label2 = new JLabel();
    label2.setText("Last Name");
    mainPanel.add(label2,
            new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    final Spacer spacer1 = new Spacer();
    mainPanel.add(spacer1,
            new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1,
                    GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));
    final JLabel label3 = new JLabel();
    label3.setText("Birthdate");
    mainPanel.add(label3,
            new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    final JLabel label4 = new JLabel();
    label4.setText("Email Address");
    mainPanel.add(label4,
            new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    firstName = new JTextField();
    mainPanel.add(firstName,
            new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
                    new Dimension(150, -1), null, 0, false));
    lastName = new JTextField();
    mainPanel.add(lastName,
            new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
                    new Dimension(150, -1), null, 0, false));
    birthdate = new JTextField();
    mainPanel.add(birthdate,
            new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
                    new Dimension(150, -1), null, 0, false));
    email = new JTextField();
    mainPanel.add(email,
            new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
                    new Dimension(150, -1), null, 0, false));
    federationNbr = new JTextField();
    mainPanel.add(federationNbr,
            new GridConstraints(5, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
                    new Dimension(150, -1), null, 0, false));
    final JLabel label5 = new JLabel();
    label5.setText("Federation#");
    mainPanel.add(label5,
            new GridConstraints(5, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    final JLabel label6 = new JLabel();
    label6.setText("Sex");
    mainPanel.add(label6,
            new GridConstraints(4, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    sex = new JTextField();
    mainPanel.add(sex,
            new GridConstraints(4, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
                    new Dimension(150, -1), null, 0, false));
    final JLabel label7 = new JLabel();
    label7.setText("Bib Nbr");
    mainPanel.add(label7,
            new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    bibNbr = new JTextField();
    mainPanel.add(bibNbr,
            new GridConstraints(2, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
                    new Dimension(150, -1), null, 0, false));
    paidCheckBox = new JCheckBox();
    paidCheckBox.setText("Paid");
    mainPanel.add(paidCheckBox,
            new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
                    GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    mainPanel.add(racerListComboBox,
            new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    final JLabel label8 = new JLabel();
    label8.setText("Lookup Racer");
    mainPanel.add(label8,
            new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    selectButton = new JButton();
    selectButton.setText("Select");
    mainPanel.add(selectButton,
            new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
                    GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
    tshirtSize = new JTextField();
    mainPanel.add(tshirtSize,
            new GridConstraints(7, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
                    new Dimension(150, -1), null, 0, false));
    final JLabel label9 = new JLabel();
    label9.setText("Shirt size");
    mainPanel.add(label9,
            new GridConstraints(7, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    mobilePhone = new JTextField();
    mainPanel.add(mobilePhone,
            new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
                    new Dimension(150, -1), null, 0, false));
    final JLabel label10 = new JLabel();
    label10.setText("Mobile Phone");
    mainPanel.add(label10,
            new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    final JLabel label11 = new JLabel();
    label11.setText("Club/Country");
    mainPanel.add(label11,
            new GridConstraints(6, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
                    GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0,
                    false));
    clubCountry = new JTextField();
    mainPanel.add(clubCountry,
            new GridConstraints(6, 3, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
                    GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
                    new Dimension(150, -1), null, 0, false));
    final JPanel panel1 = new JPanel();
    panel1.setLayout(new FormLayout("fill:d:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow", "center:d:grow"));
    mainPanel.add(panel1,
            new GridConstraints(8, 0, 1, 4, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
                    GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null,
                    null, 0, false));
    saveButton = new JButton();
    saveButton.setHorizontalAlignment(0);
    saveButton.setText("Save");
    CellConstraints cc = new CellConstraints();
    panel1.add(saveButton, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    cancelButton = new JButton();
    cancelButton.setText("Cancel");
    panel1.add(cancelButton, cc.xy(3, 1));
}

From source file:com.tcay.slalom.UI.SectionConfigUI.java

License:Open Source License

/**
 * Method generated by IntelliJ IDEA GUI Designer
 * >>> IMPORTANT!! <<<
 * DO NOT edit this method OR call it in your code!
 *
 * @noinspection ALL/*w  w w .j  a  v  a 2  s.c o m*/
 */
private void $$$setupUI$$$() {
    createUIComponents();
    panel1 = new JPanel();
    panel1.setLayout(new FormLayout(
            "fill:247px:noGrow,left:5dlu:noGrow,fill:74px:noGrow,left:4dlu:noGrow,fill:74px:noGrow,left:23dlu:noGrow,fill:max(d;4px):noGrow",
            "center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:12px:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:29px:noGrow,top:3dlu:noGrow,top:19dlu:noGrow,center:max(d;4px):noGrow,center:174px:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow"));
    CellConstraints cc = new CellConstraints();
    panel1.add(comboBoxSection1, cc.xy(5, 7));
    section1Label = new JLabel();
    section1Label.setText("Section 1");
    panel1.add(section1Label, cc.xy(3, 7));
    section2Label = new JLabel();
    section2Label.setText("Section 2");
    panel1.add(section2Label, cc.xy(3, 10));
    panel1.add(comboBoxSection2, cc.xy(5, 10));
    section3Label = new JLabel();
    section3Label.setText("Section 3");
    panel1.add(section3Label, cc.xy(3, 12));
    panel1.add(comboBoxSection3, cc.xy(5, 12));
    section4Label = new JLabel();
    section4Label.setText("Section 4");
    panel1.add(section4Label, cc.xy(3, 14));
    panel1.add(comboBoxSection4, cc.xy(5, 14));
    final JLabel label1 = new JLabel();
    this.$$$loadLabelText$$$(label1,
            ResourceBundle.getBundle("resources/SlalomAppMessages").getString("sectionConfig.lastGate"));
    panel1.add(label1, cc.xy(5, 3));
    section5Label = new JLabel();
    section5Label.setText("Section 5");
    panel1.add(section5Label, cc.xy(3, 16));
    panel1.add(comboBoxSection5, cc.xy(5, 16));
    final JList list1 = new JList();
    list1.setToolTipText(
            "Causes diagrams for touches and reason codes for 50s to appear when assessing penalties");
    panel1.add(list1, cc.xy(5, 21, CellConstraints.DEFAULT, CellConstraints.FILL));
    final JScrollPane scrollPane1 = new JScrollPane();
    panel1.add(scrollPane1, cc.xy(5, 20, CellConstraints.DEFAULT, CellConstraints.FILL));
    scrollPane1.setViewportView(upstreamCheckBoxList);
    doneButton.setText("Done");
    panel1.add(doneButton, cc.xy(1, 23));
    final JLabel label2 = new JLabel();
    this.$$$loadLabelText$$$(label2, ResourceBundle.getBundle("resources/SlalomAppMessages")
            .getString("sectionConfig.sectionConfiguration"));
    panel1.add(label2, cc.xyw(3, 1, 5, CellConstraints.CENTER, CellConstraints.DEFAULT));
    final JLabel label3 = new JLabel();
    this.$$$loadLabelText$$$(label3,
            ResourceBundle.getBundle("resources/SlalomAppMessages").getString("sectionConfig.advancedOptions"));
    panel1.add(label3, cc.xy(1, 1));
    final JLabel label4 = new JLabel();
    this.$$$loadLabelText$$$(label4, ResourceBundle.getBundle("resources/SlalomAppMessages")
            .getString("sectionConfig.selectUpstreamGates"));
    panel1.add(label4, cc.xyw(3, 19, 4, CellConstraints.CENTER, CellConstraints.DEFAULT));
    final JLabel label5 = new JLabel();
    label5.setFont(new Font(label5.getFont().getName(), label5.getFont().getStyle(), 8));
    label5.setText("to be moved to Advanced Options page");
    panel1.add(label5, cc.xy(1, 3));
    this.$$$loadButtonText$$$(icfPenaltyDiagrams,
            ResourceBundle.getBundle("resources/SlalomAppMessages").getString("sectionConfig.useIcfPenalties"));
    icfPenaltyDiagrams.setToolTipText(ResourceBundle.getBundle("resources/SlalomAppMessages")
            .getString("sectionConfig.icfPenaltyDiagrams.tooltip"));
    panel1.add(icfPenaltyDiagrams, cc.xy(1, 7));
    this.$$$loadButtonText$$$(useTAGHeuerPhotoEyes, ResourceBundle.getBundle("resources/SlalomAppMessages")
            .getString("sectionConfig.useTagHeuerEmulation.tooltip"));
    useTAGHeuerPhotoEyes.setToolTipText(ResourceBundle.getBundle("resources/SlalomAppMessages")
            .getString("sectionConfig.useTagHeuerEmulation.tooltip"));
    panel1.add(useTAGHeuerPhotoEyes, cc.xy(1, 12));
    this.$$$loadButtonText$$$(useMicrogatePhotoEyesCheckBox,
            ResourceBundle.getBundle("resources/SlalomAppMessages").getString("sectionConfig.useMicrogate"));
    useMicrogatePhotoEyesCheckBox.setToolTipText(ResourceBundle.getBundle("resources/SlalomAppMessages")
            .getString("sectionConfig.useMicrogate.tooltip"));
    panel1.add(useMicrogatePhotoEyesCheckBox, cc.xy(1, 14));
    this.$$$loadButtonText$$$(useTimyPhotoEyesCheckBox,
            ResourceBundle.getBundle("resources/SlalomAppMessages").getString("sectionConfig.useTimy"));
    useTimyPhotoEyesCheckBox.setToolTipText(
            ResourceBundle.getBundle("resources/SlalomAppMessages").getString("sectionConfig.useTimy.tooltip"));
    panel1.add(useTimyPhotoEyesCheckBox, cc.xy(1, 16));
}

From source file:com.tcay.slalom.UI.TrainingTimingUI.java

License:Open Source License

/**
 * Method generated by IntelliJ IDEA GUI Designer
 * >>> IMPORTANT!! <<<
 * DO NOT edit this method OR call it in your code!
 *
 * @noinspection ALL/*from  w  w w.j  a v  a  2 s .  c o  m*/
 */
private void $$$setupUI$$$() {
    createUIComponents();
    panel1 = new JPanel();
    panel1.setLayout(new FormLayout("fill:d:grow",
            "center:d:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow"));
    panel1.setBackground(new Color(-16777216));
    final JLabel label1 = new JLabel();
    label1.setForeground(new Color(-65485));
    label1.setText("Current Run");
    CellConstraints cc = new CellConstraints();
    panel1.add(label1, cc.xy(1, 1));
    currentTimeSSSdotHH.setBackground(new Color(-16777216));
    currentTimeSSSdotHH.setFont(new Font("MT Extra", Font.BOLD, 72));
    currentTimeSSSdotHH.setForeground(UIManager.getColor("InternalFrame.borderDarkShadow"));
    currentTimeSSSdotHH.setText("999.99");
    panel1.add(currentTimeSSSdotHH, cc.xy(1, 5, CellConstraints.CENTER, CellConstraints.DEFAULT));
    racerName = new JLabel();
    racerName.setForeground(new Color(-65485));
    racerName.setText("Label");
    panel1.add(racerName, cc.xy(1, 3));
}

From source file:com.tibco.util.gui.JmsStreamForm.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    menuBar = new JMenuBar();
    menuFile = new JMenu();
    mnuNewConfig = new JMenuItem();
    mnuOpenConfig = new JMenuItem();
    mnuSaveConfigFile = new JMenuItem();
    mnuSaveConfigAs = new JMenuItem();
    mnuExit = new JMenuItem();
    menuTools = new JMenu();
    mnuConfiguration = new JMenuItem();
    mnuCreateFileJndi = new JMenuItem();
    mnuMessages = new JMenu();
    mnuNewMessages = new JMenuItem();
    mnuOpenMessages = new JMenuItem();
    mnuMsgEdit = new JMenuItem();
    mnuShowConfig = new JMenuItem();
    mnuGenCommandLine = new JMenuItem();
    menuHelp = new JMenu();
    mnuShowHelp = new JMenuItem();
    mnuLicense = new JMenuItem();
    mnuAbout = new JMenuItem();
    toolBarParent = new JToolBar();
    toolBar = new JToolBar();
    btnNewConfig = new JButton();
    btnOpenConfig = new JButton();
    btnSaveConfig = new JButton();
    btnConfigEdit = new JButton();
    btnShowConf = new JButton();
    btnGenCommandLine = new JButton();
    btnCreateFileJndi = new JButton();
    btnHelp = new JButton();
    dialogPane = new JPanel();
    buttonBar = new JPanel();
    btnStart = new JButton();
    btnStop = new JButton();
    btnPauseScreen = new JToggleButton();
    brnClearScreen = new JButton();
    panelMemory = new JPanel();
    lblMemory = new JLabel();
    btnGc = new JButton();
    panelMain = new JScrollPane();
    panelOutput = new JPanel();
    txtOutput = new JTextArea();
    hSpacer = new JPanel(null);
    vSpacer1 = new JPanel(null);
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setIconImage(/* w  ww .  j a v  a2 s .c  om*/
            new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/tibrv_ico.gif")).getImage());
    setTitle("JmsStream");
    setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    setFont(new Font("Dialog", Font.PLAIN, 12));
    setForeground(Color.white);
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout("default:grow", "fill:default, fill:default:grow"));

    //======== menuBar ========
    {

        //======== menuFile ========
        {
            menuFile.setText("File");
            menuFile.setMnemonic('F');

            //---- mnuNewConfig ----
            mnuNewConfig.setText("New Configuration...");
            mnuNewConfig.setMnemonic('C');
            mnuNewConfig.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuNewConfigActionPerformed();
                }
            });
            menuFile.add(mnuNewConfig);

            //---- mnuOpenConfig ----
            mnuOpenConfig.setText("Open Configuration...");
            mnuOpenConfig.setMnemonic('C');
            mnuOpenConfig.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuOpenConfigActionPerformed();
                }
            });
            menuFile.add(mnuOpenConfig);

            //---- mnuSaveConfigFile ----
            mnuSaveConfigFile.setText("Save Configuration");
            mnuSaveConfigFile.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, KeyEvent.CTRL_MASK));
            mnuSaveConfigFile.setMnemonic('S');
            mnuSaveConfigFile.setEnabled(false);
            mnuSaveConfigFile.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuSaveConfigFileActionPerformed();
                }
            });
            menuFile.add(mnuSaveConfigFile);

            //---- mnuSaveConfigAs ----
            mnuSaveConfigAs.setText("Save Configuration As...");
            mnuSaveConfigAs.setMnemonic('A');
            mnuSaveConfigAs.setEnabled(false);
            mnuSaveConfigAs.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuSaveConfigAsActionPerformed();
                }
            });
            menuFile.add(mnuSaveConfigAs);
            menuFile.addSeparator();

            //---- mnuExit ----
            mnuExit.setText("Exit");
            mnuExit.setMnemonic('E');
            mnuExit.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuExitActionPerformed();
                }
            });
            menuFile.add(mnuExit);
        }
        menuBar.add(menuFile);

        //======== menuTools ========
        {
            menuTools.setText("Tools");
            menuTools.setMnemonic('T');

            //---- mnuConfiguration ----
            mnuConfiguration.setText("Edit Configuration...");
            mnuConfiguration.setMnemonic('E');
            mnuConfiguration.setEnabled(false);
            mnuConfiguration.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuConfigurationActionPerformed();
                }
            });
            menuTools.add(mnuConfiguration);
            menuTools.addSeparator();

            //---- mnuCreateFileJndi ----
            mnuCreateFileJndi.setText("Create a File Based JNDI...");
            mnuCreateFileJndi.setMnemonic('C');
            mnuCreateFileJndi.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuCreateFileJndiActionPerformed();
                }
            });
            menuTools.add(mnuCreateFileJndi);

            //======== mnuMessages ========
            {
                mnuMessages.setText("Messages");
                mnuMessages.setSelectedIcon(null);
                mnuMessages.setMnemonic('M');

                //---- mnuNewMessages ----
                mnuNewMessages.setText("New Message File...");
                mnuNewMessages.setMnemonic('N');
                mnuNewMessages.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        mnuNewMessagesActionPerformed();
                    }
                });
                mnuMessages.add(mnuNewMessages);

                //---- mnuOpenMessages ----
                mnuOpenMessages.setText("Edit Message File...");
                mnuOpenMessages.setMnemonic('E');
                mnuOpenMessages.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        mnuOpenMessagesActionPerformed();
                    }
                });
                mnuMessages.add(mnuOpenMessages);

                //---- mnuMsgEdit ----
                mnuMsgEdit.setText("Edit Current Messages...");
                mnuMsgEdit.setMnemonic('M');
                mnuMsgEdit.setEnabled(false);
                mnuMsgEdit.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        mnuMsgEditActionPerformed();
                    }
                });
                mnuMessages.add(mnuMsgEdit);
            }
            menuTools.add(mnuMessages);

            //---- mnuShowConfig ----
            mnuShowConfig.setText("Show Configuration");
            mnuShowConfig.setMnemonic('S');
            mnuShowConfig.setEnabled(false);
            mnuShowConfig.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuShowConfigActionPerformed();
                }
            });
            menuTools.add(mnuShowConfig);

            //---- mnuGenCommandLine ----
            mnuGenCommandLine.setText("Display Command Line");
            mnuGenCommandLine.setEnabled(false);
            mnuGenCommandLine.setMnemonic('D');
            mnuGenCommandLine.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuGenCommandLineActionPerformed();
                }
            });
            menuTools.add(mnuGenCommandLine);
        }
        menuBar.add(menuTools);

        //======== menuHelp ========
        {
            menuHelp.setText("Help");
            menuHelp.setMnemonic('H');

            //---- mnuShowHelp ----
            mnuShowHelp.setText("Help Topics...");
            mnuShowHelp.setIcon(
                    new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/menu-help.png")));
            mnuShowHelp.setMnemonic('H');
            mnuShowHelp.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuShowHelpActionPerformed();
                }
            });
            menuHelp.add(mnuShowHelp);

            //---- mnuLicense ----
            mnuLicense.setText("License...");
            mnuLicense.setMnemonic('L');
            mnuLicense.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuLicenseActionPerformed();
                }
            });
            menuHelp.add(mnuLicense);
            menuHelp.addSeparator();

            //---- mnuAbout ----
            mnuAbout.setText("About");
            mnuAbout.setMnemonic('A');
            mnuAbout.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    mnuAboutActionPerformed();
                }
            });
            menuHelp.add(mnuAbout);
        }
        menuBar.add(menuHelp);
    }
    setJMenuBar(menuBar);

    //======== toolBarParent ========
    {
        toolBarParent.setFloatable(false);
        toolBarParent.setBorderPainted(false);
        toolBarParent.setBorder(null);

        //======== toolBar ========
        {
            toolBar.setForeground(SystemColor.control);

            //---- btnNewConfig ----
            btnNewConfig.setToolTipText("New Configuration");
            btnNewConfig.setIcon(
                    new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/fileNew.png")));
            btnNewConfig.setMargin(new Insets(2, 2, 1, 1));
            btnNewConfig.setMaximumSize(new Dimension(25, 25));
            btnNewConfig.setForeground(SystemColor.menu);
            btnNewConfig.setMinimumSize(new Dimension(25, 25));
            btnNewConfig.setPreferredSize(new Dimension(25, 25));
            btnNewConfig.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    btnNewConfigActionPerformed();
                }
            });
            toolBar.add(btnNewConfig);

            //---- btnOpenConfig ----
            btnOpenConfig.setIcon(
                    new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/fileOpen.png")));
            btnOpenConfig.setToolTipText("Open Configuration");
            btnOpenConfig.setMargin(new Insets(5, 2, 1, 1));
            btnOpenConfig.setForeground(SystemColor.menu);
            btnOpenConfig.setMaximumSize(new Dimension(25, 25));
            btnOpenConfig.setMinimumSize(new Dimension(25, 25));
            btnOpenConfig.setPreferredSize(new Dimension(25, 25));
            btnOpenConfig.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    btnOpenConfigActionPerformed();
                }
            });
            toolBar.add(btnOpenConfig);

            //---- btnSaveConfig ----
            btnSaveConfig.setIcon(
                    new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/fileSave2.png")));
            btnSaveConfig.setToolTipText("Save Configuration");
            btnSaveConfig.setMargin(new Insets(1, 2, 1, 1));
            btnSaveConfig.setEnabled(false);
            btnSaveConfig.setMaximumSize(new Dimension(25, 25));
            btnSaveConfig.setMinimumSize(new Dimension(25, 25));
            btnSaveConfig.setPreferredSize(new Dimension(25, 25));
            btnSaveConfig.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    btnConfigSaveActionPerformed();
                }
            });
            toolBar.add(btnSaveConfig);

            //---- btnConfigEdit ----
            btnConfigEdit.setToolTipText("Edit Current Configuration");
            btnConfigEdit.setIcon(
                    new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/fileEdit.png")));
            btnConfigEdit.setEnabled(false);
            btnConfigEdit.setMargin(new Insets(2, 2, 1, 1));
            btnConfigEdit.setMaximumSize(new Dimension(25, 25));
            btnConfigEdit.setMinimumSize(new Dimension(25, 25));
            btnConfigEdit.setPreferredSize(new Dimension(25, 25));
            btnConfigEdit.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    btnConfigEditActionPerformed();
                }
            });
            toolBar.add(btnConfigEdit);
            toolBar.addSeparator();

            //---- btnShowConf ----
            btnShowConf.setToolTipText("Display Configuration");
            btnShowConf.setIcon(
                    new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/information.png")));
            btnShowConf.setEnabled(false);
            btnShowConf.setMargin(new Insets(2, 2, 1, 1));
            btnShowConf.setMaximumSize(new Dimension(25, 25));
            btnShowConf.setMinimumSize(new Dimension(25, 25));
            btnShowConf.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    btnShowConfActionPerformed();
                }
            });
            toolBar.add(btnShowConf);

            //---- btnGenCommandLine ----
            btnGenCommandLine.setIcon(
                    new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/console.png")));
            btnGenCommandLine.setMargin(new Insets(2, 2, 1, 1));
            btnGenCommandLine.setEnabled(false);
            btnGenCommandLine.setToolTipText("Display Command Line Arguments");
            btnGenCommandLine.setMaximumSize(new Dimension(25, 25));
            btnGenCommandLine.setMinimumSize(new Dimension(25, 25));
            btnGenCommandLine.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    btnGenCommandLineActionPerformed();
                }
            });
            toolBar.add(btnGenCommandLine);

            //---- btnCreateFileJndi ----
            btnCreateFileJndi.setIcon(
                    new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/jndiCreate.png")));
            btnCreateFileJndi.setMargin(new Insets(2, 2, 1, 1));
            btnCreateFileJndi.setMaximumSize(new Dimension(25, 25));
            btnCreateFileJndi.setMinimumSize(new Dimension(25, 25));
            btnCreateFileJndi.setToolTipText("Create File Based JNDI");
            btnCreateFileJndi.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    btnCreateFileJndiActionPerformed();
                }
            });
            toolBar.add(btnCreateFileJndi);
            toolBar.addSeparator();

            //---- btnHelp ----
            btnHelp.setIcon(
                    new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/menu-help.png")));
            btnHelp.setMargin(new Insets(1, 2, 1, 1));
            btnHelp.setToolTipText("Output JmsStream Help");
            btnHelp.setMaximumSize(new Dimension(25, 25));
            btnHelp.setMinimumSize(new Dimension(25, 25));
            btnHelp.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    btnHelpActionPerformed();
                }
            });
            toolBar.add(btnHelp);
        }
        toolBarParent.add(toolBar);
    }
    contentPane.add(toolBarParent, cc.xy(1, 1));

    //======== dialogPane ========
    {
        dialogPane.setBorder(Borders.createEmptyBorder("1dlu, 4dlu, 4dlu, 4dlu"));
        dialogPane.setLayout(new FormLayout("default:grow", "fill:default:grow, fill:default"));

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.createEmptyBorder("5dlu, 1dlu, 1dlu, 1dlu"));
            buttonBar.setLayout(new FormLayout(
                    "$button, $rgap, $button, $glue, [50dlu,default], $lcgap, $button, $rgap, default",
                    "pref"));

            //---- btnStart ----
            btnStart.setText("Start");
            btnStart.setIcon(new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/start.png")));
            btnStart.setEnabled(false);
            btnStart.setMaximumSize(new Dimension(80, 30));
            btnStart.setMinimumSize(new Dimension(80, 30));
            btnStart.setPreferredSize(new Dimension(80, 30));
            btnStart.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    btnStartActionPerformed();
                }
            });
            buttonBar.add(btnStart, cc.xy(1, 1));

            //---- btnStop ----
            btnStop.setText("Stop");
            btnStop.setEnabled(false);
            btnStop.setIcon(new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/stop.png")));
            btnStop.setPreferredSize(new Dimension(80, 30));
            btnStop.setMaximumSize(new Dimension(80, 30));
            btnStop.setMinimumSize(new Dimension(80, 30));
            btnStop.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    btnStopActionPerformed();
                }
            });
            buttonBar.add(btnStop, cc.xy(3, 1));

            //---- btnPauseScreen ----
            btnPauseScreen.setText("Pause Screen");
            btnPauseScreen.setMaximumSize(new Dimension(260, 30));
            btnPauseScreen.setMinimumSize(new Dimension(130, 30));
            btnPauseScreen.setPreferredSize(new Dimension(130, 30));
            btnPauseScreen
                    .setIcon(new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/pause.png")));
            btnPauseScreen.setToolTipText("Pause the JmsStream GUI display screen.");
            btnPauseScreen.addItemListener(new ItemListener() {
                public void itemStateChanged(ItemEvent e) {
                    btnPauseScreenItemStateChanged(e);
                }
            });
            buttonBar.add(btnPauseScreen, cc.xy(5, 1));

            //---- brnClearScreen ----
            brnClearScreen.setMaximumSize(new Dimension(260, 30));
            brnClearScreen.setMinimumSize(new Dimension(130, 30));
            brnClearScreen.setPreferredSize(new Dimension(130, 30));
            brnClearScreen.setText("Clear Screen");
            brnClearScreen.setToolTipText("Clear the JmsStream GUI display screen.");
            brnClearScreen
                    .setIcon(new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/clear.png")));
            brnClearScreen.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    brnClearScreenActionPerformed();
                }
            });
            buttonBar.add(brnClearScreen, cc.xy(7, 1));

            //======== panelMemory ========
            {
                panelMemory.setBorder(new EtchedBorder(EtchedBorder.RAISED));
                panelMemory.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
                panelMemory.setLayout(new BoxLayout(panelMemory, BoxLayout.X_AXIS));

                //---- lblMemory ----
                lblMemory.setText("100MB of 200MB");
                lblMemory.setMaximumSize(new Dimension(90, 20));
                lblMemory.setMinimumSize(new Dimension(90, 20));
                lblMemory.setPreferredSize(new Dimension(90, 20));
                lblMemory.setHorizontalAlignment(SwingConstants.TRAILING);
                lblMemory.setForeground(Color.darkGray);
                lblMemory.setRequestFocusEnabled(false);
                lblMemory.setAlignmentY(0.0F);
                lblMemory.setVerticalAlignment(SwingConstants.BOTTOM);
                panelMemory.add(lblMemory);

                //---- btnGc ----
                btnGc.setMargin(new Insets(2, 2, 2, 2));
                btnGc.setIcon(new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/gc.png")));
                btnGc.setToolTipText("Run JVM Garbage Collector");
                btnGc.setBorderPainted(false);
                btnGc.setOpaque(false);
                btnGc.setContentAreaFilled(false);
                btnGc.setFocusPainted(false);
                btnGc.setRolloverIcon(
                        new ImageIcon(getClass().getResource("/com/tibco/util/gui/resources/gc_pushed.png")));
                btnGc.setAlignmentY(0.0F);
                btnGc.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        btnGcActionPerformed();
                    }
                });
                panelMemory.add(btnGc);
            }
            buttonBar.add(panelMemory, cc.xy(9, 1));
        }
        dialogPane.add(buttonBar, cc.xy(1, 2, CellConstraints.FILL, CellConstraints.DEFAULT));

        //======== panelMain ========
        {
            panelMain.setBorder(new BevelBorder(BevelBorder.LOWERED));
            panelMain.setViewportBorder(new BevelBorder(BevelBorder.RAISED));
            panelMain.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            panelMain.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);

            //======== panelOutput ========
            {
                panelOutput
                        .setLayout(new FormLayout("default:grow, default", "fill:default:grow, fill:default"));

                //---- txtOutput ----
                txtOutput.setBackground(Color.black);
                txtOutput.setForeground(Color.lightGray);
                txtOutput.setBorder(new BevelBorder(BevelBorder.LOWERED));
                txtOutput.setAutoscrolls(false);
                txtOutput.setDoubleBuffered(true);
                txtOutput.setCaretColor(Color.white);
                txtOutput.setFocusCycleRoot(true);
                txtOutput.setFont(new Font("Monospaced", Font.PLAIN, 12));
                panelOutput.add(txtOutput, cc.xy(1, 1));
                panelOutput.add(hSpacer, cc.xy(2, 1));
                panelOutput.add(vSpacer1, cc.xy(1, 2));
            }
            panelMain.setViewportView(panelOutput);
        }
        dialogPane.add(panelMain, cc.xy(1, 1, CellConstraints.FILL, CellConstraints.FILL));
    }
    contentPane.add(dialogPane, cc.xy(1, 2, CellConstraints.FILL, CellConstraints.FILL));
    setSize(990, 600);
    setLocationRelativeTo(null);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents

    // Now create a new TextAreaOutputStream to write to our JTextArea control and wrap a
    // PrintStream around it to support the println/printf methods.
    _taosTextArea = new TextAreaOutputStream(txtOutput);
    try {
        PrintStream psOut = new PrintStream(_taosTextArea, true, "UTF-8");

        // Redirect standard output stream to the TextAreaOutputStream
        System.setOut(psOut);
        // Redirect standard error stream to the TextAreaOutputStream
        System.setErr(psOut);
    } catch (UnsupportedEncodingException uee) {
        uee.printStackTrace();
    }

    // Set the Form Title
    this.setTitle(JmsStream.APP_NAME);
}

From source file:cz.vity.freerapid.gui.dialogs.MultipleSettingsDialog.java

@SuppressWarnings({ "deprecation" })
private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    //ResourceBundle bundle = ResourceBundle.getBundle("MultipleSettingsDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JLabel iconLabel = new JLabel();
    titleLabel = new JLabel();
    JLabel labelSize = new JLabel();
    fieldSize = new JTextField();
    JLabel labelDescription = new JLabel();
    JScrollPane scrollPane1 = new JScrollPane();
    descriptionArea = ComponentFactory.getTextArea();
    JPanel optionsPanel = new JPanel();
    JLabel saveToLabel = new JLabel();
    comboPath = new JComboBox();
    btnSelectPath = new JButton();
    JXButtonPanel buttonBar = new JXButtonPanel();
    okButton = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {/*from  w  w  w  .ja v  a  2 s .co m*/
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {

            //---- iconLabel ----
            iconLabel.setName("iconLabel");

            //---- titleLabel ----
            titleLabel.setName("titleLabel");
            titleLabel.setFont(new Font("Tahoma", Font.BOLD, 12));

            //---- labelSize ----
            labelSize.setName("labelSize");

            //---- fieldSize ----
            fieldSize.setBorder(null);
            fieldSize.setOpaque(false);
            fieldSize.setEditable(false);

            //---- labelDescription ----
            labelDescription.setName("labelDescription");

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(descriptionArea);
            }

            //======== optionsPanel ========
            {

                //---- saveToLabel ----
                saveToLabel.setName("saveToLabel");
                saveToLabel.setLabelFor(comboPath);

                //---- comboPath ----
                comboPath.setEditable(true);

                //---- btnSelectPath ----
                btnSelectPath.setName("btnSelectPath");

                PanelBuilder optionsPanelBuilder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        RowSpec.decodeSpecs("default")), optionsPanel);

                optionsPanelBuilder.add(saveToLabel, cc.xy(1, 1));
                optionsPanelBuilder.add(comboPath, cc.xy(3, 1));
                optionsPanelBuilder.add(btnSelectPath, cc.xy(5, 1));
            }

            PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(49)), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(min;70dlu)") },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.TOP, Sizes.PREFERRED, FormSpec.NO_GROW),
                            FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                            FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL,
                                    Sizes.bounded(Sizes.PREFERRED, Sizes.dluY(40), Sizes.dluY(50)),
                                    FormSpec.DEFAULT_GROW),
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC }),
                    contentPanel);

            contentPanelBuilder.add(iconLabel,
                    cc.xywh(1, 1, 1, 5, CellConstraints.DEFAULT, CellConstraints.FILL));
            contentPanelBuilder.add(titleLabel, cc.xywh(3, 1, 5, 1));
            contentPanelBuilder.add(labelSize, cc.xy(3, 3));
            contentPanelBuilder.add(fieldSize, cc.xywh(5, 3, 3, 1));
            contentPanelBuilder.add(labelDescription, cc.xy(1, 7));
            contentPanelBuilder.add(scrollPane1, cc.xywh(1, 9, 7, 1));
            contentPanelBuilder.add(optionsPanel, cc.xywh(1, 11, 7, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0));

            //---- okButton ----
            okButton.setName("okButton");

            //---- cancelButton ----
            cancelButton.setName("cancelButton");

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.UNRELATED_GAP_COLSPEC, ColumnSpec.decode("max(pref;42dlu)"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                    RowSpec.decodeSpecs("fill:pref")), buttonBar);
            ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 3, 5 } });

            buttonBarBuilder.add(okButton, cc.xy(3, 1));
            buttonBarBuilder.add(cancelButton, cc.xy(5, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
}

From source file:cz.vity.freerapid.gui.dialogs.SubmitErrorDialog.java

@SuppressWarnings({ "deprecation" })
private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JLabel labelName = new JLabel();
    fieldName = ComponentFactory.getTextField();
    JLabel labelEmail = new JLabel();
    fieldEmail = ComponentFactory.getTextField();
    JLabel labelComment = new JLabel();
    JScrollPane scrollPane1 = new JScrollPane();
    commentTextArea = ComponentFactory.getTextArea();
    JLabel labelDescribeInfo = new JLabel();
    JPanel buttonBar = new JPanel();
    btnConnection = new JButton();
    btnOk = new JButton();
    btnCancel = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========

    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {//from w  w  w .  j a  va  2s. c  om
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setName("dialogPane");
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setName("contentPanel");

            //---- labelName ----
            labelName.setLabelFor(fieldName);
            labelName.setName("labelName");

            //---- fieldName ----
            fieldName.setColumns(15);
            fieldName.setName("fieldName");

            //---- labelEmail ----
            labelEmail.setLabelFor(fieldEmail);
            labelEmail.setName("labelEmail");

            //---- fieldEmail ----
            fieldEmail.setColumns(15);
            fieldEmail.setName("fieldEmail");

            //---- labelComment ----
            labelComment.setLabelFor(commentTextArea);
            labelComment.setName("labelComment");

            //======== scrollPane1 ========
            {
                scrollPane1.setName("scrollPane1");

                //---- commentTextArea ----
                commentTextArea.setRows(10);
                commentTextArea.setLineWrap(true);
                commentTextArea.setName("commentTextArea");
                scrollPane1.setViewportView(commentTextArea);
            }

            //---- labelDescribeInfo ----
            labelDescribeInfo.setName("labelDescribeInfo");

            PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC }),
                    contentPanel);

            contentPanelBuilder.add(labelName, cc.xy(1, 1));
            contentPanelBuilder.add(fieldName, cc.xy(3, 1));
            contentPanelBuilder.add(labelEmail, cc.xy(5, 1));
            contentPanelBuilder.add(fieldEmail, cc.xy(7, 1));
            contentPanelBuilder.add(labelComment,
                    cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));
            contentPanelBuilder.add(scrollPane1, cc.xywh(3, 3, 5, 1));
            contentPanelBuilder.add(labelDescribeInfo, cc.xywh(3, 5, 5, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.BUTTON_BAR_PAD);
            buttonBar.setName("buttonBar");

            //---- button1 ----
            btnConnection.setName("btnConnection");

            //---- okButton ----
            btnOk.setName("okButton");

            //---- cancelButton ----

            btnCancel.setName("cancelButton");

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(min;10dlu):grow"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.BUTTON_COLSPEC,
                            FormSpecs.RELATED_GAP_COLSPEC, ComponentFactory.BUTTON_COLSPEC },
                    RowSpec.decodeSpecs("pref")), buttonBar);

            buttonBarBuilder.add(btnConnection,
                    cc.xywh(2, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
            buttonBarBuilder.add(btnOk, cc.xy(6, 1));
            buttonBarBuilder.add(btnCancel, cc.xy(8, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:de.dal33t.powerfolder.ui.information.folder.files.versions.FileVersionsPanel.java

License:Open Source License

private Component createButtonPanel() {
    FormLayout layout = new FormLayout("pref, fill:0:grow, pref", "pref");
    DefaultFormBuilder builder = new DefaultFormBuilder(layout);
    CellConstraints cc = new CellConstraints();

    builder.add(new JButton(restoreAction), cc.xy(1, 1));
    builder.add(currentVersionPanel, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.BOTTOM));
    return builder.getPanel();
}