Example usage for com.jgoodies.forms.layout FormLayout FormLayout

List of usage examples for com.jgoodies.forms.layout FormLayout FormLayout

Introduction

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

Prototype

public FormLayout(ColumnSpec[] colSpecs, RowSpec[] rowSpecs) 

Source Link

Document

Constructs a FormLayout using the given column and row specifications.

Usage

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/* w ww .  ja  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: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// ww  w . ja 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: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.aw.swing.mvp.grid.GridManager.java

License:Open Source License

private void configureGridTitleColor() {
    JPanel pnlGrid = ipView.getPnlGrid(gridIndex);
    pnlGrid.setBorder(BorderFactory.createLineBorder(new Color(131, 172, 219)));

    JPanel pnlTitGrid = ipView.getPnlTitGrid(gridIndex);
    pnlTitGrid.setBackground(new Color(131, 172, 219));
    pnlTitGrid.setLayout(/* w w w.ja  va  2s . co  m*/
            new FormLayout("fill:16dlu:noGrow,left:4dlu:noGrow,fill:d:grow,left:4dlu:noGrow,right:pref:grow",
                    "center:16dlu:noGrow"));
    JLabel lblTitGrid = ipView.getLblTitGrid(gridIndex);
    lblTitGrid.setFont(new Font(lblTitGrid.getFont().getName(), Font.BOLD, 14));
    lblTitGrid.setForeground(Color.black);

    numRecords = new JLabel("");
    numRecords.setFont(new Font(lblTitGrid.getFont().getName(), Font.BOLD, 14));
    numRecords.setForeground(Color.black);
    numRecords.setVisible(showTotalRegistros);

    pnlTitGrid.remove(lblTitGrid);
    CellConstraints cc = new CellConstraints();
    pnlTitGrid.add(lblTitGrid, cc.xy(3, 1));
    pnlTitGrid.add(numRecords, cc.xy(5, 1));

}

From source file:com.brainflow.application.toplevel.Brainflow.java

private IImageDataSource specialHandling(IImageDataSource dataSource) {

    if (dataSource.getFileFormat().equals("Analyze7.5")) {
        JPanel panel = new JPanel();
        JLabel messageLabel = new JLabel("Please select correct image orientation from menu: ");
        java.util.List<Anatomy3D> choices = Anatomy3D.getInstanceList();
        JComboBox choiceBox = new JComboBox(choices.toArray());

        //todo hackery alert
        Anatomy anatomy = dataSource.getImageInfo().getAnatomy();
        choiceBox.setSelectedItem(anatomy);

        FormLayout layout = new FormLayout("4dlu, l:p, p:g, 4dlu", "6dlu, p, 10dlu, p, 6dlu");
        CellConstraints cc = new CellConstraints();
        panel.setLayout(layout);//from ww w .  j  a va  2  s .c o  m
        panel.add(messageLabel, cc.xyw(2, 2, 2));
        panel.add(choiceBox, cc.xyw(2, 4, 2));

        JOptionPane.showMessageDialog(brainFrame, panel, "Analyze 7.5 image format ...",
                JOptionPane.WARNING_MESSAGE);
        Anatomy selectedAnatomy = (Anatomy) choiceBox.getSelectedItem();
        if (selectedAnatomy != anatomy) {
            //todo hackery alert
            dataSource.getImageInfo().setAnatomy((Anatomy3D) selectedAnatomy);
            dataSource.releaseData();
        }
    }

    return dataSource;

}

From source file:com.cs521.team7.AboutUsPage.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Abhijeet Kedari

    //======== this ========
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout("9*(default, $lcgap), default", "7*(default, $lgap), default"));
    pack();//  w ww.j  av  a2  s . c o  m
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.cs521.team7.AdminHomePage.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Saurabh Jadhav

    //======== this ========
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout("default, $lcgap, default", "2*(default, $lgap), default"));
    pack();//from ww w.jav a  2 s.  com
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.cs521.team7.HelpPage.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Abhijeet Kedari

    //======== this ========
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout("default, $lcgap, default", "2*(default, $lgap), default"));
    pack();/*from   w ww .j a  va2s .  c  o  m*/
    setLocationRelativeTo(getOwner());
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.cs521.team7.HomePage.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Saurabh Jadhav
    DefaultComponentFactory compFactory = DefaultComponentFactory.getInstance();
    menuBar1 = new JMenuBar();
    menu_file = new JMenu();
    menuItem1 = new JMenuItem();
    menu_help = new JMenu();
    menu_faq = new JMenuItem();
    menu_about = new JMenuItem();
    menu1 = new JMenu();
    menuItem_updateProfile = new JMenuItem();
    panel1 = new JPanel();
    label_welcome = new JLabel();
    btn_account = new JButton();
    btn_cart = new JButton();
    btn_logout = new JButton();
    separator2 = new JSeparator();
    splitPane2 = new JSplitPane();
    panel2 = new JPanel();
    label2 = compFactory.createLabel("Total Cost of Cart:  ");
    label_totalCartPrice = compFactory.createLabel("            $0");
    label1 = new JLabel();
    label_totalCartItems = new JLabel();
    separator4 = new JSeparator();
    label8 = new JLabel();
    panel3 = new JPanel();
    btn_search = new JButton();
    label5 = new JLabel();
    textField_searchBox = new JTextField();
    label6 = new JLabel();
    comboBox_filter = new JComboBox();
    label7 = new JLabel();
    comboBox_sort = new JComboBox();
    separator3 = new JSeparator();
    scrollPane1 = new JScrollPane();
    table_ProductList = new JTable();
    btn_addToCart = new JButton();

    //======== this ========
    setIconImage(new ImageIcon(getClass().getResource("/logo/sonos_logo.jpg")).getImage());
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout("default:grow", "2*(default, $lgap), default"));

    //======== menuBar1 ========
    {/*from  w  w  w  .  ja va2s  .  com*/

        //======== menu_file ========
        {
            menu_file.setText("Files");

            //---- menuItem1 ----
            menuItem1.setText("Exit");
            menu_file.add(menuItem1);
        }
        menuBar1.add(menu_file);

        //======== menu_help ========
        {
            menu_help.setText("Help");
            menu_help.addActionListener(e -> menu_helpActionPerformed(e));

            //---- menu_faq ----
            menu_faq.setText("FAQ");
            menu_help.add(menu_faq);

            //---- menu_about ----
            menu_about.setText("About");
            menu_about.addActionListener(e -> {
                menu_aboutActionPerformed(e);
                menu_aboutActionPerformed(e);
            });
            menu_about.addMenuKeyListener(new MenuKeyListener() {
                @Override
                public void menuKeyPressed(MenuKeyEvent e) {
                    menu_aboutMenuKeyPressed(e);
                }

                @Override
                public void menuKeyReleased(MenuKeyEvent e) {
                }

                @Override
                public void menuKeyTyped(MenuKeyEvent e) {
                }
            });
            menu_help.add(menu_about);
        }
        menuBar1.add(menu_help);

        //======== menu1 ========
        {
            menu1.setText("Profile");

            //---- menuItem_updateProfile ----
            menuItem_updateProfile.setText("Update Profile");
            menuItem_updateProfile.addActionListener(e -> menuItem_updateProfileActionPerformed(e));
            menu1.add(menuItem_updateProfile);
        }
        menuBar1.add(menu1);
    }
    setJMenuBar(menuBar1);

    //======== panel1 ========
    {

        // JFormDesigner evaluation mark
        panel1.setBorder(new javax.swing.border.CompoundBorder(
                new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                        "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                        javax.swing.border.TitledBorder.BOTTOM,
                        new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red),
                panel1.getBorder()));
        panel1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent e) {
                if ("border".equals(e.getPropertyName()))
                    throw new RuntimeException();
            }
        });

        panel1.setLayout(new FormLayout(
                "default, $lcgap, default:grow, $lcgap, default, $lcgap, default:grow, 10*($lcgap, default)",
                "default"));

        //---- label_welcome ----
        label_welcome.setText("Welcome ");
        panel1.add(label_welcome, CC.xy(1, 1, CC.CENTER, CC.DEFAULT));

        //---- btn_account ----
        btn_account.setText("My Account");
        panel1.add(btn_account, CC.xy(23, 1, CC.RIGHT, CC.TOP));

        //---- btn_cart ----
        btn_cart.setText("Cart");
        panel1.add(btn_cart, CC.xy(25, 1, CC.FILL, CC.DEFAULT));

        //---- btn_logout ----
        btn_logout.setText("Logout");
        panel1.add(btn_logout, CC.xy(27, 1));
    }
    contentPane.add(panel1, CC.xy(1, 1, CC.FILL, CC.DEFAULT));
    contentPane.add(separator2, CC.xy(1, 3, CC.FILL, CC.CENTER));

    //======== splitPane2 ========
    {

        //======== panel2 ========
        {
            panel2.setLayout(new FormLayout("min, default:grow", "4*(default, $lgap), default"));
            panel2.add(label2, CC.xy(1, 1, CC.LEFT, CC.DEFAULT));
            panel2.add(label_totalCartPrice, CC.xywh(2, 1, 1, 2, CC.LEFT, CC.TOP));

            //---- label1 ----
            label1.setText("Total Items in Cart: ");
            panel2.add(label1, CC.xy(1, 3, CC.LEFT, CC.DEFAULT));

            //---- label_totalCartItems ----
            label_totalCartItems.setText("            0");
            panel2.add(label_totalCartItems, CC.xy(2, 3, CC.LEFT, CC.DEFAULT));
            panel2.add(separator4, CC.xywh(1, 5, 2, 1, CC.FILL, CC.DEFAULT));

            //---- label8 ----
            label8.setText("Browse");
            panel2.add(label8, CC.xy(1, 7, CC.LEFT, CC.DEFAULT));
        }
        splitPane2.setLeftComponent(panel2);

        //======== panel3 ========
        {
            panel3.setLayout(new FormLayout(
                    "left:default, 2*($lcgap, default), $lcgap, default:grow, 5*($lcgap, default), $lcgap, default:grow, 6*($lcgap, default)",
                    "4*(default, $lgap), 2*(default:grow, $lgap), default, $lgap, default:grow, 2*($lgap, default), $lgap, default:grow"));

            //---- btn_search ----
            btn_search.setText("Search");
            panel3.add(btn_search, CC.xywh(31, 1, 1, 5, CC.FILL, CC.DEFAULT));

            //---- label5 ----
            label5.setText("Search Text");
            panel3.add(label5, CC.xy(1, 1));
            panel3.add(textField_searchBox, CC.xywh(3, 1, 27, 1, CC.FILL, CC.DEFAULT));

            //---- label6 ----
            label6.setText("Filter");
            panel3.add(label6, CC.xy(1, 3));
            panel3.add(comboBox_filter, CC.xywh(3, 3, 27, 1, CC.FILL, CC.DEFAULT));

            //---- label7 ----
            label7.setText("Sort");
            panel3.add(label7, CC.xy(1, 5));
            panel3.add(comboBox_sort, CC.xywh(3, 5, 27, 1));
            panel3.add(separator3, CC.xywh(1, 7, 31, 1, CC.FILL, CC.DEFAULT));

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(table_ProductList);
            }
            panel3.add(scrollPane1, CC.xywh(1, 9, 29, 13, CC.FILL, CC.FILL));

            //---- btn_addToCart ----
            btn_addToCart.setText("Add to Cart");
            btn_addToCart.addActionListener(e -> btn_addToCartActionPerformed(e));
            panel3.add(btn_addToCart, CC.xy(31, 9));
        }
        splitPane2.setRightComponent(panel3);
    }
    contentPane.add(splitPane2, CC.xy(1, 5, CC.RIGHT, CC.DEFAULT));
    setSize(680, 360);
    setLocationRelativeTo(null);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents

}

From source file:com.cs521.team7.LoginPage.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - Saurabh Jadhav
    label_uname = new JLabel();
    textField_uname = new JTextField();
    label_password = new JLabel();
    textField_password = new JPasswordField();
    btn_signUp = new JButton();
    btn_login = new JButton();

    //======== this ========
    setIconImage(new ImageIcon(getClass().getResource("/logo/sonos_logo.jpg")).getImage());
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout("3*(default, $lcgap), default:grow, $lcgap, min, $lcgap, default",
            "2*(default, $lgap), top:default"));

    //---- label_uname ----
    label_uname.setText("Username: ");
    contentPane.add(label_uname, CC.xy(1, 1));
    contentPane.add(textField_uname, CC.xywh(3, 1, 9, 1, CC.FILL, CC.DEFAULT));

    //---- label_password ----
    label_password.setText("Password: ");
    contentPane.add(label_password, CC.xy(1, 3));
    contentPane.add(textField_password, CC.xywh(3, 3, 9, 1, CC.FILL, CC.DEFAULT));

    //---- btn_signUp ----
    btn_signUp.setText("Sign Up");
    btn_signUp.addActionListener(e -> signUP_btn_ActionPerformed(e));
    contentPane.add(btn_signUp, CC.xy(9, 5, CC.DEFAULT, CC.TOP));

    //---- btn_login ----
    btn_login.setText("Login");
    btn_login.addActionListener(e -> btn_loginActionPerformed(e));
    contentPane.add(btn_login, CC.xy(11, 5, CC.LEFT, CC.TOP));
    pack();/*  w ww  .j  a v  a 2  s. c o  m*/
    setLocationRelativeTo(null);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:com.cs521.team7.ProfilePage.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Evaluation license - abhijeet kedari
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    lbl_firstName = new JLabel();
    txt_firstName = new JTextField();
    lbl_lastName = new JLabel();
    txt_lastName = new JTextField();
    lbl_billingAddress = new JLabel();
    txt_billingAddress = new JTextField();
    lbl_shippingAddress = new JLabel();
    txt_shppingAddress = new JTextField();
    lbl_emailAddress = new JLabel();
    txt_emailAddress = new JTextField();
    lbl_phoneNumber = new JLabel();
    txt_phoneNumber = new JTextField();
    lbl_paymentMethods = new JLabel();
    combo_paymentMethods = new JComboBox();
    buttonBar = new JPanel();
    okButton = new JButton();
    cancelButton = new JButton();

    //======== this ========
    setIconImage(new ImageIcon(getClass().getResource("/logo/sonos_logo.jpg")).getImage());
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {//from   w  ww . j  av  a 2 s . c o m
        dialogPane.setBorder(Borders.createEmptyBorder("7dlu, 7dlu, 7dlu, 7dlu"));

        // JFormDesigner evaluation mark
        dialogPane.setBorder(new javax.swing.border.CompoundBorder(
                new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),
                        "JFormDesigner Evaluation", javax.swing.border.TitledBorder.CENTER,
                        javax.swing.border.TitledBorder.BOTTOM,
                        new java.awt.Font("Dialog", java.awt.Font.BOLD, 12), java.awt.Color.red),
                dialogPane.getBorder()));
        dialogPane.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent e) {
                if ("border".equals(e.getPropertyName()))
                    throw new RuntimeException();
            }
        });

        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel
                    .setLayout(new FormLayout("default, $lcgap, default:grow", "9*(default, $lgap), default"));

            //---- lbl_firstName ----
            lbl_firstName.setText("First Name");
            contentPanel.add(lbl_firstName, CC.xy(1, 1));
            contentPanel.add(txt_firstName, CC.xy(3, 1, CC.FILL, CC.DEFAULT));

            //---- lbl_lastName ----
            lbl_lastName.setText("Last Name");
            contentPanel.add(lbl_lastName, CC.xy(1, 3));
            contentPanel.add(txt_lastName, CC.xy(3, 3, CC.FILL, CC.DEFAULT));

            //---- lbl_billingAddress ----
            lbl_billingAddress.setText("Billing Address");
            contentPanel.add(lbl_billingAddress, CC.xy(1, 5));
            contentPanel.add(txt_billingAddress, CC.xy(3, 5, CC.FILL, CC.DEFAULT));

            //---- lbl_shippingAddress ----
            lbl_shippingAddress.setText("Shipping Address");
            contentPanel.add(lbl_shippingAddress, CC.xy(1, 7));
            contentPanel.add(txt_shppingAddress, CC.xy(3, 7));

            //---- lbl_emailAddress ----
            lbl_emailAddress.setText("Email Address");
            contentPanel.add(lbl_emailAddress, CC.xy(1, 9));
            contentPanel.add(txt_emailAddress, CC.xy(3, 9));

            //---- lbl_phoneNumber ----
            lbl_phoneNumber.setText("Phone Number");
            contentPanel.add(lbl_phoneNumber, CC.xy(1, 11));
            contentPanel.add(txt_phoneNumber, CC.xy(3, 11));

            //---- lbl_paymentMethods ----
            lbl_paymentMethods.setText("Payment Method");
            contentPanel.add(lbl_paymentMethods, CC.xy(1, 13));
            contentPanel.add(combo_paymentMethods, CC.xy(3, 13));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.createEmptyBorder("5dlu, 0dlu, 0dlu, 0dlu"));
            buttonBar.setLayout(new FormLayout("$glue, $button, $rgap, $button", "pref"));

            //---- okButton ----
            okButton.setText("OK");
            okButton.addActionListener(e -> {
                try {
                    btn_okActionPerformed(e);
                } catch (SQLException e1) {
                    e1.printStackTrace();
                }
            });
            buttonBar.add(okButton, CC.xy(2, 1));

            //---- cancelButton ----
            cancelButton.setText("Cancel");
            cancelButton.addActionListener(e -> {
                try {
                    btn_cancelActionPerformed(e);
                } catch (SQLException e1) {
                    e1.printStackTrace();
                }
            });
            buttonBar.add(cancelButton, CC.xy(4, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    pack();
    setLocationRelativeTo(null);
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}