List of usage examples for com.jgoodies.forms.layout CellConstraints DEFAULT
Alignment DEFAULT
To view the source code for com.jgoodies.forms.layout CellConstraints DEFAULT.
Click Source Link
From source file:com.archivas.clienttools.arcmover.gui.ssl.SSLCertificateAllowDialog.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 www .java 2s . co m * * @noinspection ALL */ private void $$$setupUI$$$() { contentPane = new JPanel(); contentPane.setLayout(new FormLayout("fill:4dlu:noGrow,fill:d:grow,fill:4dlu:noGrow", "center:4dlu:noGrow,center:d:grow,top:4dlu:noGrow,center:max(d;15dlu):noGrow,center:4dlu:noGrow")); contentPane.setMinimumSize(new Dimension(300, 300)); contentPane.setPreferredSize(new Dimension(500, 500)); final JPanel panel1 = new JPanel(); panel1.setLayout(new FormLayout( "fill:d:grow,left:4dlu:noGrow,fill:max(d;50dlu):noGrow,left:4dlu:noGrow,fill:max(d;50dlu):noGrow", "center:d:grow")); panel1.setPreferredSize(new Dimension(300, 24)); CellConstraints cc = new CellConstraints(); contentPane.add(panel1, cc.xy(2, 4)); buttonOK = new JButton(); buttonOK.setText("Confirm Security Exception"); buttonOK.setToolTipText("Accept this cerficate"); panel1.add(buttonOK, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); buttonCancel = new JButton(); buttonCancel.setText("Cancel"); panel1.add(buttonCancel, cc.xy(5, 1)); sslCertificateForm = new SSLCertificateForm(); contentPane.add(sslCertificateForm.$$$getRootComponent$$$(), cc.xy(2, 2, CellConstraints.FILL, CellConstraints.FILL)); }
From source file:com.archivas.clienttools.arcmover.gui.ssl.SSLCertificateDialog.java
License:Open Source License
/** * Method generated by IntelliJ IDEA GUI Designer >>> IMPORTANT!! <<< DO NOT edit this method OR * call it in your code!// www . ja va2 s. co m * * @noinspection ALL */ private void $$$setupUI$$$() { contentPane = new JPanel(); contentPane.setLayout(new FormLayout("fill:4dlu:noGrow,fill:d:grow,fill:4dlu:noGrow", "center:4dlu:noGrow,center:d:grow,top:4dlu:noGrow,center:max(d;15dlu):noGrow,center:4dlu:noGrow")); contentPane.setMinimumSize(new Dimension(300, 300)); contentPane.setPreferredSize(new Dimension(500, 500)); final JPanel panel1 = new JPanel(); panel1.setLayout( new FormLayout("fill:d:grow,left:4dlu:noGrow,fill:50dlu:noGrow,left:4dlu:noGrow,fill:50dlu:noGrow", "center:15dlu:grow")); panel1.setPreferredSize(new Dimension(300, 24)); CellConstraints cc = new CellConstraints(); contentPane.add(panel1, cc.xy(2, 4)); buttonOK = new JButton(); buttonOK.setText("OK"); panel1.add(buttonOK, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); buttonCancel = new JButton(); buttonCancel.setText("Cancel"); panel1.add(buttonCancel, cc.xy(5, 1, CellConstraints.DEFAULT, CellConstraints.FILL)); sslCertificateForm = new SSLCertificateForm(); contentPane.add(sslCertificateForm.$$$getRootComponent$$$(), cc.xy(2, 2, CellConstraints.FILL, CellConstraints.FILL)); }
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!//w ww . j a v a 2 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.config.serverconfig.BambooGeneralForm.java
License:Apache 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 av a2s . co m*/ */ private void $$$setupUI$$$() { rootComponent = new JPanel(); rootComponent.setLayout(new FormLayout( "fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,fill:d:grow", "center:max(d;4px):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:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:d:grow")); rootComponent .setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12), null)); allFailuresFirstSuccess = new JRadioButton(); allFailuresFirstSuccess.setSelected(true); allFailuresFirstSuccess.setText("All Build Failures and First Build Success"); CellConstraints cc = new CellConstraints(); rootComponent.add(allFailuresFirstSuccess, cc.xy(3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); firstFailureFirstSuccess = new JRadioButton(); firstFailureFirstSuccess.setText("First Build Failure and First Build Success"); rootComponent.add(firstFailureFirstSuccess, cc.xy(3, 3, CellConstraints.LEFT, CellConstraints.DEFAULT)); never = new JRadioButton(); never.setText("Never"); rootComponent.add(never, cc.xy(3, 5, CellConstraints.LEFT, CellConstraints.DEFAULT)); final Spacer spacer1 = new Spacer(); rootComponent.add(spacer1, cc.xy(3, 11, CellConstraints.DEFAULT, CellConstraints.FILL)); final Spacer spacer2 = new Spacer(); rootComponent.add(spacer2, cc.xy(5, 11, CellConstraints.FILL, CellConstraints.DEFAULT)); final JLabel label1 = new JLabel(); label1.setText("Popups:"); rootComponent.add(label1, cc.xy(1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT)); final JLabel label2 = new JLabel(); label2.setText("Background refresh every:"); rootComponent.add(label2, cc.xy(1, 9)); final JPanel panel1 = new JPanel(); panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1)); rootComponent.add(panel1, cc.xy(3, 9)); pollTimeSpinner = new JSpinner(); panel1.add(pollTimeSpinner, new GridConstraints(0, 0, 1, 2, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(50, -1), null, 0, false)); final JLabel label3 = new JLabel(); label3.setText("minute(s)"); panel1.add(label3, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer3 = new Spacer(); panel1.add(spacer3, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); onlyMyBuilds = new JCheckBox(); onlyMyBuilds.setText("Only for My Builds"); onlyMyBuilds.setToolTipText( "Shows notification popup only for builds triggered by commit of the logged in user"); rootComponent.add(onlyMyBuilds, new CellConstraints(3, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(0, 20, 0, 0))); label3.setLabelFor(pollTimeSpinner); ButtonGroup buttonGroup; buttonGroup = new ButtonGroup(); buttonGroup.add(allFailuresFirstSuccess); buttonGroup.add(firstFailureFirstSuccess); buttonGroup.add(never); }
From source file:com.atlassian.theplugin.idea.config.serverconfig.JiraServerConfigForm.java
License:Apache 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 va2s .c om */ private void $$$setupUI$$$() { createUIComponents(); rootComponent = new JPanel(); rootComponent.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1)); final JPanel panel1 = new JPanel(); panel1.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1)); rootComponent.add(panel1, 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, null, null, 0, false)); panel1.add(genericServerConfigForm.$$$getRootComponent$$$(), new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_HORIZONTAL, 1, 1, null, null, null, 0, false)); final JPanel panel2 = new JPanel(); panel2.setLayout(new FormLayout("fill:262px:noGrow", "top:26px:noGrow,top:4dlu:noGrow,center:d:grow,top:4dlu:noGrow,center:max(d;4px):noGrow")); panel1.add(panel2, new GridConstraints(1, 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(1, 80), null, 0, false)); panel2.setBorder( BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Additional Configuration")); cbUseSessionCookies.setText("Do not use HTTP authentication"); CellConstraints cc = new CellConstraints(); panel2.add(cbUseSessionCookies, new CellConstraints(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(0, 12, 0, 0))); final JTextArea textArea1 = new JTextArea(); textArea1.setEditable(false); textArea1.setFont(new Font(textArea1.getFont().getName(), textArea1.getFont().getStyle(), 10)); textArea1.setRows(2); textArea1.setText( "Check this box if you are using NTLM \nauthentiaction method or your JIRA \nserver is located behind a proxy"); textArea1.setWrapStyleWord(true); panel2.add(textArea1, new CellConstraints(1, 3, 1, 1, CellConstraints.LEFT, CellConstraints.FILL, new Insets(0, 40, 0, 0))); }
From source file:com.atlassian.theplugin.idea.crucible.CrucibleReviewCreateForm.java
License:Apache 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 .ja v a2 s. c o m */ private void $$$setupUI$$$() { rootComponent = new JPanel(); rootComponent.setLayout(new FormLayout("fill:d:grow", "center:max(d;4px):noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow,center:max(d;4px):noGrow,center:p:grow,top:3dlu:noGrow,fill:d:noGrow,top:3dlu:noGrow,center:max(d;4px):noGrow")); rootComponent.setMinimumSize(new Dimension(800, 505)); final JLabel label1 = new JLabel(); label1.setText("Title:"); CellConstraints cc = new CellConstraints(); rootComponent.add(label1, cc.xy(1, 1)); titleText = new JTextField(); rootComponent.add(titleText, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.DEFAULT)); final JPanel panel1 = new JPanel(); panel1.setLayout(new FormLayout( "fill:d:noGrow,left:4dlu:noGrow,fill:300px:grow,left:4dlu:noGrow,fill:max(d;4px):noGrow,left:4dlu:noGrow,fill:max(p;4px):grow", "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:4dlu:noGrow,center:max(d;4px):noGrow")); rootComponent.add(panel1, cc.xy(1, 5)); final JLabel label2 = new JLabel(); label2.setText("Server:"); panel1.add(label2, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.CENTER)); crucibleServersComboBox = new JComboBox(); panel1.add(crucibleServersComboBox, cc.xy(3, 1)); final JLabel label3 = new JLabel(); label3.setInheritsPopupMenu(false); label3.setText("Project:"); panel1.add(label3, cc.xy(1, 3, CellConstraints.DEFAULT, CellConstraints.CENTER)); projectsComboBox = new JComboBox(); panel1.add(projectsComboBox, cc.xy(3, 3)); final JLabel label4 = new JLabel(); label4.setText("Moderator:"); panel1.add(label4, cc.xy(1, 7, CellConstraints.DEFAULT, CellConstraints.CENTER)); final JLabel label5 = new JLabel(); label5.setText("Author:"); panel1.add(label5, cc.xy(1, 9, CellConstraints.DEFAULT, CellConstraints.CENTER)); moderatorComboBox = new JComboBox(); panel1.add(moderatorComboBox, cc.xy(3, 7)); authorComboBox = new JComboBox(); panel1.add(authorComboBox, cc.xy(3, 9)); final JPanel panel2 = new JPanel(); panel2.setLayout(new BorderLayout(0, 0)); panel1.add(panel2, cc.xywh(7, 1, 1, 7, CellConstraints.DEFAULT, CellConstraints.FILL)); final JScrollPane scrollPane1 = new JScrollPane(); panel2.add(scrollPane1, BorderLayout.CENTER); final JLabel label6 = new JLabel(); label6.setText("Reviewers: "); panel1.add(label6, cc.xy(5, 1, CellConstraints.RIGHT, CellConstraints.TOP)); final JLabel label7 = new JLabel(); label7.setText("Selected: "); panel1.add(label7, cc.xy(5, 9, CellConstraints.RIGHT, CellConstraints.DEFAULT)); final JLabel label8 = new JLabel(); label8.setText("Statement of Objectives:"); rootComponent.add(label8, cc.xy(1, 7)); final JScrollPane scrollPane2 = new JScrollPane(); rootComponent.add(scrollPane2, cc.xy(1, 9, CellConstraints.FILL, CellConstraints.FILL)); statementArea = new JTextArea(); statementArea.setLineWrap(true); statementArea.setRows(5); scrollPane2.setViewportView(statementArea); customComponentPanel = new JPanel(); customComponentPanel.setLayout(new BorderLayout(0, 0)); rootComponent.add(customComponentPanel, cc.xy(1, 11, CellConstraints.DEFAULT, CellConstraints.FILL)); label1.setLabelFor(titleText); label2.setLabelFor(crucibleServersComboBox); label5.setLabelFor(scrollPane1); label8.setLabelFor(statementArea); }
From source file:com.atlassian.theplugin.idea.GeneralConfigForm.java
License:Apache 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 av a 2s.com */ private void $$$setupUI$$$() { createUIComponents(); mainPanel = new JPanel(); mainPanel.setLayout(new FormLayout("fill:d:grow", "center:max(d;4px):noGrow,top:3dlu:noGrow,center:d:noGrow,top:4dlu:noGrow,center:max(d;4px):grow,top:4dlu:noGrow,center:max(d;4px):noGrow,top:4dlu:noGrow,center:max(d;4px):noGrow")); mainPanel .setBorder(BorderFactory.createTitledBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12), null)); autoUpdateConfigPanel = new JPanel(); autoUpdateConfigPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 12, 12, 12), -1, -1)); CellConstraints cc = new CellConstraints(); mainPanel.add(autoUpdateConfigPanel, cc.xy(1, 1)); autoUpdateConfigPanel .setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Auto Upgrade")); checkNowButton = new JButton(); checkNowButton.setText("Check Now"); checkNowButton.setMnemonic('C'); checkNowButton.setDisplayedMnemonicIndex(0); autoUpdateConfigPanel.add(checkNowButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JPanel panel1 = new JPanel(); panel1.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1)); autoUpdateConfigPanel.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_VERTICAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); chkUnstableVersionsCheckBox = new JCheckBox(); chkUnstableVersionsCheckBox.setEnabled(false); chkUnstableVersionsCheckBox.setText("Check Snapshot Versions"); panel1.add(chkUnstableVersionsCheckBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer1 = new Spacer(); panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, new Dimension(12, -1), null, null, 0, false)); chkAutoUpdateEnabled = new JCheckBox(); chkAutoUpdateEnabled.setText("Enabled (Stable Version)"); chkAutoUpdateEnabled.setMnemonic('E'); chkAutoUpdateEnabled.setDisplayedMnemonicIndex(0); autoUpdateConfigPanel.add(chkAutoUpdateEnabled, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer2 = new Spacer(); autoUpdateConfigPanel.add(spacer2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); checkNewVersionStable = new JRadioButton(); checkNewVersionStable.setSelected(true); checkNewVersionStable.setText("Stable Only"); autoUpdateConfigPanel.add(checkNewVersionStable, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); checkNewVersionAll = new JRadioButton(); checkNewVersionAll.setText("Stable + Snapshot"); autoUpdateConfigPanel.add(checkNewVersionAll, new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); httpProxyPanel = new JPanel(); httpProxyPanel.setLayout(new GridLayoutManager(4, 2, new Insets(0, 12, 12, 0), -1, -1)); mainPanel.add(httpProxyPanel, cc.xy(1, 3, CellConstraints.DEFAULT, CellConstraints.TOP)); httpProxyPanel .setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "HTTP Proxy")); chkUseIdeaProxy = new JRadioButton(); chkUseIdeaProxy.setText("Use IDEA Proxy Settings"); httpProxyPanel.add(chkUseIdeaProxy, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); httpProxyButton = new JButton(); httpProxyButton.setText("Edit IDEA Proxy Settings"); httpProxyPanel.add(httpProxyButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); chkNoProxy = new JRadioButton(); chkNoProxy.setText("Do Not Use Proxy"); httpProxyPanel.add(chkNoProxy, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer3 = new Spacer(); httpProxyPanel.add(spacer3, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); final JLabel label1 = new JLabel(); label1.setFont(new Font(label1.getFont().getName(), label1.getFont().getStyle(), 10)); label1.setText("Information: You have to restart IDEA to apply changes in the proxy configuration"); httpProxyPanel.add(label1, new GridConstraints(3, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JPanel panel2 = new JPanel(); panel2.setLayout(new FormLayout("left:p:noGrow,left:p:noGrow", "center:d:grow")); mainPanel.add(panel2, cc.xy(1, 9)); reportAnonymousUsageStatisticsCheckBox = new JCheckBox(); reportAnonymousUsageStatisticsCheckBox.setEnabled(true); reportAnonymousUsageStatisticsCheckBox.setSelected(false); reportAnonymousUsageStatisticsCheckBox .setText("Provide anonymous usage statistics to help us develop a better plugin"); reportAnonymousUsageStatisticsCheckBox.setMnemonic('P'); reportAnonymousUsageStatisticsCheckBox.setDisplayedMnemonicIndex(0); panel2.add(reportAnonymousUsageStatisticsCheckBox, cc.xy(1, 1)); panel2.add(usageStatsHelp, cc.xy(2, 1, CellConstraints.LEFT, CellConstraints.CENTER)); final JPanel panel3 = new JPanel(); panel3.setLayout(new GridLayoutManager(5, 3, new Insets(0, 12, 12, 12), -1, -1)); mainPanel.add(panel3, cc.xy(1, 5, CellConstraints.DEFAULT, CellConstraints.TOP)); panel3.setBorder( BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), "Direct Click Through")); ctrlHttpServer = new JCheckBox(); ctrlHttpServer.setSelected(false); ctrlHttpServer.setText("Enable Direct Click Through"); panel3.add(ctrlHttpServer, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer4 = new Spacer(); panel3.add(spacer4, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); final JLabel label2 = new JLabel(); label2.setFont(new Font(label2.getFont().getName(), label2.getFont().getStyle(), 10)); label2.setText("Information: You have to restart IDEA to apply changes (start/stop http server)"); panel3.add(label2, new GridConstraints(3, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final JLabel label3 = new JLabel(); label3.setText(" Direct Click Through TCP/IP Port: "); panel3.add(label3, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); final Spacer spacer5 = new Spacer(); panel3.add(spacer5, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false)); final Spacer spacer6 = new Spacer(); panel3.add(spacer6, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false)); ctrlHttpServerPort = new JSpinner(); panel3.add(ctrlHttpServerPort, new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, new Dimension(70, -1), new Dimension(70, -1), null, 0, false)); ButtonGroup buttonGroup; buttonGroup = new ButtonGroup(); buttonGroup.add(checkNewVersionStable); buttonGroup.add(checkNewVersionAll); buttonGroup = new ButtonGroup(); buttonGroup.add(chkNoProxy); buttonGroup.add(chkUseIdeaProxy); }
From source file:com.atlassian.theplugin.idea.jira.WorkLogCreateAndMaybeDeactivateDialog.java
License:Apache License
private JPanel createTimePanel() { CellConstraints cc = new CellConstraints(); timePanel = new JPanel(new FormLayout( "3dlu, right:pref, 3dlu, left:pref, 3dlu, 10dlu, left:pref, 3dlu, left:pref:grow, 3dlu", "3dlu, pref, 3dlu, pref, pref, pref, 3dlu, pref, 10dlu, 40dlu, 3dlu")); timePanel.add(new JLabel("Time Spent:"), cc.xy(2, 2)); timeSpentField = createFixedTextField(120, 28); timePanel.add(timeSpentField, cc.xy(4, 2)); explanationText = new JTextPane(); explanationText.setText("An estimate of how much time you have spent working." + "\nThe format of this is ' *w *d *h *m ' (representing weeks," + "\ndays, hours and minutes - where * can be any number)" + "\nExamples: 4d, 5h 30m, 60m and 3w."); explanationText.setEditable(false);// w ww .ja v a 2 s. c om explanationText.setEnabled(true); explanationText .setFont(new Font(explanationText.getFont().getName(), explanationText.getFont().getStyle(), 10)); explanationText.setOpaque(false); timePanel.add(explanationText, cc.xywh(4, 4, 1, 4)); timePanel.add(new JLabel("Remaining Estimate:"), cc.xyw(6, 2, 2)); btnAutoUpdate = new JRadioButton("Auto Update", true); btnLeaveUnchanged = new JRadioButton("Leave Unchanged"); btnUpdateManually = new JRadioButton("Update Manually:"); timePanel.add(btnAutoUpdate, cc.xy(7, 4)); timePanel.add(btnLeaveUnchanged, cc.xy(7, 5)); timePanel.add(btnUpdateManually, cc.xy(7, 6)); remainingEstimateField = createFixedTextField(120, 28); timePanel.add(remainingEstimateField, cc.xy(9, 6)); ButtonGroup group = new ButtonGroup(); group.add(btnUpdateManually); group.add(btnAutoUpdate); group.add(btnLeaveUnchanged); endTimePanel = new JPanel(new FormLayout("fill:pref:grow, 3dlu, pref", "pref")); endDateLabel = new JLabel("1/01/08 12:00"); endTimePanel.add(endDateLabel, cc.xy(1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT)); endDateChange = new JButton("Change"); endTimePanel.add(endDateChange, cc.xy(3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT)); if (!deactivateActiveIssue) { timePanel.add(new JLabel("End Time:"), cc.xy(2, 8)); timePanel.add(endTimePanel, cc.xy(4, 8)); } timePanel.add(new JLabel("Comment:"), cc.xy(2, 10, CellConstraints.RIGHT, CellConstraints.TOP)); issueComment = new JTextArea(); issueComment.setLineWrap(true); final JScrollPane scroll = new JScrollPane(); scroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); scroll.setViewportView(issueComment); timePanel.add(scroll, cc.xyw(4, 10, 6, CellConstraints.FILL, CellConstraints.FILL)); UIUtil.setEnabled(timePanel, chkLogWork.isSelected() || !deactivateActiveIssue, true); remainingEstimateField.setEnabled(false); return timePanel; }
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 ww.j a v a 2s . c om*/ */ 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 w w .j a v a 2s .c om*/ */ 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); }