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

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

Introduction

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

Prototype

public CellConstraints xy(int col, int row) 

Source Link

Document

Sets column and row origins; sets width and height to 1; uses the default alignments.

Examples:

 cc.xy(1, 1); cc.xy(1, 3); 

Usage

From source file:com.tiempometa.muestradatos.JMuestraDatos.java

License:Mozilla Public License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY
    // //GEN-BEGIN:initComponents
    ResourceBundle bundle = ResourceBundle.getBundle("com.tiempometa.muestradatos.muestradatos");
    menuBar1 = new JMenuBar();
    menu1 = new JMenu();
    configMenuItem = new JMenuItem();
    importTagsMenuItem = new JMenuItem();
    exportTagsMenuItem = new JMenuItem();
    clearTagsMenuItem = new JMenuItem();
    exitMenuItem = new JMenuItem();
    menu3 = new JMenu();
    aboutUsMenuItem = new JMenuItem();
    configureJavaMenuItem = new JMenuItem();
    panel5 = new JPanel();
    panel3 = new JPanel();
    panel4 = new JPanel();
    tabbedPane1 = new JTabbedPane();
    panel2 = new JPanel();
    label9 = new JLabel();
    label10 = new JLabel();
    label3 = new JLabel();
    readerPortLabel = new JLabel();
    label11 = new JLabel();
    boxIpAddressLabel = new JLabel();
    label4 = new JLabel();
    readerStatusLabel = new JLabel();
    label12 = new JLabel();
    boxTypeLabel = new JLabel();
    label2 = new JLabel();
    rssiLevelLabel = new JLabel();
    label13 = new JLabel();
    preferredReaderLabel = new JLabel();
    label5 = new JLabel();
    regionLabel = new JLabel();
    label14 = new JLabel();
    preferredAntenaLabel = new JLabel();
    label6 = new JLabel();
    readPowerLabel = new JLabel();
    label7 = new JLabel();
    writePowerLevel = new JLabel();
    usbConnectButton = new JButton();
    boxConnectButton = new JButton();
    panel1 = new JPanel();
    verifyDataButton = new JButton();
    loadReadingsButton = new JButton();
    readTagButton = new JButton();
    countTagsButton = new JButton();
    programTagButton = new JButton();
    panel8 = new JPanel();
    setBoxTimeButton = new JButton();
    getBoxTimeButton = new JButton();
    label20 = new JLabel();
    label19 = new JLabel();
    systemTimeLabel = new JLabel();
    foxberryTimeLabel = new JLabel();
    foxberryTimeDiffLabel = new JLabel();
    panel6 = new JPanel();
    label21 = new JLabel();
    label1 = new JLabel();
    usbStatusLabel = new JLabel();
    label16 = new JLabel();
    tcpStatusLabel = new JLabel();
    label8 = new JLabel();
    databaseLabel = new JLabel();
    panel7 = new JPanel();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle(bundle.getString("JMuestraDatos.this.title"));
    setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    setIconImage(// w w  w . j  av a  2 s .c  o m
            new ImageIcon(getClass().getResource("/com/tiempometa/resources/tiempometa_icon_large_alpha.png"))
                    .getImage());
    setResizable(false);
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== menuBar1 ========
    {

        //======== menu1 ========
        {
            menu1.setText(bundle.getString("JMuestraDatos.menu1.text"));

            //---- configMenuItem ----
            configMenuItem.setText(bundle.getString("JMuestraDatos.configMenuItem.text"));
            configMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    configMenuItemActionPerformed(e);
                }
            });
            menu1.add(configMenuItem);

            //---- importTagsMenuItem ----
            importTagsMenuItem.setText(bundle.getString("JMuestraDatos.importTagsMenuItem.text"));
            importTagsMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    importTagsMenuItemActionPerformed(e);
                }
            });
            menu1.add(importTagsMenuItem);

            //---- exportTagsMenuItem ----
            exportTagsMenuItem.setText(bundle.getString("JMuestraDatos.exportTagsMenuItem.text"));
            exportTagsMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    exportTagsMenuItemActionPerformed(e);
                }
            });
            menu1.add(exportTagsMenuItem);

            //---- clearTagsMenuItem ----
            clearTagsMenuItem.setText(bundle.getString("JMuestraDatos.clearTagsMenuItem.text"));
            clearTagsMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    clearTagsMenuItemActionPerformed(e);
                }
            });
            menu1.add(clearTagsMenuItem);
            menu1.addSeparator();

            //---- exitMenuItem ----
            exitMenuItem.setText(bundle.getString("JMuestraDatos.exitMenuItem.text"));
            exitMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    menuItem2ActionPerformed(e);
                }
            });
            menu1.add(exitMenuItem);
        }
        menuBar1.add(menu1);

        //======== menu3 ========
        {
            menu3.setText(bundle.getString("JMuestraDatos.menu3.text"));

            //---- aboutUsMenuItem ----
            aboutUsMenuItem.setText(bundle.getString("JMuestraDatos.aboutUsMenuItem.text"));
            aboutUsMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    aboutUsMenuItemActionPerformed(e);
                }
            });
            menu3.add(aboutUsMenuItem);

            //---- configureJavaMenuItem ----
            configureJavaMenuItem.setText(bundle.getString("JMuestraDatos.configureJavaMenuItem.text"));
            configureJavaMenuItem.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    configureJavaMenuItemActionPerformed(e);
                }
            });
            menu3.add(configureJavaMenuItem);
        }
        menuBar1.add(menu3);
    }
    setJMenuBar(menuBar1);

    //======== panel5 ========
    {
        panel5.setLayout(new FormLayout(
                new ColumnSpec[] { new ColumnSpec(Sizes.dluX(18)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(Sizes.dluX(343)) },
                new RowSpec[] { new RowSpec(Sizes.dluY(17)), FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(Sizes.dluY(17)) }));
    }
    contentPane.add(panel5, BorderLayout.NORTH);

    //======== panel3 ========
    {
        panel3.setLayout(new FormLayout(
                new ColumnSpec[] { new ColumnSpec(Sizes.dluX(16)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC },
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC }));
    }
    contentPane.add(panel3, BorderLayout.WEST);

    //======== panel4 ========
    {
        panel4.setLayout(
                new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(410)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                        RowSpec.decodeSpecs("245dlu")));

        //======== tabbedPane1 ========
        {
            tabbedPane1.setFont(new Font("Tahoma", Font.BOLD, 16));

            //======== panel2 ========
            {
                panel2.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(25)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(89)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(73)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(17)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(84)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(80)) },
                        new RowSpec[] { new RowSpec(Sizes.dluY(20)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(Sizes.DLUY8) }));

                //---- label9 ----
                label9.setText(bundle.getString("JMuestraDatos.label9.text"));
                label9.setFont(new Font("Tahoma", Font.BOLD, 16));
                label9.setIcon(new ImageIcon(getClass().getResource("/com/tiempometa/resources/usb_128.png")));
                label9.setHorizontalAlignment(SwingConstants.CENTER);
                panel2.add(label9, cc.xywh(3, 3, 3, 1));

                //---- label10 ----
                label10.setText(bundle.getString("JMuestraDatos.label10.text"));
                label10.setFont(new Font("Tahoma", Font.BOLD, 16));
                label10.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/briefcase_128.png")));
                label10.setHorizontalAlignment(SwingConstants.CENTER);
                panel2.add(label10, cc.xywh(9, 3, 3, 1));

                //---- label3 ----
                label3.setText(bundle.getString("JMuestraDatos.label3.text"));
                label3.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label3, cc.xy(3, 5));

                //---- readerPortLabel ----
                readerPortLabel.setText(bundle.getString("JMuestraDatos.readerPortLabel.text"));
                panel2.add(readerPortLabel, cc.xy(5, 5));

                //---- label11 ----
                label11.setText(bundle.getString("JMuestraDatos.label11.text"));
                label11.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label11, cc.xy(9, 5));

                //---- boxIpAddressLabel ----
                boxIpAddressLabel.setText(bundle.getString("JMuestraDatos.boxIpAddressLabel.text"));
                panel2.add(boxIpAddressLabel, cc.xy(11, 5));

                //---- label4 ----
                label4.setText(bundle.getString("JMuestraDatos.label4.text"));
                label4.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label4, cc.xy(3, 7));

                //---- readerStatusLabel ----
                readerStatusLabel.setText(bundle.getString("JMuestraDatos.readerStatusLabel.text"));
                panel2.add(readerStatusLabel, cc.xy(5, 7));

                //---- label12 ----
                label12.setText(bundle.getString("JMuestraDatos.label12.text"));
                label12.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label12, cc.xy(9, 7));

                //---- boxTypeLabel ----
                boxTypeLabel.setText(bundle.getString("JMuestraDatos.boxTypeLabel.text"));
                panel2.add(boxTypeLabel, cc.xy(11, 7));

                //---- label2 ----
                label2.setText(bundle.getString("JMuestraDatos.label2.text"));
                label2.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label2, cc.xy(3, 9));

                //---- rssiLevelLabel ----
                rssiLevelLabel.setText(bundle.getString("JMuestraDatos.rssiLevelLabel.text"));
                panel2.add(rssiLevelLabel, cc.xy(5, 9));

                //---- label13 ----
                label13.setText(bundle.getString("JMuestraDatos.label13.text"));
                label13.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label13, cc.xy(9, 9));

                //---- preferredReaderLabel ----
                preferredReaderLabel.setText(bundle.getString("JMuestraDatos.preferredReaderLabel.text"));
                panel2.add(preferredReaderLabel, cc.xy(11, 9));

                //---- label5 ----
                label5.setText(bundle.getString("JMuestraDatos.label5.text"));
                label5.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label5, cc.xy(3, 11));

                //---- regionLabel ----
                regionLabel.setText(bundle.getString("JMuestraDatos.regionLabel.text"));
                panel2.add(regionLabel, cc.xy(5, 11));

                //---- label14 ----
                label14.setText(bundle.getString("JMuestraDatos.label14.text"));
                label14.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label14, cc.xy(9, 11));

                //---- preferredAntenaLabel ----
                preferredAntenaLabel.setText(bundle.getString("JMuestraDatos.preferredAntenaLabel.text"));
                panel2.add(preferredAntenaLabel, cc.xy(11, 11));

                //---- label6 ----
                label6.setText(bundle.getString("JMuestraDatos.label6.text"));
                label6.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label6, cc.xy(3, 13));

                //---- readPowerLabel ----
                readPowerLabel.setText(bundle.getString("JMuestraDatos.readPowerLabel.text"));
                panel2.add(readPowerLabel, cc.xy(5, 13));

                //---- label7 ----
                label7.setText(bundle.getString("JMuestraDatos.label7.text"));
                label7.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel2.add(label7, cc.xy(3, 15));

                //---- writePowerLevel ----
                writePowerLevel.setText(bundle.getString("JMuestraDatos.writePowerLevel.text"));
                panel2.add(writePowerLevel, cc.xy(5, 15));

                //---- usbConnectButton ----
                usbConnectButton.setText(bundle.getString("JMuestraDatos.usbConnectButton.text"));
                usbConnectButton.setFont(new Font("Tahoma", Font.BOLD, 14));
                usbConnectButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        usbConnectButtonActionPerformed(e);
                    }
                });
                panel2.add(usbConnectButton, cc.xywh(3, 17, 3, 1));

                //---- boxConnectButton ----
                boxConnectButton.setText(bundle.getString("JMuestraDatos.boxConnectButton.text"));
                boxConnectButton.setFont(new Font("Tahoma", Font.BOLD, 14));
                boxConnectButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        boxConnectButtonActionPerformed(e);
                    }
                });
                panel2.add(boxConnectButton, cc.xywh(9, 17, 3, 1));
            }
            tabbedPane1.addTab(bundle.getString("JMuestraDatos.panel2.tab.title"), panel2);

            //======== panel1 ========
            {
                panel1.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(35)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(120)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(47)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(130)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(28)) },
                        new RowSpec[] { new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC }));

                //---- verifyDataButton ----
                verifyDataButton.setText(bundle.getString("JMuestraDatos.verifyDataButton.text"));
                verifyDataButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/check_64.png")));
                verifyDataButton.setHorizontalAlignment(SwingConstants.LEFT);
                verifyDataButton.setRolloverIcon(null);
                verifyDataButton.setPressedIcon(null);
                verifyDataButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                verifyDataButton.setEnabled(false);
                verifyDataButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        verifyDataButtonActionPerformed(e);
                    }
                });
                panel1.add(verifyDataButton, cc.xywh(3, 3, 3, 1));

                //---- loadReadingsButton ----
                loadReadingsButton.setText(bundle.getString("JMuestraDatos.loadReadingsButton.text"));
                loadReadingsButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/load_64.png")));
                loadReadingsButton.setHorizontalAlignment(SwingConstants.LEFT);
                loadReadingsButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                loadReadingsButton.setEnabled(false);
                loadReadingsButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        loadReadingsButtonActionPerformed(e);
                    }
                });
                panel1.add(loadReadingsButton, cc.xywh(7, 3, 3, 1));

                //---- readTagButton ----
                readTagButton.setText(bundle.getString("JMuestraDatos.readTagButton.text"));
                readTagButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/scan_64.png")));
                readTagButton.setHorizontalAlignment(SwingConstants.LEFT);
                readTagButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                readTagButton.setEnabled(false);
                readTagButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        readTagButtonActionPerformed(e);
                    }
                });
                panel1.add(readTagButton, cc.xywh(3, 5, 3, 1));

                //---- countTagsButton ----
                countTagsButton.setText(bundle.getString("JMuestraDatos.countTagsButton.text"));
                countTagsButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/counter_64.png")));
                countTagsButton.setHorizontalAlignment(SwingConstants.LEFT);
                countTagsButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                countTagsButton.setEnabled(false);
                countTagsButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        countTagsButtonActionPerformed(e);
                    }
                });
                panel1.add(countTagsButton, cc.xywh(7, 5, 3, 1));

                //---- programTagButton ----
                programTagButton.setText(bundle.getString("JMuestraDatos.programTagButton.text"));
                programTagButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/record_64.png")));
                programTagButton.setHorizontalAlignment(SwingConstants.LEFT);
                programTagButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                programTagButton.setEnabled(false);
                programTagButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        programTagButtonActionPerformed(e);
                    }
                });
                panel1.add(programTagButton, cc.xywh(3, 7, 3, 1));
            }
            tabbedPane1.addTab(bundle.getString("JMuestraDatos.panel1.tab.title"), panel1);

            //======== panel8 ========
            {
                panel8.setLayout(new FormLayout(
                        new ColumnSpec[] { new ColumnSpec(Sizes.dluX(35)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(160)),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(160)) },
                        new RowSpec[] { new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC }));

                //---- setBoxTimeButton ----
                setBoxTimeButton.setText(bundle.getString("JMuestraDatos.setBoxTimeButton.text"));
                setBoxTimeButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/set_time_64.png")));
                setBoxTimeButton.setHorizontalAlignment(SwingConstants.LEFT);
                setBoxTimeButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                setBoxTimeButton.setEnabled(false);
                setBoxTimeButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        setBoxTimeButtonActionPerformed(e);
                    }
                });
                panel8.add(setBoxTimeButton, cc.xy(3, 3));

                //---- getBoxTimeButton ----
                getBoxTimeButton.setText(bundle.getString("JMuestraDatos.getBoxTimeButton.text"));
                getBoxTimeButton.setIcon(
                        new ImageIcon(getClass().getResource("/com/tiempometa/resources/get_time_64.png")));
                getBoxTimeButton.setHorizontalAlignment(SwingConstants.LEFT);
                getBoxTimeButton.setFont(new Font("Tahoma", Font.BOLD, 16));
                getBoxTimeButton.setEnabled(false);
                getBoxTimeButton.addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(ActionEvent e) {
                        getBoxTimeButtonActionPerformed(e);
                    }
                });
                panel8.add(getBoxTimeButton, cc.xy(5, 3));

                //---- label20 ----
                label20.setText(bundle.getString("JMuestraDatos.label20.text"));
                label20.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel8.add(label20, cc.xy(3, 5));

                //---- label19 ----
                label19.setText(bundle.getString("JMuestraDatos.label19.text"));
                label19.setFont(new Font("Tahoma", Font.BOLD, 14));
                panel8.add(label19, cc.xy(5, 5));
                panel8.add(systemTimeLabel, cc.xy(3, 7));
                panel8.add(foxberryTimeLabel, cc.xy(5, 7));
                panel8.add(foxberryTimeDiffLabel, cc.xy(5, 9));
            }
            tabbedPane1.addTab(bundle.getString("JMuestraDatos.panel8.tab.title"), panel8);
        }
        panel4.add(tabbedPane1, cc.xy(1, 1));
    }
    contentPane.add(panel4, BorderLayout.CENTER);

    //======== panel6 ========
    {
        panel6.setLayout(new FormLayout(
                new ColumnSpec[] { new ColumnSpec(Sizes.dluX(17)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(Sizes.dluX(65)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(Sizes.dluX(65)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(Sizes.dluX(199)) },
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));

        //---- label21 ----
        label21.setText(bundle.getString("JMuestraDatos.label21.text"));
        label21.setFont(new Font("Tahoma", Font.BOLD, 16));
        panel6.add(label21, cc.xy(3, 1));

        //---- label1 ----
        label1.setText(bundle.getString("JMuestraDatos.label1.text"));
        label1.setFont(new Font("Tahoma", Font.PLAIN, 14));
        panel6.add(label1, cc.xy(5, 1));

        //---- usbStatusLabel ----
        usbStatusLabel.setText(bundle.getString("JMuestraDatos.usbStatusLabel.text"));
        usbStatusLabel.setFont(new Font("Tahoma", Font.PLAIN, 14));
        panel6.add(usbStatusLabel, cc.xy(7, 1));

        //---- label16 ----
        label16.setText(bundle.getString("JMuestraDatos.label16.text"));
        label16.setFont(new Font("Tahoma", Font.PLAIN, 14));
        panel6.add(label16, cc.xy(9, 1));

        //---- tcpStatusLabel ----
        tcpStatusLabel.setText(bundle.getString("JMuestraDatos.tcpStatusLabel.text"));
        tcpStatusLabel.setFont(new Font("Tahoma", Font.PLAIN, 14));
        panel6.add(tcpStatusLabel, cc.xy(11, 1));

        //---- label8 ----
        label8.setText(bundle.getString("JMuestraDatos.label8.text"));
        label8.setFont(new Font("Tahoma", Font.BOLD, 16));
        panel6.add(label8, cc.xy(3, 3));

        //---- databaseLabel ----
        databaseLabel.setText(bundle.getString("JMuestraDatos.databaseLabel.text"));
        panel6.add(databaseLabel, cc.xywh(3, 5, 11, 1));
    }
    contentPane.add(panel6, BorderLayout.SOUTH);

    //======== panel7 ========
    {
        panel7.setLayout(new FormLayout(
                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC },
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC }));
    }
    contentPane.add(panel7, BorderLayout.EAST);
    setSize(740, 620);
    setLocationRelativeTo(getOwner());
    // //GEN-END:initComponents
}

From source file:com.tiempometa.muestradatos.JProgramTags.java

License:Mozilla Public License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY
    // //GEN-BEGIN:initComponents
    ResourceBundle bundle = ResourceBundle.getBundle("com.tiempometa.muestradatos.muestradatos");
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    label1 = new JLabel();
    statusLabel = new JLabel();
    nextChipnumberTextField = new JTextField();
    programButton = new JButton();
    bibLabel = new JLabel();
    label3 = new JLabel();
    tidTextField = new JTextField();
    label4 = new JLabel();
    epcTextField = new JTextField();
    label5 = new JLabel();
    programmedEpcTextField = new JTextField();
    scrollPane1 = new JScrollPane();
    tagReadTable = new JTable();
    lockCheckbox = new JCheckBox();
    label2 = new JLabel();
    accessPasswordTextField = new JTextField();
    label6 = new JLabel();
    killPasswordTextField = new JTextField();
    checkBox1 = new JCheckBox();
    buttonBar = new JPanel();
    closeButton = new JButton();
    CellConstraints cc = new CellConstraints();

    // ======== this ========
    setTitle(bundle.getString("JProgramTags.this.title"));
    setIconImage(//from  ww  w .  j  a v a  2  s. c  o  m
            new ImageIcon(getClass().getResource("/com/tiempometa/resources/tiempometa_icon_large_alpha.png"))
                    .getImage());
    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    // ======== dialogPane ========
    {
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setLayout(new BorderLayout());

        // ======== contentPanel ========
        {
            contentPanel.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(86)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(73)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(71)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(68)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(97)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(10)), FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(Sizes.dluY(15)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(Sizes.dluY(17)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC }));

            // ---- label1 ----
            label1.setText(bundle.getString("JProgramTags.label1.text"));
            label1.setFont(new Font("Tahoma", Font.PLAIN, 36));
            contentPanel.add(label1, cc.xywh(3, 5, 3, 1));

            // ---- statusLabel ----
            statusLabel.setText(bundle.getString("JProgramTags.statusLabel.text"));
            statusLabel.setHorizontalAlignment(SwingConstants.CENTER);
            statusLabel.setBackground(Color.yellow);
            statusLabel.setOpaque(true);
            statusLabel.setFont(new Font("Tahoma", Font.BOLD, 20));
            contentPanel.add(statusLabel, cc.xywh(9, 3, 3, 5));

            // ---- nextChipnumberTextField ----
            nextChipnumberTextField.setFont(new Font("Tahoma", Font.PLAIN, 36));
            contentPanel.add(nextChipnumberTextField, cc.xy(7, 5));

            // ---- programButton ----
            programButton.setText(bundle.getString("JProgramTags.programButton.text"));
            programButton.setFont(new Font("Tahoma", Font.PLAIN, 14));
            programButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    programButtonActionPerformed(e);
                }
            });
            contentPanel.add(programButton, cc.xywh(3, 7, 3, 1));

            // ---- bibLabel ----
            bibLabel.setForeground(Color.red);
            bibLabel.setFont(new Font("Tahoma", Font.BOLD, 36));
            bibLabel.setHorizontalAlignment(SwingConstants.CENTER);
            contentPanel.add(bibLabel, cc.xy(11, 9));

            // ---- label3 ----
            label3.setText(bundle.getString("JProgramTags.label3.text"));
            label3.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(label3, cc.xy(7, 11));

            // ---- tidTextField ----
            tidTextField.setEditable(false);
            tidTextField.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(tidTextField, cc.xywh(9, 11, 3, 1));

            // ---- label4 ----
            label4.setText(bundle.getString("JProgramTags.label4.text"));
            label4.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(label4, cc.xy(7, 13));

            // ---- epcTextField ----
            epcTextField.setEditable(false);
            epcTextField.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(epcTextField, cc.xywh(9, 13, 3, 1));

            // ---- label5 ----
            label5.setText(bundle.getString("JProgramTags.label5.text"));
            label5.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(label5, cc.xy(7, 15));

            // ---- programmedEpcTextField ----
            programmedEpcTextField.setEditable(false);
            programmedEpcTextField.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(programmedEpcTextField, cc.xywh(9, 15, 3, 1));

            // ======== scrollPane1 ========
            {
                scrollPane1.setViewportView(tagReadTable);
            }
            contentPanel.add(scrollPane1, cc.xywh(3, 17, 9, 1));

            // ---- lockCheckbox ----
            lockCheckbox.setText(bundle.getString("JProgramTags.lockCheckbox.text"));
            lockCheckbox.setSelected(true);
            lockCheckbox.setFont(new Font("Tahoma", Font.PLAIN, 14));
            lockCheckbox.addItemListener(new ItemListener() {
                @Override
                public void itemStateChanged(ItemEvent e) {
                    checkBox2ItemStateChanged(e);
                }
            });
            contentPanel.add(lockCheckbox, cc.xy(3, 19));

            // ---- label2 ----
            label2.setText(bundle.getString("JProgramTags.label2.text"));
            label2.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(label2, cc.xy(5, 19));

            // ---- accessPasswordTextField ----
            accessPasswordTextField.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(accessPasswordTextField, cc.xy(7, 19));

            // ---- label6 ----
            label6.setText(bundle.getString("JProgramTags.label6.text"));
            label6.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(label6, cc.xy(5, 21));

            // ---- killPasswordTextField ----
            killPasswordTextField.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(killPasswordTextField, cc.xy(7, 21));

            // ---- checkBox1 ----
            checkBox1.setText(bundle.getString("JProgramTags.checkBox1.text"));
            checkBox1.setEnabled(false);
            contentPanel.add(checkBox1, cc.xy(9, 21));
        }
        dialogPane.add(contentPanel, BorderLayout.EAST);

        // ======== buttonBar ========
        {
            buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER);
            buttonBar.setLayout(
                    new FormLayout(new ColumnSpec[] { FormFactory.GLUE_COLSPEC, FormFactory.BUTTON_COLSPEC },
                            RowSpec.decodeSpecs("pref")));

            // ---- closeButton ----
            closeButton.setText("Cerrar");
            closeButton.setFont(new Font("Tahoma", Font.PLAIN, 14));
            closeButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    closeButtonActionPerformed(e);
                }
            });
            buttonBar.add(closeButton, cc.xy(2, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    setSize(700, 625);
    setLocationRelativeTo(getOwner());
    // //GEN-END:initComponents
}

From source file:com.tiempometa.muestradatos.JReadTags.java

License:Mozilla Public License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY
    // //GEN-BEGIN:initComponents
    ResourceBundle bundle = ResourceBundle.getBundle("com.tiempometa.muestradatos.muestradatos");
    dialogPane = new JPanel();
    contentPanel = new JPanel();
    label2 = new JLabel();
    nextBibTextField = new JTextField();
    statusLabel = new JLabel();
    startReadingButton = new JButton();
    bibLabel = new JLabel();
    scrollPane1 = new JScrollPane();
    tagReadTable = new JTable();
    label3 = new JLabel();
    tidTextField = new JTextField();
    deleteSelectedButton = new JButton();
    label4 = new JLabel();
    epcTextField = new JTextField();
    deleteReadButton = new JButton();
    label1 = new JLabel();
    dataToStoreComboBox = new JComboBox<>();
    deleteAllButton = new JButton();
    allowDuplicateBibsCheckBox = new JCheckBox();
    buttonBar = new JPanel();
    closeButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle(bundle.getString("JReadTags.this.title"));
    setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    setResizable(false);/*from   ww  w . ja  v a  2  s.  co  m*/
    setIconImage(
            new ImageIcon(getClass().getResource("/com/tiempometa/resources/tiempometa_icon_large_alpha.png"))
                    .getImage());
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {
        dialogPane.setBorder(Borders.DIALOG_BORDER);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {
            contentPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(15)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(52)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(138)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(71)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(155)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(17)), FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(Sizes.dluY(20)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(Sizes.dluY(20)), FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(Sizes.dluY(25)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC }));

            //---- label2 ----
            label2.setText(bundle.getString("JReadTags.label2.text"));
            label2.setFont(new Font("Tahoma", Font.PLAIN, 36));
            contentPanel.add(label2, cc.xywh(3, 5, 3, 1));

            //---- nextBibTextField ----
            nextBibTextField.setFont(new Font("Tahoma", Font.PLAIN, 36));
            nextBibTextField.setHorizontalAlignment(SwingConstants.RIGHT);
            nextBibTextField.setText(bundle.getString("JReadTags.nextBibTextField.text"));
            contentPanel.add(nextBibTextField, cc.xy(7, 5));

            //---- statusLabel ----
            statusLabel.setText(bundle.getString("JReadTags.statusLabel.text"));
            statusLabel.setHorizontalAlignment(SwingConstants.CENTER);
            statusLabel.setBackground(Color.yellow);
            statusLabel.setOpaque(true);
            statusLabel.setFont(new Font("Tahoma", Font.BOLD, 20));
            contentPanel.add(statusLabel, cc.xywh(9, 3, 1, 5));

            //---- startReadingButton ----
            startReadingButton.setText(bundle.getString("JReadTags.startReadingButton.text"));
            startReadingButton.setFont(new Font("Tahoma", Font.PLAIN, 14));
            startReadingButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    startReadingButtonActionPerformed(e);
                }
            });
            contentPanel.add(startReadingButton, cc.xywh(3, 7, 3, 1));

            //---- bibLabel ----
            bibLabel.setForeground(Color.red);
            bibLabel.setFont(new Font("Tahoma", Font.BOLD, 36));
            bibLabel.setHorizontalAlignment(SwingConstants.CENTER);
            contentPanel.add(bibLabel, cc.xy(9, 9));

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(tagReadTable);
            }
            contentPanel.add(scrollPane1, cc.xywh(3, 11, 7, 1));

            //---- label3 ----
            label3.setText(bundle.getString("JReadTags.label3.text"));
            label3.setHorizontalAlignment(SwingConstants.RIGHT);
            label3.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(label3, cc.xy(3, 13));

            //---- tidTextField ----
            tidTextField.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(tidTextField, cc.xy(5, 13));

            //---- deleteSelectedButton ----
            deleteSelectedButton.setText(bundle.getString("JReadTags.deleteSelectedButton.text"));
            deleteSelectedButton.setFont(new Font("Tahoma", Font.PLAIN, 14));
            deleteSelectedButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    deleteSelectedButtonActionPerformed(e);
                }
            });
            contentPanel.add(deleteSelectedButton, cc.xy(9, 13));

            //---- label4 ----
            label4.setText(bundle.getString("JReadTags.label4.text"));
            label4.setHorizontalAlignment(SwingConstants.RIGHT);
            label4.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(label4, cc.xy(3, 15));

            //---- epcTextField ----
            epcTextField.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(epcTextField, cc.xy(5, 15));

            //---- deleteReadButton ----
            deleteReadButton.setText(bundle.getString("JReadTags.deleteReadButton.text"));
            deleteReadButton.setFont(new Font("Tahoma", Font.PLAIN, 14));
            deleteReadButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    deleteReadButtonActionPerformed(e);
                }
            });
            contentPanel.add(deleteReadButton, cc.xy(9, 15));

            //---- label1 ----
            label1.setText(bundle.getString("JReadTags.label1.text"));
            label1.setHorizontalAlignment(SwingConstants.RIGHT);
            label1.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(label1, cc.xy(3, 17));

            //---- dataToStoreComboBox ----
            dataToStoreComboBox.setModel(new DefaultComboBoxModel<>(new String[] { "EPC", "TID" }));
            dataToStoreComboBox.setFont(new Font("Tahoma", Font.PLAIN, 14));
            contentPanel.add(dataToStoreComboBox, cc.xy(5, 17));

            //---- deleteAllButton ----
            deleteAllButton.setText(bundle.getString("JReadTags.deleteAllButton.text"));
            deleteAllButton.setFont(new Font("Tahoma", Font.PLAIN, 14));
            deleteAllButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    deleteAllButtonActionPerformed(e);
                }
            });
            contentPanel.add(deleteAllButton, cc.xy(9, 17));

            //---- allowDuplicateBibsCheckBox ----
            allowDuplicateBibsCheckBox.setText(bundle.getString("JReadTags.allowDuplicateBibsCheckBox.text"));
            contentPanel.add(allowDuplicateBibsCheckBox, cc.xy(5, 19));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(Borders.BUTTON_BAR_GAP_BORDER);
            buttonBar.setLayout(
                    new FormLayout(new ColumnSpec[] { FormFactory.GLUE_COLSPEC, FormFactory.BUTTON_COLSPEC },
                            RowSpec.decodeSpecs("pref")));

            //---- closeButton ----
            closeButton.setText("Cerrar");
            closeButton.setFont(new Font("Tahoma", Font.PLAIN, 14));
            closeButton.addActionListener(new ActionListener() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    closeButtonActionPerformed(e);
                }
            });
            buttonBar.add(closeButton, cc.xy(2, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
    setSize(710, 675);
    setLocationRelativeTo(getOwner());
    // //GEN-END:initComponents
}

From source file:com.tiempometa.muestradatos.JUserDataFrame.java

License:Mozilla Public License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY
    // //GEN-BEGIN:initComponents
    ResourceBundle bundle = ResourceBundle.getBundle("com.tiempometa.muestradatos.muestradatos");
    bibLabel = new JLabel();
    label1 = new JLabel();
    nameLabel = new JLabel();
    label2 = new JLabel();
    birthdateLabel = new JLabel();
    label3 = new JLabel();
    genderLabel = new JLabel();
    label4 = new JLabel();
    distanceLabel = new JLabel();
    label5 = new JLabel();
    categoryLabel = new JLabel();
    label6 = new JLabel();
    colorLabel = new JLabel();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setTitle(bundle.getString("JUserDataFrame.this.title"));
    setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    setUndecorated(true);/*from w w w  .ja  v  a 2 s . c  o m*/
    setIconImage(
            new ImageIcon(getClass().getResource("/com/tiempometa/resources/tiempometa_icon_large_alpha.png"))
                    .getImage());
    Container contentPane = getContentPane();
    contentPane.setLayout(new FormLayout(
            new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.dluX(50), FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(74)),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(ColumnSpec.FILL, Sizes.dluX(176), FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(228)),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(21)) },
            new RowSpec[] { new RowSpec(Sizes.dluY(23)), FormFactory.LINE_GAP_ROWSPEC,
                    new RowSpec(Sizes.dluY(179)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(13)),
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

    //---- bibLabel ----
    bibLabel.setText(bundle.getString("JUserDataFrame.bibLabel.text"));
    bibLabel.setFont(new Font("Tahoma", Font.PLAIN, 120));
    bibLabel.setForeground(Color.red);
    contentPane.add(bibLabel, cc.xy(9, 3));

    //---- label1 ----
    label1.setText(bundle.getString("JUserDataFrame.label1.text"));
    label1.setFont(new Font("Tahoma", Font.BOLD, 48));
    contentPane.add(label1, cc.xy(3, 7));

    //---- nameLabel ----
    nameLabel.setText(bundle.getString("JUserDataFrame.nameLabel.text"));
    nameLabel.setFont(new Font("Tahoma", Font.PLAIN, 48));
    contentPane.add(nameLabel, cc.xywh(5, 7, 7, 1));

    //---- label2 ----
    label2.setText(bundle.getString("JUserDataFrame.label2.text"));
    label2.setFont(new Font("Tahoma", Font.BOLD, 48));
    contentPane.add(label2, cc.xy(3, 9));

    //---- birthdateLabel ----
    birthdateLabel.setText(bundle.getString("JUserDataFrame.birthdateLabel.text"));
    birthdateLabel.setFont(new Font("Tahoma", Font.PLAIN, 48));
    contentPane.add(birthdateLabel, cc.xywh(5, 9, 5, 1));

    //---- label3 ----
    label3.setText(bundle.getString("JUserDataFrame.label3.text"));
    label3.setFont(new Font("Tahoma", Font.BOLD, 48));
    contentPane.add(label3, cc.xy(3, 11));

    //---- genderLabel ----
    genderLabel.setText(bundle.getString("JUserDataFrame.genderLabel.text"));
    genderLabel.setFont(new Font("Tahoma", Font.PLAIN, 48));
    contentPane.add(genderLabel, cc.xywh(5, 11, 3, 1));

    //---- label4 ----
    label4.setText(bundle.getString("JUserDataFrame.label4.text"));
    label4.setFont(new Font("Tahoma", Font.BOLD, 48));
    contentPane.add(label4, cc.xy(3, 13));

    //---- distanceLabel ----
    distanceLabel.setText(bundle.getString("JUserDataFrame.distanceLabel.text"));
    distanceLabel.setFont(new Font("Tahoma", Font.PLAIN, 48));
    contentPane.add(distanceLabel, cc.xywh(5, 13, 3, 1));

    //---- label5 ----
    label5.setText(bundle.getString("JUserDataFrame.label5.text"));
    label5.setFont(new Font("Tahoma", Font.BOLD, 48));
    contentPane.add(label5, cc.xy(3, 15));

    //---- categoryLabel ----
    categoryLabel.setText(bundle.getString("JUserDataFrame.categoryLabel.text"));
    categoryLabel.setFont(new Font("Tahoma", Font.PLAIN, 48));
    contentPane.add(categoryLabel, cc.xywh(5, 15, 5, 1));

    //---- label6 ----
    label6.setText(bundle.getString("JUserDataFrame.label6.text"));
    label6.setFont(new Font("Tahoma", Font.BOLD, 48));
    contentPane.add(label6, cc.xy(3, 17));

    //---- colorLabel ----
    colorLabel.setText(bundle.getString("JUserDataFrame.colorLabel.text"));
    colorLabel.setFont(new Font("Tahoma", Font.PLAIN, 48));
    contentPane.add(colorLabel, cc.xywh(5, 17, 3, 1));
    setSize(1380, 800);
    setLocationRelativeTo(getOwner());
    // //GEN-END:initComponents
}

From source file:com.toedter.e4.demo.contacts.swing.views.DetailsView.java

License:Open Source License

@Inject
public DetailsView(JPanel parent) {

    FormLayout layout = new FormLayout("right:max(50dlu;p), 4dlu, pref:grow, 3dlu, 40dlu",
            "p, 1dlu, p, 1dlu, p, 1dlu, p, 1dlu, p, 1dlu, p, 4dlu, p, 1dlu, p, 1dlu, p, 1dlu, p, 1dlu, p, 4dlu, p, 1dlu, p, 1dlu, p, 4dlu, p, 1dlu, p, 1dlu, p, 1dlu, p, 1dlu, p, 1dlu, p, 1dlu, p");
    // "");/*from w  w w. jav  a 2s. c om*/
    builder = new DefaultFormBuilder(layout);
    builder.setDefaultDialogBorder();
    CellConstraints cc = new CellConstraints();
    builder.addSeparator("General", cc.xyw(1, 1, 5));
    builder.addLabel("Title:", cc.xy(1, 3));
    builder.add(titleField = new JTextField(), cc.xy(3, 3));
    builder.addLabel("Name:", cc.xy(1, 5));
    builder.add(nameField = new JTextField(), cc.xy(3, 5));
    builder.addLabel("Company:", cc.xy(1, 7));
    builder.add(companyField = new JTextField(), cc.xy(3, 7));

    builder.addLabel("Job Title:", cc.xy(1, 9));
    builder.add(jobTitleField = new JTextField(), cc.xyw(3, 9, 3));

    builder.add(imageLabel = new JLabel(), cc.xywh(5, 3, 1, 5));

    builder.addLabel("Note:", cc.xy(1, 11));
    builder.add(noteField = new JTextField(), cc.xyw(3, 11, 3));

    builder.addSeparator("Business Address", cc.xyw(1, 13, 5));
    builder.addLabel("Street:", cc.xy(1, 15));
    builder.add(streetField = new JTextField(), cc.xyw(3, 15, 3));
    builder.addLabel("City:", cc.xy(1, 17));
    builder.add(cityField = new JTextField(), cc.xyw(3, 17, 3));
    builder.addLabel("Zip:", cc.xy(1, 19));
    builder.add(zipField = new JTextField(), cc.xyw(3, 19, 3));
    builder.addLabel("Country:", cc.xy(1, 21));
    builder.add(countryField = new JTextField(), cc.xyw(3, 21, 3));

    builder.addSeparator("Business Phones", cc.xyw(1, 23, 5));
    builder.addLabel("Phone:", cc.xy(1, 25));
    builder.add(phoneField = new JTextField(), cc.xyw(3, 25, 3));
    builder.addLabel("Mobile:", cc.xy(1, 27));
    builder.add(mobileField = new JTextField(), cc.xyw(3, 27, 3));

    builder.addSeparator("Business Internet", cc.xyw(1, 29, 5));
    builder.addLabel("E-Mail:", cc.xy(1, 31));
    builder.add(emailField = new JTextField(), cc.xyw(3, 31, 3));
    builder.addLabel("Web Site:", cc.xy(1, 33));
    builder.add(webSiteField = new JTextField(), cc.xyw(3, 33, 3));

    JPanel panel = builder.getPanel();
    parent.add(panel, BorderLayout.CENTER);
}

From source file:com.waitwha.nessus.trendanalyzer.gui.ServerConnectionDialog.java

License:Open Source License

public ServerConnectionDialog(JFrame parent) {
    super(parent, i18n.trans("dialog.title"), i18n.trans("dialog.subtitle"));

    this.txtUsername = new JTextField(20);
    Configuration server = ConfigurationManager.getInstance().getConfiguration("servers");
    String lastUsername = server.getProperty("last.username");
    this.txtUsername.setText(lastUsername);

    this.txtPassword = new JPasswordField(20);
    this.cboServers = new ServersComboBox();

    FormLayout layout = new FormLayout("right:pref,$lcgap,pref", "pref,$lgap,pref,$lgap,pref");
    PanelBuilder builder = new PanelBuilder(layout);
    builder.setDefaultDialogBorder();/*w  ww.j  a v  a2  s  .co m*/
    CellConstraints cc = new CellConstraints();
    builder.addLabel(i18n.trans("label.username"), cc.xy(1, 1));
    builder.add(this.txtUsername, cc.xy(3, 1));
    builder.addLabel(i18n.trans("label.password"), cc.xy(1, 3));
    builder.add(this.txtPassword, cc.xy(3, 3));
    builder.addLabel(i18n.trans("label.server"), cc.xy(1, 5));
    builder.add(this.cboServers, cc.xy(3, 5));
    JPanel contents = builder.getPanel();
    this.getContentPane().add(contents, BorderLayout.CENTER);

    JPanel buttons = new JPanel(new FlowLayout(FlowLayout.RIGHT, 3, 1));
    JButton btnOk = new JButton(i18n.trans("button.ok"));
    btnOk.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            dispose();
        }

    });
    buttons.add(btnOk);
    buttons.add(btnCancel);
    btnCancel.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            dispose();
        }

    });

    this.getContentPane().add(buttons, BorderLayout.PAGE_END);
    this.setResizable(false);
    this.pack();
    this.getRootPane().setDefaultButton(btnOk);
}

From source file:com.wol3.client.forms.OpenFileOrCombatLogForm.java

License:LGPL

private void createForm() {
    javax.swing.JPanel contentPane = (javax.swing.JPanel) getContentPane();
    contentPane.setOpaque(true);//from w w w . j  a  va 2s.  c  o  m
    contentPane.setBackground(java.awt.Color.white);
    java.lang.String rowSpec = "4dlu, fill:[200px, pref], 4dlu:g, pref";
    java.lang.String colSpec = "4dlu, [300px, pref], 4dlu, [300px, pref], 4dlu, [300px, pref], 4dlu";
    com.jgoodies.forms.builder.PanelBuilder b = new PanelBuilder(new FormLayout(colSpec, rowSpec),
            (javax.swing.JPanel) getContentPane());
    javax.swing.ImageIcon wolIcon = new ImageIcon(
            getClass().getResource("/com/wol3/client/icons/filetype-wol.png"), "");
    javax.swing.ImageIcon wolSyncIcon = new ImageIcon(
            getClass().getResource("/com/wol3/client/icons/filetype-wol-sync.png"), "");
    openFileButton = new JButton("Open a file", wolIcon);
    openCurrentLogButton = new JButton("Open the WoW Log", wolIcon);
    openRTSessionButton = new JButton("Start a Live Report Session", wolSyncIcon);
    openFileButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent e) {
            doOpenFile();
        }

        final com.wol3.client.forms.OpenFileOrCombatLogForm this$0;

        {
            _fld0 = com.wol3.client.forms.OpenFileOrCombatLogForm.this;
            super();
        }
    });
    openCurrentLogButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent e) {
            doOpenWowLogs();
        }

        final com.wol3.client.forms.OpenFileOrCombatLogForm this$0;

        {
            _fld0 = com.wol3.client.forms.OpenFileOrCombatLogForm.this;
            super();
        }
    });
    openRTSessionButton.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent e) {
            doOpenLiveReport();
        }

        final com.wol3.client.forms.OpenFileOrCombatLogForm this$0;

        {
            _fld0 = com.wol3.client.forms.OpenFileOrCombatLogForm.this;
            super();
        }
    });
    statusBar = new JLabel("Not authenticated");
    statusBar.setBorder(new CompoundBorder(javax.swing.BorderFactory.createLoweredBevelBorder(),
            javax.swing.BorderFactory.createEmptyBorder(1, 5, 1, 5)));
    com.jgoodies.forms.layout.CellConstraints cc = new CellConstraints();
    b.add(openFileButton, cc.xy(2, 2));
    b.add(openCurrentLogButton, cc.xy(4, 2));
    b.add(openRTSessionButton, cc.xy(6, 2));
    b.add(statusBar, cc.xyw(1, 4, 7));
    javax.swing.JMenu edit = new JMenu("Edit");
    javax.swing.JMenuItem prefs = new JMenuItem("Preferences");
    prefs.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent e) {
            showPreferences();
        }

        final com.wol3.client.forms.OpenFileOrCombatLogForm this$0;

        {
            _fld0 = com.wol3.client.forms.OpenFileOrCombatLogForm.this;
            super();
        }
    });
    edit.add(prefs);
    javax.swing.JMenu tools = new JMenu("Tools");
    javax.swing.JMenuItem splitter = new JMenuItem("Split & zip logs");
    splitter.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent e) {
            try {
                (new FileSplitter()).run(_fld0);
            } catch (java.lang.Exception e2) {
                e2.printStackTrace();
            }
        }

        final com.wol3.client.forms.OpenFileOrCombatLogForm this$0;

        {
            _fld0 = com.wol3.client.forms.OpenFileOrCombatLogForm.this;
            super();
        }
    });
    tools.add(splitter);
    javax.swing.JMenu help = new JMenu("Help");
    javax.swing.JMenuItem helpItem = new JMenuItem("Help");
    helpItem.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent e) {
            try {
                java.awt.Desktop.getDesktop().browse(new URI("http://worldoflogs.com/help/client/"));
            } catch (java.io.IOException e1) {
                e1.printStackTrace();
            } catch (java.net.URISyntaxException e1) {
                e1.printStackTrace();
            }
        }

        final com.wol3.client.forms.OpenFileOrCombatLogForm this$0;

        {
            _fld0 = com.wol3.client.forms.OpenFileOrCombatLogForm.this;
            super();
        }
    });
    help.add(helpItem);
    javax.swing.JMenuItem about = new JMenuItem("About");
    about.addActionListener(new java.awt.event.ActionListener() {

        public void actionPerformed(java.awt.event.ActionEvent e) {
            javax.swing.JOptionPane.showMessageDialog(_fld0,
                    "World of Logs client v5421 - (c) 2009 world of logs.com. All rights reserved.\n\nContains parts of Nuvola Icon Pack, licensed under the LGPL.");
        }

        final com.wol3.client.forms.OpenFileOrCombatLogForm this$0;

        {
            _fld0 = com.wol3.client.forms.OpenFileOrCombatLogForm.this;
            super();
        }
    });
    help.add(about);
    javax.swing.JMenuBar menu = new JMenuBar();
    menu.add(edit);
    menu.add(tools);
    menu.add(javax.swing.Box.createHorizontalGlue());
    menu.add(help);
    setJMenuBar(menu);
}

From source file:core.reporting.ExportParameters.java

License:Open Source License

/**
 * Create and return all panels assembled in one
 * //  w w  w  . ja  va 2 s . c  o m
 * @return JPanel
 */
private JPanel getAssembledComponents() {
    FormLayout lay = new FormLayout("fill:pref, 7dlu, fill:130dlu", // columns
            "pref, 7dlu, pref, 7dlu, pref"); // rows
    CellConstraints cc = new CellConstraints();
    PanelBuilder build = new PanelBuilder(lay);

    build.add(getGeneralOptionsPanel(), cc.xy(1, 1));
    build.add(getOutputOptionsPanel(), cc.xy(1, 3));
    build.add(getFieldsSelectionPanel(), cc.xywh(3, 1, 1, 3));
    if (supplier instanceof AmountViewer) {
        build.add(getNodePatternEditorPanel(), cc.xyw(1, 5, 3));
    }
    JPanel jp = build.getPanel();
    return jp;
}

From source file:core.reporting.ExportParameters.java

License:Open Source License

/**
 * Create and return the components of general options for export
 * //from  ww  w .j a v a  2 s  . com
 * @return JPanel
 */
private JPanel getGeneralOptionsPanel() {
    JComboBox jcb = TUIUtils.getJComboBox("tt" + EXPORT_HEADER, TStringUtils.getTEntryGroup(EXPORT_HEADER), "");
    addInputComponent(EXPORT_HEADER, jcb, false, true);
    jcb = TUIUtils.getJComboBox("tt" + DATE_FORMAT, TStringUtils.getTEntryGroup(DATE_FORMAT), "");
    addInputComponent(DATE_FORMAT, jcb, false, true);
    jcb = TUIUtils.getJComboBox("tt" + DECIMAL_SEPARATOR, TStringUtils.getTEntryGroup(DECIMAL_SEPARATOR), "");
    addInputComponent(DECIMAL_SEPARATOR, jcb, false, true);

    FormLayout lay = new FormLayout("left:pref, 3dlu, pref", // columns
            "pref, 3dlu, pref, 3dlu, pref"); // rows
    CellConstraints cc = new CellConstraints();
    PanelBuilder build = new PanelBuilder(lay);

    build.add(getLabelFor(EXPORT_HEADER), cc.xy(1, 1));
    build.add(getInputComponent(EXPORT_HEADER), cc.xy(3, 1));
    // 180212: not implemented yet
    // build.add(getLabelFor(DATE_FORMAT), cc.xy(1, 3));
    // build.add(getInputComponent(DATE_FORMAT), cc.xy(3, 3));
    // build.add(getLabelFor(DECIMAL_SEPARATOR), cc.xy(1, 5));
    // build.add(getInputComponent(DECIMAL_SEPARATOR), cc.xy(3, 5));
    JPanel optPanel = build.getPanel();
    optPanel.setBorder(new TitledBorder(TStringUtils.getBundleString("export.generalopt")));
    return optPanel;
}

From source file:core.reporting.ReportParameters.java

License:Open Source License

/**
 * create a panel with all component containing all output type options
 * //from ww w  .ja  va 2  s.co  m
 * @return panel
 */
private JPanel outTypeContainer() {
    ButtonGroup bg = new ButtonGroup();

    // salida impresa & por ventana
    this.out_print = TUIUtils.getJRadioButton("ttprint.outprint", "print.outprint", false);
    String sot = (String) getSavedParameter(OUT_TYPE, "");
    out_print.setSelected(sot.equals(PRINTER));
    out_print.addChangeListener(new ChangeListener() {
        public void stateChanged(ChangeEvent e) {
            printers.setEnabled(out_print.isSelected());
        }
    });
    this.out_window = TUIUtils.getJRadioButton("ttprint.outwindow", "print.outwindow", false);
    out_window.setSelected(sot.equals(WINDOW));

    this.out_file = TUIUtils.getJRadioButton("ttprint.outfile", "print.outfile", false);
    out_file.setSelected(sot.equals(EXPORT));
    // para validar
    out_file.addChangeListener(new ChangeListener() {
        public void stateChanged(ChangeEvent e) {
            preValidate(null);
        }
    });

    bg.add(out_print);
    bg.add(out_window);
    bg.add(out_file);
    ComponentTitledPane ctp1 = new ComponentTitledPane(out_file, outFilePanel());

    FormLayout lay = new FormLayout("fill:200dlu", // columns
            "pref, pref, pref"); // rows
    CellConstraints cc = new CellConstraints();
    PanelBuilder build = new PanelBuilder(lay);

    build.add(out_print, cc.xy(1, 1));
    // 180312: temporaly unavialable
    // build.add(out_window, cc.xy(1, 2));
    build.add(ctp1, cc.xy(1, 3));

    JPanel jp = build.getPanel();
    TUIUtils.setEmptyBorder(jp);
    return jp;
}