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

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

Introduction

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

Prototype

public CellConstraints xyw(int col, int row, int colSpan, Alignment colAlign, Alignment rowAlign) 

Source Link

Document

Sets the column, row, width, and height; sets the horizontal and vertical alignment using the specified alignment objects.

Usage

From source file:ca.parkie.portfinder.client.MainWindow.java

License:GNU General Public 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$$$() {
    contentPane = new JPanel();
    contentPane.setLayout(new FormLayout("fill:d:grow", "center:d:grow"));
    final JPanel panel1 = new JPanel();
    panel1.setLayout(new FormLayout(
            "fill:d:noGrow,left:4dlu:noGrow,fill:100px:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:100px:grow",
            "center:30px:noGrow,top:3dlu:noGrow,center:30px:noGrow,top:3dlu:noGrow,center:30px:noGrow,top:3dlu:noGrow,center:30px:noGrow"));
    panel1.setPreferredSize(new Dimension(520, 160));
    CellConstraints cc = new CellConstraints();
    contentPane.add(panel1, new CellConstraints(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL,
            new Insets(11, 11, 11, 11)));
    final JLabel label1 = new JLabel();
    label1.setFont(new Font(label1.getFont().getName(), label1.getFont().getStyle(), 14));
    label1.setText("Room:");
    panel1.add(label1, cc.xy(1, 1));
    roomTextField = new JTextField();
    roomTextField.setFont(new Font(roomTextField.getFont().getName(), roomTextField.getFont().getStyle(), 14));
    panel1.add(roomTextField, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.CENTER));
    sendButton = new JButton();
    sendButton.setEnabled(false);
    sendButton.setFont(new Font(sendButton.getFont().getName(), sendButton.getFont().getStyle(), 14));
    sendButton.setText("Send");
    panel1.add(sendButton, cc.xyw(1, 7, 7, CellConstraints.DEFAULT, CellConstraints.FILL));
    final JLabel label2 = new JLabel();
    label2.setFont(new Font(label2.getFont().getName(), label2.getFont().getStyle(), 14));
    label2.setText("Port Number:");
    panel1.add(label2, cc.xy(5, 1));
    final JLabel label3 = new JLabel();
    label3.setFont(new Font(label3.getFont().getName(), label3.getFont().getStyle(), 14));
    label3.setText("Interface:");
    panel1.add(label3, cc.xy(1, 3));
    encodedMacLabel = new JLabel();
    encodedMacLabel
            .setFont(new Font(encodedMacLabel.getFont().getName(), encodedMacLabel.getFont().getStyle(), 14));
    encodedMacLabel.setText("Invalid");
    panel1.add(encodedMacLabel, cc.xyw(3, 5, 5, CellConstraints.LEFT, CellConstraints.DEFAULT));
    interfaceLabel = new JLabel();
    interfaceLabel
            .setFont(new Font(interfaceLabel.getFont().getName(), interfaceLabel.getFont().getStyle(), 14));
    interfaceLabel.setText("Unknown");
    panel1.add(interfaceLabel, cc.xy(3, 3, CellConstraints.LEFT, CellConstraints.DEFAULT));
    final JLabel label4 = new JLabel();
    label4.setFont(new Font(label4.getFont().getName(), label4.getFont().getStyle(), 14));
    label4.setText("Encoded MAC:");
    panel1.add(label4, cc.xy(1, 5));
    final JLabel label5 = new JLabel();
    label5.setFont(new Font(label5.getFont().getName(), label5.getFont().getStyle(), 14));
    label5.setText("Link Status:");
    panel1.add(label5, cc.xy(5, 3));
    linkStatusLabel = new JLabel();
    linkStatusLabel
            .setFont(new Font(linkStatusLabel.getFont().getName(), linkStatusLabel.getFont().getStyle(), 14));
    linkStatusLabel.setForeground(new Color(-3407872));
    linkStatusLabel.setText("Unknown");
    panel1.add(linkStatusLabel, cc.xy(7, 3, CellConstraints.LEFT, CellConstraints.DEFAULT));
    portNumberTextField = new JTextField();
    panel1.add(portNumberTextField, cc.xy(7, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    label1.setLabelFor(roomTextField);
    label2.setLabelFor(portNumberTextField);
}

From source file:com.archivas.clienttools.arcmover.gui.ssl.SSLCertificateForm.java

License:Open Source License

/**
 * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR
 * call it in your code!/*from  ww  w.j a  v a2 s.co  m*/
 *
 * @noinspection ALL
 */
private void $$$setupUI$$$() {
    contentPane = new JPanel();
    contentPane.setLayout(new FormLayout("fill:d:grow", "center:d:grow"));
    contentPane.setMinimumSize(new Dimension(400, 390));
    tabbedPane1 = new JTabbedPane();
    tabbedPane1.setMinimumSize(new Dimension(400, 200));
    tabbedPane1.setOpaque(false);
    tabbedPane1.setPreferredSize(new Dimension(400, 200));
    CellConstraints cc = new CellConstraints();
    contentPane.add(tabbedPane1, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    final JPanel panel1 = new JPanel();
    panel1.setLayout(new FormLayout("fill:6dlu:noGrow,right:d:noGrow,fill:d:grow,left:5dlu:noGrow",
            "center:7dlu:noGrow,center:max(d;4px):noGrow,center:d:noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:8dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:16px:noGrow,top:8dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:8dlu:noGrow,center:max(d;4px):noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,top:15px:grow,top:4dlu:noGrow,center:d:grow,center:18px:noGrow,top:15dlu:noGrow"));
    panel1.setMinimumSize(new Dimension(400, 220));
    panel1.setPreferredSize(new Dimension(400, 220));
    tabbedPane1.addTab("General", panel1);
    final JLabel label1 = new JLabel();
    label1.setName("Issued to:");
    label1.setText("Common Name (CN)");
    panel1.add(label1, cc.xy(2, 3, CellConstraints.RIGHT, CellConstraints.DEFAULT));
    issuedToCommonNameLabel = new JLabel();
    issuedToCommonNameLabel.setText("Issued to Value");
    panel1.add(issuedToCommonNameLabel, cc.xy(3, 3));
    final JLabel label2 = new JLabel();
    label2.setText("Common Name (CN)");
    panel1.add(label2, cc.xy(2, 14));
    issuedByCommonNameLabel = new JLabel();
    issuedByCommonNameLabel.setText("Issued by Value");
    panel1.add(issuedByCommonNameLabel, cc.xy(3, 14));
    final JLabel label3 = new JLabel();
    label3.setText("Valid From");
    panel1.add(label3, cc.xy(2, 22));
    validDateRangeLabel = new JLabel();
    validDateRangeLabel.setAutoscrolls(false);
    validDateRangeLabel.setText("Valid from Value");
    panel1.add(validDateRangeLabel, cc.xy(3, 22));
    final JLabel label4 = new JLabel();
    label4.setText("MD5 Fingerprint");
    panel1.add(label4, cc.xy(2, 27));
    md5FingerprintLabel = new JLabel();
    md5FingerprintLabel.setAutoscrolls(true);
    md5FingerprintLabel.setEnabled(true);
    md5FingerprintLabel.setText("MD5 Fingerprint value");
    panel1.add(md5FingerprintLabel, cc.xy(3, 27));
    final JLabel label5 = new JLabel();
    label5.setText("Organization (O)");
    panel1.add(label5, cc.xy(2, 5));
    issuedToOrganizationLabel = new JLabel();
    issuedToOrganizationLabel.setText("Organization Value");
    panel1.add(issuedToOrganizationLabel, cc.xy(3, 5));
    final JLabel label6 = new JLabel();
    label6.setFont(new Font(label6.getFont().getName(), Font.BOLD, label6.getFont().getSize()));
    label6.setText("Issued To");
    panel1.add(label6, cc.xy(2, 2, CellConstraints.LEFT, CellConstraints.DEFAULT));
    final JLabel label7 = new JLabel();
    label7.setFont(new Font(label7.getFont().getName(), Font.BOLD, label7.getFont().getSize()));
    label7.setText("Issued By");
    panel1.add(label7, cc.xy(2, 11, CellConstraints.LEFT, CellConstraints.DEFAULT));
    final JLabel label8 = new JLabel();
    label8.setText("Organization (O)");
    panel1.add(label8, cc.xy(2, 16));
    issuedByOrganizationLabel = new JLabel();
    issuedByOrganizationLabel.setText("Organization Value");
    panel1.add(issuedByOrganizationLabel, cc.xy(3, 16));
    final JLabel label9 = new JLabel();
    label9.setText("Organizational Unit (OU)");
    panel1.add(label9, cc.xy(2, 7));
    issuedToOrganizationalUnitLabel = new JLabel();
    issuedToOrganizationalUnitLabel.setText("Organizational Unit Value");
    panel1.add(issuedToOrganizationalUnitLabel, cc.xy(3, 7));
    final JLabel label10 = new JLabel();
    label10.setText("Organizational Unit (OU)");
    panel1.add(label10, cc.xy(2, 18));
    issuedByOrganizationalUnitLabel = new JLabel();
    issuedByOrganizationalUnitLabel.setText("Organizational Unit Value");
    panel1.add(issuedByOrganizationalUnitLabel, cc.xy(3, 18));
    final JLabel label11 = new JLabel();
    label11.setFont(new Font(label11.getFont().getName(), Font.BOLD, label11.getFont().getSize()));
    label11.setText("Validity");
    panel1.add(label11, cc.xy(2, 20, CellConstraints.LEFT, CellConstraints.DEFAULT));
    final JLabel label12 = new JLabel();
    label12.setFont(new Font(label12.getFont().getName(), Font.BOLD, label12.getFont().getSize()));
    label12.setText("Fingerprints");
    panel1.add(label12, cc.xy(2, 24, CellConstraints.LEFT, CellConstraints.DEFAULT));
    final JLabel label13 = new JLabel();
    label13.setText("Serial Number");
    panel1.add(label13, cc.xy(2, 9));
    serialNumberLabel = new JLabel();
    serialNumberLabel.setEnabled(true);
    serialNumberLabel.setText("Serial Number Value");
    panel1.add(serialNumberLabel, cc.xy(3, 9));
    final JLabel label14 = new JLabel();
    label14.setText("SHA1 Fingerprint");
    panel1.add(label14, cc.xy(2, 25));
    shaFingerprintLabel = new JLabel();
    shaFingerprintLabel.setText("SHA1 Fingerprint vale");
    panel1.add(shaFingerprintLabel, cc.xy(3, 25));
    permStoreCertCheckBox = new JCheckBox();
    permStoreCertCheckBox.setEnabled(false);
    permStoreCertCheckBox.setText("Permanently store this exception");
    permStoreCertCheckBox.setToolTipText("Save this exception permanently");
    permStoreCertCheckBox.setVisible(true);
    panel1.add(permStoreCertCheckBox, cc.xy(2, 33));
    final JLabel label15 = new JLabel();
    label15.setFont(new Font(label15.getFont().getName(), Font.BOLD, label15.getFont().getSize()));
    label15.setText("Other Warnings");
    panel1.add(label15, cc.xy(2, 30, CellConstraints.LEFT, CellConstraints.DEFAULT));
    otherWarnings = new JTextPane();
    otherWarnings.setBackground(UIManager.getColor("Label.background"));
    otherWarnings.setEditable(false);
    panel1.add(otherWarnings, cc.xyw(2, 32, 2, CellConstraints.CENTER, CellConstraints.CENTER));
    final JPanel panel2 = new JPanel();
    panel2.setLayout(new FormLayout("fill:d:grow", "center:d:grow"));
    tabbedPane1.addTab("Details", panel2);
    final JScrollPane scrollPane1 = new JScrollPane();
    panel2.add(scrollPane1, cc.xy(1, 1, CellConstraints.FILL, CellConstraints.FILL));
    detailsTextArea = new JTextArea();
    detailsTextArea.setEditable(false);
    detailsTextArea.setEnabled(true);
    scrollPane1.setViewportView(detailsTextArea);
}

From source file:com.atlassian.theplugin.idea.jira.PerformIssueActionForm.java

License:Apache License

private void createContent(final List<JIRAActionField> fieldList) {

    String columns = "3dlu, right:pref, 3dlu, fill:1dlu:grow, 3dlu";
    String rows = "3dlu";

    Collection<JIRAActionField> sortedFieldList = JiraActionFieldType.sortFieldList(fieldList);

    JIRAServerModel jiraServerModel = IdeaHelper.getJIRAServerModel(project);

    List<ActionFieldEditor> editors = Lists.newArrayList();
    List<String> unsupportedFields = Lists.newArrayList();

    for (JIRAActionField field : sortedFieldList) {

        ActionFieldEditor editor = null;
        String row = null;/*from   w  ww  . ja  va 2  s. c  om*/

        switch (JiraActionFieldType.getFieldTypeForFieldId(field)) {
        case SUMMARY:
            editor = new FieldTextField(issue.getSummary(), field);
            row = ", pref, 3dlu";
            break;
        case DESCRIPTION:
            editor = new FieldTextArea(Html2text.translate(issue.getWikiDescription()), field);
            row = ", fill:pref:grow, 3dlu";
            break;
        case ISSUE_TYPE:
            editor = new FieldIssueType(jiraServerModel, issue, field, this);
            row = ", p, 3dlu";
            break;
        case RESOLUTION:
            editor = new FieldResolution(jiraServerModel, issue, field, this);
            row = ", p, 3dlu";
            break;
        case ASSIGNEE:
            editor = new FieldUser(jiraServerModel, issue.getJiraServerData(), issue.getAssigneeId(), field);
            row = ", p, 3dlu";
            break;
        case PRIORITY:
            editor = new FieldPriority(jiraServerModel, issue, field, this);
            row = ", p, 3dlu";
            break;
        case VERSIONS:
            editor = new FieldAffectsVersion(jiraServerModel, issue, field, this);
            row = ", p, 3dlu";
            break;
        case FIX_VERSIONS:
            editor = new FieldFixForVersion(jiraServerModel, issue, field, this);
            row = ", p, 3dlu";
            break;
        case COMPONENTS:
            editor = new FieldComponents(jiraServerModel, issue, field, this);
            row = ", p, 3dlu";
            break;
        case REPORTER:
            editor = new FieldUser(jiraServerModel, issue.getJiraServerData(), issue.getReporterId(), field);
            row = ", p, 3dlu";
            break;
        case ENVIRONMENT:
            //                    editor = new FieldTextArea(field.getValues().get(0), field);
            editor = new FieldTextArea(Html2text.translate(issue.getEnvironment()), field);
            row = ", fill:pref:grow, 3dlu";
            break;
        case TIMETRACKING:
            editor = new FieldTimeTracking(field.getValues().get(0), issue, field, this);
            row = ", p, 3dlu";
            break;
        case DUE_DATE:
            String content = "";
            if (field.getValues() != null && field.getValues().size() > 0) {
                content = field.getValues().get(0);
            }
            editor = new FieldDueDate(content, field, this);
            row = ", p, 3dlu";
            break;
        case CUSTOM_FIELD:
            for (JiraCustomField custom : issue.getCustomFields()) {
                if (custom.getId().equals(field.getFieldId())) {
                    List<String> values = custom.getValues();
                    String val = values != null && values.size() > 0 ? values.get(0) : null;
                    switch (custom.getTypeKey()) {
                    case NUMERIC:
                        editor = new FieldTextField(val, field);
                        row = ", p, 3dlu";
                        break;
                    case TEXT:
                        editor = new FieldTextField(val, field);
                        row = ", p, 3dlu";
                        break;
                    case TEXT_AREA:
                        //                                    editor = new FieldEditorPane(custom.getValues().get(0).replaceAll("<br/>", "\n"), field, true);
                        editor = new FieldTextArea(val != null ? val.replaceAll("<br/>", "") : "", field);
                        row = ", p, 3dlu";
                        break;
                    case DATE_PICKER:
                        editor = new FieldDueDate(custom.getFormattedValue(), field, this);
                        row = ", p, 3dlu";
                        break;
                    case URL:
                        editor = new FieldTextField(custom.getFormattedValue(), field);
                        row = ", p, 3dlu";
                    case UNSUPPORTED:
                    default:
                        break;
                    }
                }
            }
            break;
        case UNSUPPORTED:
        default:
            unsupportedFields.add(field.getName());
            break;
        }

        if (editor != null) {
            editors.add(editor);
            rows += row;
        }
    }

    rows += ", fill:pref:grow, 3dlu"; // Comments text area

    if (!unsupportedFields.isEmpty()) {
        rows += ", pref, 3dlu"; // warning status line about not handled
    }

    contentPanel.setLayout(new FormLayout(columns, rows));
    final CellConstraints cc = new CellConstraints();

    int y = 2;

    for (ActionFieldEditor editor : editors) {
        final JLabel label = new JLabel(editor.getFieldName() + ":");
        contentPanel.add(label, cc.xy(2, y, CellConstraints.RIGHT, CellConstraints.TOP));
        contentPanel.add(editor.getComponent(), cc.xy(4, y));
        createdFieldEditors.add(editor);
        y += 2;
    }

    final JLabel label = new JLabel("Comment :");
    contentPanel.add(label, cc.xy(2, y, CellConstraints.RIGHT, CellConstraints.TOP));
    // todo create field for Comments
    commentTextArea = new CommentTextArea();
    contentPanel.add(commentTextArea, cc.xy(4, y));

    y += 2;

    if (!unsupportedFields.isEmpty()) {
        String warning = issue.usesRest() ? "Unsupported fields (skipped): "
                : "Unsupported fields (original values copied): ";
        warning += StringUtils.join(unsupportedFields, ", ");
        contentPanel.add(new JLabel(warning), cc.xyw(2, y, 3, CellConstraints.LEFT, CellConstraints.CENTER));
    }

    SwingUtilities.invokeLater(new Runnable() {
        public void run() {
            contentPanel.validate();
        }
    });
}

From source file:com.atlassian.theplugin.idea.jira.WorkLogCreateAndMaybeDeactivateDialog.java

License:Apache License

private JPanel createChangesetPanel() {
    CellConstraints cc = new CellConstraints();

    changesetPanel = new JPanel(new FormLayout("3dlu, fill:pref:grow, 3dlu",
            "3dlu, fill:d:grow, 3dlu, pref, 3dlu, pref, 3dlu, pref, pref, pref, 3dlu"));
    changesetPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Changes"));
    changesPanel = new JPanel(new BorderLayout(0, 0));
    changesPanel.setPreferredSize(new Dimension(1, 1));
    changesetPanel.add(changesPanel, cc.xy(2, 2));

    JPanel labelPanel = new JPanel(new FormLayout("right:pref", "10dlu, pref:grow"));
    labelPanel.add(new JLabel("Comment:"), cc.xy(1, 1));

    copyIcon = IconLoader.getIcon("/actions/copy.png");
    copyButton = new JButton(copyIcon);
    copyButton.addActionListener(new ActionListener() {

        public void actionPerformed(ActionEvent actionEvent) {
            if (chkLogWork.isSelected()) {
                issueComment.setText(comment.getText());
            }/*from  w  w w .j a v a  2  s . co  m*/
        }
    });
    labelPanel.add(copyButton, cc.xy(1, 2, CellConstraints.CENTER, CellConstraints.CENTER));
    commentPanel = new JPanel(new FormLayout("right:pref, fill:d:grow", "40dlu"));
    commentPanel.add(labelPanel, cc.xy(1, 1, CellConstraints.FILL, CellConstraints.FILL));
    comment = new JTextArea();
    comment.setLineWrap(true);
    final JScrollPane scroll = new JScrollPane();
    scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    scroll.setViewportView(comment);

    commentPanel.add(scroll, cc.xyw(2, 1, 1, CellConstraints.FILL, CellConstraints.FILL));
    changesetPanel.add(commentPanel, cc.xy(2, 4));

    btnChangeSetDoNothing = new JRadioButton("Leave the current change list active",
            config.getActiveIssueAfterCommit() == AfterCommit.DO_NOTHING.ordinal());
    btnChangeSetDeactivate = new JRadioButton(
            "Deactivate the currently active change list (activate the default change list)",
            config.getActiveIssueAfterCommit() == AfterCommit.DEACTIVATE_CHANGESET.ordinal());
    btnChangeSetRemove = new JRadioButton(
            "Remove the currently active change list (activate the default change list)",
            config.getActiveIssueAfterCommit() == AfterCommit.REMOVE_CHANGESET.ordinal());

    changeSetButtonGroup = new ButtonGroup();
    changeSetButtonGroup.add(btnChangeSetDoNothing);
    changeSetButtonGroup.add(btnChangeSetDeactivate);
    changeSetButtonGroup.add(btnChangeSetRemove);

    if (changeSetButtonGroup.getSelection() == null) {
        btnChangeSetDoNothing.setSelected(true);
    }

    changesetPanel.add(new JLabel("After Commit:"), cc.xy(2, 6));
    changesetPanel.add(btnChangeSetDoNothing, cc.xy(2, 8));
    changesetPanel.add(btnChangeSetDeactivate, cc.xy(2, 9));
    changesetPanel.add(btnChangeSetRemove, cc.xy(2, 10));

    UIUtil.setEnabled(changesetPanel, chkCommitChanges.isSelected(), true);
    enableChangesetRadioButtons(true);

    return changesetPanel;
}

From source file:com.aw.swing.mvp.cmp.pick.FrmPick.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();
    pnlMain = new JPanel();
    pnlMain.setLayout(new FormLayout(
            "left:25dlu:noGrow,fill:52dlu:noGrow,left:8dlu:noGrow,fill:85dlu:noGrow,left:58dlu:noGrow,fill:10px:noGrow,fill:50dlu:noGrow,left:22dlu:noGrow",
            "center:12dlu:noGrow,top:4dlu:noGrow,center:12dlu:noGrow,top:5dlu:noGrow,center:18px:noGrow,top:4dlu:noGrow,top:12dlu:noGrow,center:188dlu:noGrow,top:4dlu:noGrow,top:12dlu:noGrow,center:max(d;4dlu):noGrow,center:12dlu:noGrow"));
    pnlMain.setMinimumSize(new Dimension(501, 425));
    pnlMain.setOpaque(true);
    pnlMain.setPreferredSize(new Dimension(501, 425));
    lblSearch = new JLabel();
    lblSearch.setText("Descripcin");
    lblSearch.setDisplayedMnemonic('D');
    lblSearch.setDisplayedMnemonicIndex(0);
    CellConstraints cc = new CellConstraints();
    pnlMain.add(lblSearch, cc.xy(2, 3, CellConstraints.RIGHT, CellConstraints.DEFAULT));
    btnSearch = new JButton();
    btnSearch.setText("Buscar");
    btnSearch.setMnemonic('B');
    btnSearch.setDisplayedMnemonicIndex(0);
    pnlMain.add(btnSearch, cc.xy(7, 3));
    footerPanel.setLayout(
            new FormLayout("fill:73dlu:noGrow,left:191dlu:noGrow,fill:48dlu:noGrow", "center:12dlu:noGrow"));
    pnlMain.add(footerPanel, cc.xyw(1, 12, 8, CellConstraints.DEFAULT, CellConstraints.FILL));
    lblF10 = new JLabel();
    lblF10.setText(" [F10] Aceptar");
    footerPanel.add(lblF10, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    lblEsc = new JLabel();
    lblEsc.setText(" [Esc] Salir");
    footerPanel.add(lblEsc, cc.xy(3, 1));
    sepCriterioBusqueda.setSeparatorTitle("Criterio de Bsqueda");
    pnlMain.add(sepCriterioBusqueda, cc.xyw(1, 1, 8, CellConstraints.FILL, CellConstraints.FILL));
    pnlTitGrid.setLayout(
            new FormLayout("fill:204dlu:noGrow,left:88dlu:noGrow,fill:15dlu:noGrow", "center:12dlu:noGrow"));
    pnlMain.add(pnlTitGrid, cc.xyw(1, 7, 8, CellConstraints.FILL, CellConstraints.FILL));
    lblTitGrid = new JLabel();
    lblTitGrid.setText(" Relacin :");
    lblTitGrid.setDisplayedMnemonic('R');
    lblTitGrid.setDisplayedMnemonicIndex(1);
    pnlTitGrid.add(lblTitGrid, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    chkSel = new JCheckBox();
    chkSel.setBackground(new Color(-16747105));
    chkSel.setText("");
    pnlTitGrid.add(chkSel, cc.xy(3, 1));
    final JScrollPane scrollPane1 = new JScrollPane();
    scrollPane1.setMinimumSize(new Dimension(454, 418));
    pnlMain.add(scrollPane1, cc.xyw(1, 8, 8, CellConstraints.FILL, CellConstraints.FILL));
    tblGrid = new JTable();
    tblGrid.setMinimumSize(new Dimension(450, 400));
    scrollPane1.setViewportView(tblGrid);
    final JLabel label1 = new JLabel();
    label1.setText(" Nmero de Registros:");
    pnlMain.add(label1, cc.xyw(1, 10, 3));
    lblNumRegistros = new JLabel();
    lblNumRegistros.setText("Label");
    pnlMain.add(lblNumRegistros, cc.xyw(4, 10, 3));
    txtSearch = new JTextField();
    pnlMain.add(txtSearch, cc.xyw(4, 3, 2, CellConstraints.FILL, CellConstraints.DEFAULT));
    lblSearch2 = new JLabel();
    lblSearch2.setText("Descripcin2");
    lblSearch2.setDisplayedMnemonic('D');
    lblSearch2.setDisplayedMnemonicIndex(0);
    pnlMain.add(lblSearch2, cc.xy(2, 5, CellConstraints.RIGHT, CellConstraints.DEFAULT));
    cmbAlmacen = new JComboBox();
    pnlMain.add(cmbAlmacen, cc.xy(4, 5));
    lblSearch.setLabelFor(txtSearch);
    lblSearch2.setLabelFor(txtSearch);
}

From source file:com.aw.swing.mvp.cmp.pick.FrmPickDocVenta.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  ww  .j  a va 2 s .c  o  m
 */
private void $$$setupUI$$$() {
    createUIComponents();
    pnlMain = new JPanel();
    pnlMain.setLayout(new FormLayout(
            "left:25dlu:noGrow,fill:52dlu:noGrow,left:8dlu:noGrow,fill:56dlu:noGrow,left:4dlu:noGrow,fill:36px:noGrow,fill:max(d;4px):noGrow,left:57dlu:noGrow,fill:10px:noGrow,fill:54dlu:noGrow,left:16dlu:noGrow",
            "center:12dlu:noGrow,top:4dlu:noGrow,center:12dlu:noGrow,top:6dlu:noGrow,top:12dlu:noGrow,top:4dlu:noGrow,center:12dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,top:12dlu:noGrow,center:146dlu:noGrow,top:4dlu:noGrow,top:12dlu:noGrow,center:max(d;4dlu):noGrow,center:12dlu:noGrow"));
    pnlMain.setMinimumSize(new Dimension(501, 425));
    pnlMain.setOpaque(true);
    pnlMain.setPreferredSize(new Dimension(501, 425));
    lblSearch = new JLabel();
    lblSearch.setHorizontalAlignment(4);
    lblSearch.setText("Descripcin");
    lblSearch.setDisplayedMnemonic('D');
    lblSearch.setDisplayedMnemonicIndex(0);
    CellConstraints cc = new CellConstraints();
    pnlMain.add(lblSearch, cc.xyw(1, 3, 2, CellConstraints.FILL, CellConstraints.DEFAULT));
    btnSearch = new JButton();
    btnSearch.setText("Buscar");
    btnSearch.setMnemonic('B');
    btnSearch.setDisplayedMnemonicIndex(0);
    pnlMain.add(btnSearch, cc.xy(10, 3));
    footerPanel.setLayout(
            new FormLayout("fill:73dlu:noGrow,left:191dlu:noGrow,fill:48dlu:noGrow", "center:12dlu:noGrow"));
    pnlMain.add(footerPanel, cc.xyw(1, 15, 11, CellConstraints.DEFAULT, CellConstraints.FILL));
    lblF10 = new JLabel();
    lblF10.setText(" [F10] Aceptar");
    footerPanel.add(lblF10, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    lblEsc = new JLabel();
    lblEsc.setText(" [Esc] Salir");
    footerPanel.add(lblEsc, cc.xy(3, 1));
    sepCriterioBusqueda.setSeparatorTitle("Criterio de Bsqueda");
    pnlMain.add(sepCriterioBusqueda, cc.xyw(1, 1, 11, CellConstraints.FILL, CellConstraints.FILL));
    pnlTitGrid.setLayout(
            new FormLayout("fill:204dlu:noGrow,left:88dlu:noGrow,fill:15dlu:noGrow", "center:12dlu:noGrow"));
    pnlMain.add(pnlTitGrid, cc.xyw(1, 10, 11, CellConstraints.FILL, CellConstraints.FILL));
    lblTitGrid = new JLabel();
    lblTitGrid.setText(" Relacin :");
    lblTitGrid.setDisplayedMnemonic('R');
    lblTitGrid.setDisplayedMnemonicIndex(1);
    pnlTitGrid.add(lblTitGrid, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    chkSel = new JCheckBox();
    chkSel.setBackground(new Color(-16747105));
    chkSel.setText("");
    pnlTitGrid.add(chkSel, cc.xy(3, 1));
    final JScrollPane scrollPane1 = new JScrollPane();
    scrollPane1.setMinimumSize(new Dimension(454, 418));
    pnlMain.add(scrollPane1, cc.xyw(1, 11, 11, CellConstraints.FILL, CellConstraints.FILL));
    tblGrid = new JTable();
    tblGrid.setMinimumSize(new Dimension(450, 400));
    scrollPane1.setViewportView(tblGrid);
    final JLabel label1 = new JLabel();
    label1.setText(" Nmero de Registros:");
    pnlMain.add(label1, cc.xyw(1, 13, 3));
    lblNumRegistros = new JLabel();
    lblNumRegistros.setText("Label");
    pnlMain.add(lblNumRegistros, cc.xyw(4, 13, 6));
    txtSearch = new JTextField();
    pnlMain.add(txtSearch, cc.xyw(4, 3, 5, CellConstraints.FILL, CellConstraints.DEFAULT));
    lblFecIni = new JLabel();
    lblFecIni.setText("Fecha del");
    pnlMain.add(lblFecIni, cc.xy(2, 5, CellConstraints.RIGHT, CellConstraints.CENTER));
    lblFecFin = new JLabel();
    lblFecFin.setText("al");
    pnlMain.add(lblFecFin, cc.xy(6, 5, CellConstraints.RIGHT, CellConstraints.CENTER));
    txtFecIni = new JTextField();
    pnlMain.add(txtFecIni, cc.xy(4, 5, CellConstraints.FILL, CellConstraints.DEFAULT));
    txtFecFin = new JTextField();
    pnlMain.add(txtFecFin, cc.xy(8, 5, CellConstraints.FILL, CellConstraints.DEFAULT));
    lblEntInm = new JLabel();
    lblEntInm.setHorizontalAlignment(4);
    lblEntInm.setText("Entrega Inmediata");
    pnlMain.add(lblEntInm, cc.xyw(1, 7, 2, CellConstraints.FILL, CellConstraints.CENTER));
    cmbEntInm = new JComboBox();
    pnlMain.add(cmbEntInm, cc.xy(4, 7));
    lblSearch.setLabelFor(txtSearch);
    lblFecIni.setLabelFor(txtSearch);
    lblFecFin.setLabelFor(txtSearch);
    lblEntInm.setLabelFor(txtSearch);
}

From source file:com.aw.swing.mvp.cmp.pick.FrmPickMovAlm.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 om*/
 */
private void $$$setupUI$$$() {
    createUIComponents();
    pnlMain = new JPanel();
    pnlMain.setLayout(new FormLayout(
            "left:25dlu:noGrow,fill:52dlu:noGrow,left:8dlu:noGrow,fill:43dlu:noGrow,left:10dlu:noGrow,fill:13px:noGrow,left:19dlu:noGrow,fill:8px:noGrow,left:56dlu:noGrow,fill:10px:noGrow,fill:50dlu:noGrow,left:22dlu:noGrow",
            "center:12dlu:noGrow,top:4dlu:noGrow,center:12dlu:noGrow,top:5dlu:noGrow,center:12dlu:noGrow,top:3dlu:noGrow,center:18px:noGrow,top:4dlu:noGrow,top:12dlu:noGrow,center:149dlu:noGrow,top:4dlu:noGrow,top:12dlu:noGrow,center:max(d;4dlu):noGrow,center:12dlu:noGrow"));
    pnlMain.setMinimumSize(new Dimension(501, 425));
    pnlMain.setOpaque(true);
    pnlMain.setPreferredSize(new Dimension(501, 425));
    lblSearch = new JLabel();
    lblSearch.setText("Descripcin");
    lblSearch.setDisplayedMnemonic('D');
    lblSearch.setDisplayedMnemonicIndex(0);
    CellConstraints cc = new CellConstraints();
    pnlMain.add(lblSearch, cc.xyw(1, 3, 2, CellConstraints.RIGHT, CellConstraints.DEFAULT));
    btnSearch = new JButton();
    btnSearch.setText("Buscar");
    btnSearch.setMnemonic('B');
    btnSearch.setDisplayedMnemonicIndex(0);
    pnlMain.add(btnSearch, cc.xy(11, 3));
    footerPanel.setLayout(
            new FormLayout("fill:73dlu:noGrow,left:191dlu:noGrow,fill:48dlu:noGrow", "center:12dlu:noGrow"));
    pnlMain.add(footerPanel, cc.xyw(1, 14, 12, CellConstraints.DEFAULT, CellConstraints.FILL));
    lblF10 = new JLabel();
    lblF10.setText(" [F10] Aceptar");
    footerPanel.add(lblF10, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    lblEsc = new JLabel();
    lblEsc.setText(" [Esc] Salir");
    footerPanel.add(lblEsc, cc.xy(3, 1));
    sepCriterioBusqueda.setSeparatorTitle("Criterio de Bsqueda");
    pnlMain.add(sepCriterioBusqueda, cc.xyw(1, 1, 12, CellConstraints.FILL, CellConstraints.FILL));
    pnlTitGrid.setLayout(
            new FormLayout("fill:204dlu:noGrow,left:88dlu:noGrow,fill:15dlu:noGrow", "center:12dlu:noGrow"));
    pnlMain.add(pnlTitGrid, cc.xyw(1, 9, 12, CellConstraints.FILL, CellConstraints.FILL));
    lblTitGrid = new JLabel();
    lblTitGrid.setText(" Relacin :");
    lblTitGrid.setDisplayedMnemonic('R');
    lblTitGrid.setDisplayedMnemonicIndex(1);
    pnlTitGrid.add(lblTitGrid, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    chkSel = new JCheckBox();
    chkSel.setBackground(new Color(-16747105));
    chkSel.setText("");
    pnlTitGrid.add(chkSel, cc.xy(3, 1));
    final JScrollPane scrollPane1 = new JScrollPane();
    scrollPane1.setMinimumSize(new Dimension(454, 418));
    pnlMain.add(scrollPane1, cc.xyw(1, 10, 12, CellConstraints.FILL, CellConstraints.FILL));
    tblGrid = new JTable();
    tblGrid.setMinimumSize(new Dimension(450, 400));
    scrollPane1.setViewportView(tblGrid);
    final JLabel label1 = new JLabel();
    label1.setText(" Nmero de Registros:");
    pnlMain.add(label1, cc.xyw(1, 12, 3));
    lblNumRegistros = new JLabel();
    lblNumRegistros.setText("Label");
    pnlMain.add(lblNumRegistros, cc.xyw(4, 12, 7));
    txtSearch = new JTextField();
    pnlMain.add(txtSearch, cc.xyw(4, 3, 6, CellConstraints.FILL, CellConstraints.DEFAULT));
    lblSearch2 = new JLabel();
    lblSearch2.setText("Descripcin2");
    lblSearch2.setDisplayedMnemonic('D');
    lblSearch2.setDisplayedMnemonicIndex(0);
    pnlMain.add(lblSearch2, cc.xyw(1, 7, 2, CellConstraints.RIGHT, CellConstraints.DEFAULT));
    cmbAlmacen = new JComboBox();
    pnlMain.add(cmbAlmacen, cc.xyw(4, 7, 6));
    lblFecIni = new JLabel();
    lblFecIni.setText("Fecha del");
    pnlMain.add(lblFecIni, cc.xyw(1, 5, 2, CellConstraints.RIGHT, CellConstraints.CENTER));
    txtFecIni = new JTextField();
    pnlMain.add(txtFecIni, cc.xyw(4, 5, 3, CellConstraints.FILL, CellConstraints.DEFAULT));
    lblFecFin = new JLabel();
    lblFecFin.setText("al");
    pnlMain.add(lblFecFin, cc.xy(7, 5, CellConstraints.RIGHT, CellConstraints.CENTER));
    txtFecFin = new JTextField();
    pnlMain.add(txtFecFin, cc.xy(9, 5, CellConstraints.FILL, CellConstraints.DEFAULT));
    lblSearch.setLabelFor(txtSearch);
    lblSearch2.setLabelFor(txtSearch);
    lblFecIni.setLabelFor(txtSearch);
    lblFecFin.setLabelFor(txtSearch);
}

From source file:com.pianobakery.complsa.MainGui.java

/**
 * 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  va  2  s.  c o m*/
 */
private void $$$setupUI$$$() {
    createUIComponents();
    mainPanel = new JPanel();
    mainPanel.setLayout(new FormLayout("fill:max(m;620px):grow", "center:max(m;600px):grow"));
    tabbedPane1 = new JTabbedPane();
    tabbedPane1.setEnabled(true);
    CellConstraints cc = new CellConstraints();
    mainPanel.add(tabbedPane1, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    setupPanel = new JPanel();
    setupPanel.setLayout(new FormLayout(
            "fill:d:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:126px:noGrow,fill:max(d;4px):noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:5dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:52px:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:d:grow,fill:d:grow,fill:d:grow,fill:66px:noGrow",
            "center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu: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: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: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: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:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow"));
    tabbedPane1.addTab("Project", setupPanel);
    newFolderButton = new JButton();
    newFolderButton.setText("New Folder");
    setupPanel.add(newFolderButton, cc.xy(1, 5));
    final JLabel label1 = new JLabel();
    label1.setText("Project Folder:");
    setupPanel.add(label1, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
    selectFolderButton = new JButton();
    selectFolderButton.setText("Select Folder");
    setupPanel.add(selectFolderButton, cc.xy(5, 5));
    wDirText = new JTextField();
    wDirText.setEditable(false);
    wDirText.setText("Create or select Project Folder");
    setupPanel.add(wDirText, cc.xyw(7, 5, 48, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JLabel label2 = new JLabel();
    label2.setText("The Project Folder contains all the Project Data.");
    setupPanel.add(label2, cc.xyw(1, 3, 54));
    final JLabel label3 = new JLabel();
    label3.setText("Arrange your Documents in a Folder. Then add it to the Software.");
    setupPanel.add(label3, cc.xyw(1, 15, 54));
    downloadModelButton = new JButton();
    downloadModelButton.setText("Download Models");
    setupPanel.add(downloadModelButton, cc.xy(1, 9));
    final JLabel label4 = new JLabel();
    label4.setText("Language Models:");
    setupPanel.add(label4, cc.xy(5, 9));
    langModelsText = new JLabel();
    langModelsText.setText("");
    setupPanel.add(langModelsText, cc.xyw(7, 9, 48));
    trainCorpButton = new JButton();
    trainCorpButton.setText("Train Semantics");
    setupPanel.add(trainCorpButton, cc.xy(1, 33, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JLabel label5 = new JLabel();
    label5.setText("Create Semantic Knowledge with selected Training Corpus:");
    setupPanel.add(label5, cc.xyw(1, 25, 7));
    addTopicCorpusButton = new JButton();
    addTopicCorpusButton.setEnabled(true);
    addTopicCorpusButton.setText(" Add Corpus Folder");
    setupPanel.add(addTopicCorpusButton, cc.xy(1, 19));
    addCorpRecursiveCheckBox = new JCheckBox();
    addCorpRecursiveCheckBox.setSelected(true);
    addCorpRecursiveCheckBox.setText("Recursive");
    setupPanel.add(addCorpRecursiveCheckBox, cc.xy(5, 19));
    createChunksCheckBox = new JCheckBox();
    createChunksCheckBox.setSelected(true);
    createChunksCheckBox.setText("Split in Paragraph of:");
    setupPanel.add(createChunksCheckBox, cc.xy(7, 19));
    final JLabel label6 = new JLabel();
    label6.setText("Add/Remove Training Corpus:");
    setupPanel.add(label6, cc.xyw(1, 17, 5));
    final JLabel label7 = new JLabel();
    label7.setText("Select Training Corpus:");
    setupPanel.add(label7, cc.xyw(1, 21, 54));
    selectTrainCorp = new JComboBox();
    selectTrainCorp.setEnabled(true);
    setupPanel.add(selectTrainCorp, cc.xyw(1, 23, 5));
    removeTopicCorpusButton = new JButton();
    removeTopicCorpusButton.setEnabled(true);
    removeTopicCorpusButton.setHorizontalAlignment(2);
    removeTopicCorpusButton.setText("Remove Training Corpus");
    setupPanel.add(removeTopicCorpusButton, cc.xy(7, 23));
    setupPanel.add(indexTypeComboBox, cc.xy(7, 33));
    amountOfSentencesPerTextField = new JTextField();
    amountOfSentencesPerTextField.setHorizontalAlignment(2);
    amountOfSentencesPerTextField.setText("20");
    setupPanel.add(amountOfSentencesPerTextField,
            cc.xyw(9, 19, 6, CellConstraints.FILL, CellConstraints.DEFAULT));
    posIndRadiusTextField = new JTextField();
    posIndRadiusTextField.setHorizontalAlignment(2);
    posIndRadiusTextField.setText("20");
    setupPanel.add(posIndRadiusTextField, cc.xyw(9, 33, 6, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JLabel label8 = new JLabel();
    label8.setText("Indextype:");
    setupPanel.add(label8, cc.xy(5, 33, CellConstraints.RIGHT, CellConstraints.DEFAULT));
    final JLabel label9 = new JLabel();
    label9.setHorizontalAlignment(2);
    label9.setText("Sentences");
    setupPanel.add(label9, cc.xy(15, 19));
    final JLabel label10 = new JLabel();
    label10.setHorizontalAlignment(2);
    label10.setText("Words");
    setupPanel.add(label10, cc.xy(15, 33));
    setupPanel.add(termComboBox, cc.xyw(31, 33, 19));
    final JLabel label11 = new JLabel();
    label11.setText("Termweight:");
    setupPanel.add(label11, cc.xyw(18, 33, 13));
    updateIndexButton = new JButton();
    updateIndexButton.setText("Update Index");
    setupPanel.add(updateIndexButton, cc.xy(1, 29));
    removeIndexButton = new JButton();
    removeIndexButton.setText("Remove Index");
    setupPanel.add(removeIndexButton, cc.xy(5, 29));
    final JLabel label12 = new JLabel();
    label12.setText("Add/Remove Search Corpus:");
    setupPanel.add(label12, cc.xyw(1, 41, 5));
    impSearchCorpButton = new JButton();
    impSearchCorpButton.setText("Add Search Corpus");
    setupPanel.add(impSearchCorpButton, cc.xy(1, 43));
    impSearchCorpRecursiveCheckBox = new JCheckBox();
    impSearchCorpRecursiveCheckBox.setSelected(true);
    impSearchCorpRecursiveCheckBox.setText("Recursive");
    setupPanel.add(impSearchCorpRecursiveCheckBox, cc.xy(5, 43));
    splitSearchCorpCheckBox = new JCheckBox();
    splitSearchCorpCheckBox.setSelected(true);
    splitSearchCorpCheckBox.setText("Split in Paragraph of:");
    setupPanel.add(splitSearchCorpCheckBox, cc.xy(7, 43));
    amountSearchCorpSent = new JTextField();
    amountSearchCorpSent.setHorizontalAlignment(2);
    amountSearchCorpSent.setText("20");
    setupPanel.add(amountSearchCorpSent, cc.xyw(9, 43, 6, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JLabel label13 = new JLabel();
    label13.setHorizontalAlignment(2);
    label13.setText("Sentences");
    setupPanel.add(label13, cc.xy(15, 43));
    searchCorpComboBox = new JComboBox();
    setupPanel.add(searchCorpComboBox, cc.xyw(1, 47, 5, CellConstraints.DEFAULT, CellConstraints.TOP));
    removeSearchCorpButton = new JButton();
    removeSearchCorpButton.setText("Remove Search Corpus");
    setupPanel.add(removeSearchCorpButton, cc.xy(7, 47));
    final JLabel label14 = new JLabel();
    label14.setText("Select Search Corpus:");
    setupPanel.add(label14, cc.xyw(1, 45, 5));
    final JLabel label15 = new JLabel();
    label15.setText("Arrange your Search Corpus in a Folder. Then add it to the Software. ");
    setupPanel.add(label15, cc.xyw(1, 39, 54));
    final JLabel label16 = new JLabel();
    label16.setText("First update the Index.");
    setupPanel.add(label16, cc.xyw(1, 27, 5));
    final JLabel label17 = new JLabel();
    label17.setText(
            "Then select an Algorithm and train the Software. On the Search Tab you can select the Algorithms to run your semantic searches.");
    setupPanel.add(label17, cc.xyw(1, 31, 54));
    final JLabel label18 = new JLabel();
    label18.setText("Download Language Models:");
    setupPanel.add(label18, cc.xyw(1, 7, 54));
    final JLabel label19 = new JLabel();
    label19.setText("Training Corpora:");
    setupPanel.add(label19, cc.xyw(1, 13, 54));
    final JLabel label20 = new JLabel();
    label20.setText("Search Corpora:");
    setupPanel.add(label20, cc.xyw(1, 37, 54));
    final JLabel label21 = new JLabel();
    label21.setEnabled(true);
    label21.setText(" ");
    setupPanel.add(label21, cc.xy(1, 11));
    final JLabel label22 = new JLabel();
    label22.setText(" ");
    setupPanel.add(label22, cc.xy(1, 35));
    searchDocs = new JPanel();
    searchDocs.setLayout(new FormLayout(
            "left:4dlu:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:277px:noGrow,left:4dlu:noGrow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(m;400px):grow,left:4dlu:noGrow,fill:max(m;200px):grow",
            "center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,top:3dlu: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:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:243px:grow,center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):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:38px:noGrow,top:3dlu:noGrow"));
    searchDocs.setEnabled(true);
    tabbedPane1.addTab("Search", searchDocs);
    final JLabel label23 = new JLabel();
    label23.setText("Choose Semantic Knowledge Algorithm:");
    searchDocs.add(label23, cc.xyw(3, 1, 5));
    final JLabel label24 = new JLabel();
    label24.setText("Enter Search Text or select Search Document:");
    searchDocs.add(label24, cc.xyw(3, 20, 5));
    final JLabel label25 = new JLabel();
    label25.setText("Document Search Results:");
    searchDocs.add(label25, cc.xyw(10, 1, 3));
    final JLabel label26 = new JLabel();
    label26.setText("Selection Metadata:");
    searchDocs.add(label26, cc.xyw(10, 27, 3));
    selectIndexTypeComboBox = new JComboBox();
    searchDocs.add(selectIndexTypeComboBox, cc.xyw(7, 10, 3));
    final JLabel label27 = new JLabel();
    label27.setText("Index Type:");
    searchDocs.add(label27, cc.xy(7, 8));
    final JLabel label28 = new JLabel();
    label28.setText("Termweight:");
    searchDocs.add(label28, cc.xy(7, 12));
    selectTermweightComboBox = new JComboBox();
    searchDocs.add(selectTermweightComboBox, cc.xy(7, 14));
    final JLabel label29 = new JLabel();
    label29.setText("Number of search results:");
    searchDocs.add(label29, cc.xy(7, 16));
    noOfSearchResultsText = new JTextField();
    noOfSearchResultsText.setText("20");
    searchDocs.add(noOfSearchResultsText, cc.xy(7, 18, CellConstraints.FILL, CellConstraints.DEFAULT));
    final JScrollPane scrollPane1 = new JScrollPane();
    searchDocs.add(scrollPane1, cc.xywh(7, 22, 1, 2, CellConstraints.FILL, CellConstraints.FILL));
    searchTextArea = new JTextArea();
    searchTextArea.setLineWrap(true);
    searchTextArea.setText("");
    searchTextArea.setWrapStyleWord(true);
    scrollPane1.setViewportView(searchTextArea);
    selTextRadioButton = new JRadioButton();
    selTextRadioButton.setSelected(true);
    selTextRadioButton.setText("");
    searchDocs.add(selTextRadioButton, cc.xy(5, 22));
    algTextField = new JLabel();
    algTextField.setText("Knowledge Corpus: null");
    searchDocs.add(algTextField, cc.xy(7, 3, CellConstraints.DEFAULT, CellConstraints.FILL));
    selectDocumentButton = new JButton();
    selectDocumentButton.setEnabled(false);
    selectDocumentButton.setText("Select Document");
    searchDocs.add(selectDocumentButton, cc.xy(7, 25));
    selDocRadioButton = new JRadioButton();
    selDocRadioButton.setText("");
    searchDocs.add(selDocRadioButton, cc.xy(5, 25));
    final JLabel label30 = new JLabel();
    label30.setText("Select Corpus to Search:");
    searchDocs.add(label30, cc.xyw(3, 30, 5));
    searchTopCorpRadioButton = new JRadioButton();
    searchTopCorpRadioButton.setSelected(true);
    searchTopCorpRadioButton.setText("Topic Corpus");
    searchDocs.add(searchTopCorpRadioButton, cc.xy(7, 32, CellConstraints.DEFAULT, CellConstraints.TOP));
    searchSearchCorpRadioButton = new JRadioButton();
    searchSearchCorpRadioButton.setSelected(false);
    searchSearchCorpRadioButton.setText("Search Corpus");
    searchDocs.add(searchSearchCorpRadioButton, cc.xy(7, 34, CellConstraints.DEFAULT, CellConstraints.TOP));
    searchButton = new JButton();
    searchButton.setText("Search");
    searchDocs.add(searchButton, cc.xy(7, 36));
    final JScrollPane scrollPane2 = new JScrollPane();
    searchDocs.add(scrollPane2, cc.xywh(10, 30, 3, 7, CellConstraints.FILL, CellConstraints.FILL));
    metadataTextField = new JTextArea();
    metadataTextField.setEditable(false);
    scrollPane2.setViewportView(metadataTextField);
    termTablePane = new JScrollPane();
    termTablePane.setEnabled(true);
    termTablePane.setVerticalScrollBarPolicy(22);
    searchDocs.add(termTablePane, cc.xywh(14, 3, 1, 21, CellConstraints.FILL, CellConstraints.FILL));
    termSearchResTable.setAutoCreateRowSorter(true);
    termSearchResTable.setAutoResizeMode(2);
    termSearchResTable.setFillsViewportHeight(false);
    termSearchResTable.setForeground(new Color(-16777216));
    termTablePane.setViewportView(termSearchResTable);
    docTablePane = new JScrollPane();
    docTablePane.setVerticalScrollBarPolicy(22);
    searchDocs.add(docTablePane, cc.xywh(10, 3, 3, 21, CellConstraints.FILL, CellConstraints.FILL));
    docSearchResTable.setAutoCreateRowSorter(true);
    docTablePane.setViewportView(docSearchResTable);
    final JLabel label31 = new JLabel();
    label31.setText("Term Search Result:");
    searchDocs.add(label31, cc.xy(14, 1));
    searchDocValue = new JLabel();
    searchDocValue.setText("nothing selected");
    searchDocs.add(searchDocValue, cc.xyw(12, 25, 3, CellConstraints.LEFT, CellConstraints.DEFAULT));
    openSearchDocumentButton = new JButton();
    openSearchDocumentButton.setEnabled(false);
    openSearchDocumentButton.setText("Open Search Document");
    searchDocs.add(openSearchDocumentButton, cc.xy(10, 25, CellConstraints.LEFT, CellConstraints.DEFAULT));
}

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// w ww  .  j  a v a 2  s. c o m
 */
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.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/*from ww  w .j  a  va  2 s .co  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));
}