Example usage for javax.swing ActionMap get

List of usage examples for javax.swing ActionMap get

Introduction

In this page you can find the example usage for javax.swing ActionMap get.

Prototype

public Action get(Object key) 

Source Link

Document

Returns the binding for key, messaging the parent ActionMap if the binding is not locally defined.

Usage

From source file:com.jmstoolkit.queuebrowser.QueueBrowserView.java

/**
 * This method is called from within the constructor to
 * initialize the form.//from ww  w .j  av a  2 s  .  c  o m
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    mainPanel = new javax.swing.JPanel();
    destinationLabel = new javax.swing.JLabel();
    destinationComboBox = new javax.swing.JComboBox();
    browseButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    connectionFactoryLabel = new javax.swing.JLabel();
    connectionFactoryComboBox = new javax.swing.JComboBox();
    messageSplitPane = new javax.swing.JSplitPane();
    messagePropertiesSplitPane = new javax.swing.JSplitPane();
    messageScrollPane = new javax.swing.JScrollPane();
    messageTextArea = new javax.swing.JTextArea();
    messagePropertiesScrollPane = new javax.swing.JScrollPane();
    messagePropertiesTable = new javax.swing.JTable();
    messageRecordTableScrollPane = new javax.swing.JScrollPane();
    messageRecordTable = new javax.swing.JTable();
    menuBar = new javax.swing.JMenuBar();
    javax.swing.JMenu fileMenu = new javax.swing.JMenu();
    drainQueueMenuItem = new javax.swing.JMenuItem();
    javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
    javax.swing.JMenu helpMenu = new javax.swing.JMenu();
    javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
    statusPanel = new javax.swing.JPanel();
    javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
    statusMessageLabel = new javax.swing.JLabel();
    statusAnimationLabel = new javax.swing.JLabel();
    progressBar = new javax.swing.JProgressBar();
    messageTableModel = new com.jmstoolkit.beans.MessageTableModel();
    messagePropertyTableModel = new com.jmstoolkit.beans.PropertyTableModel();
    queueDrainedDialog = new javax.swing.JDialog();
    queueDrainedDialogOKButton = new javax.swing.JButton();
    itemsDrainedLabel = new javax.swing.JLabel();
    itemsDrainedTextField = new javax.swing.JTextField();
    queueDrainedScrollPane = new javax.swing.JScrollPane();
    queueDrainedTextPane = new javax.swing.JTextPane();

    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance()
            .getContext().getResourceMap(QueueBrowserView.class);
    mainPanel.setBackground(resourceMap.getColor("mainPanel.background")); // NOI18N
    mainPanel.setForeground(resourceMap.getColor("mainPanel.foreground")); // NOI18N
    mainPanel.setName("mainPanel"); // NOI18N

    destinationLabel.setText(resourceMap.getString("destinationLabel.text")); // NOI18N
    destinationLabel.setName("destinationLabel"); // NOI18N

    destinationComboBox.setEditable(true);
    destinationComboBox.setModel(new javax.swing.DefaultComboBoxModel(destinationList.toArray()));
    destinationComboBox.setToolTipText(resourceMap.getString("destinationComboBox.toolTipText")); // NOI18N
    destinationComboBox.setName("destinationComboBox"); // NOI18N
    destinationComboBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            destinationComboBoxActionPerformed(evt);
        }
    });

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance().getContext()
            .getActionMap(QueueBrowserView.class, this);
    browseButton.setAction(actionMap.get("browseQueue")); // NOI18N
    browseButton.setText(resourceMap.getString("browseButton.text")); // NOI18N
    browseButton.setToolTipText(resourceMap.getString("browseButton.toolTipText")); // NOI18N
    browseButton.setName("browseButton"); // NOI18N

    cancelButton.setFont(resourceMap.getFont("cancelButton.font")); // NOI18N
    cancelButton.setText(resourceMap.getString("cancelButton.text")); // NOI18N
    cancelButton.setToolTipText(resourceMap.getString("cancelButton.toolTipText")); // NOI18N
    cancelButton.setEnabled(false);
    cancelButton.setName("cancelButton"); // NOI18N
    cancelButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            cancelButtonActionPerformed(evt);
        }
    });

    connectionFactoryLabel.setText(resourceMap.getString("connectionFactoryLabel.text")); // NOI18N
    connectionFactoryLabel.setName("connectionFactoryLabel"); // NOI18N

    connectionFactoryComboBox.setEditable(true);
    connectionFactoryComboBox.setModel(new javax.swing.DefaultComboBoxModel(connectionFactoryList.toArray()));
    connectionFactoryComboBox.setName("connectionFactoryComboBox"); // NOI18N
    connectionFactoryComboBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            connectionFactoryComboBoxActionPerformed(evt);
        }
    });

    messageSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    messageSplitPane.setName("messageSplitPane"); // NOI18N
    messageSplitPane.setPreferredSize(new java.awt.Dimension(456, 400));

    messagePropertiesSplitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
    messagePropertiesSplitPane.setName("messagePropertiesSplitPane"); // NOI18N
    messagePropertiesSplitPane.setPreferredSize(new java.awt.Dimension(454, 200));

    messageScrollPane.setBackground(resourceMap.getColor("messageScrollPane.background")); // NOI18N
    messageScrollPane.setForeground(resourceMap.getColor("messageScrollPane.foreground")); // NOI18N
    messageScrollPane.setName("messageScrollPane"); // NOI18N

    messageTextArea.setBackground(resourceMap.getColor("messageTextArea.background")); // NOI18N
    messageTextArea.setColumns(20);
    messageTextArea.setForeground(resourceMap.getColor("messageTextArea.foreground")); // NOI18N
    messageTextArea.setLineWrap(true);
    messageTextArea.setRows(5);
    messageTextArea.setTabSize(2);
    messageTextArea.setToolTipText(resourceMap.getString("messageTextArea.toolTipText")); // NOI18N
    messageTextArea.setWrapStyleWord(true);
    messageTextArea.setName("messageTextArea"); // NOI18N
    messageScrollPane.setViewportView(messageTextArea);

    messagePropertiesSplitPane.setTopComponent(messageScrollPane);

    messagePropertiesScrollPane.setName("messagePropertiesScrollPane"); // NOI18N
    messagePropertiesScrollPane.setPreferredSize(new java.awt.Dimension(452, 202));

    messagePropertiesTable.setModel(messagePropertyTableModel);
    messagePropertiesTable.setAutoCreateRowSorter(true);
    messagePropertiesTable.setCellSelectionEnabled(true);
    messagePropertiesTable.setDoubleBuffered(true);
    messagePropertiesTable.setName("messagePropertiesTable"); // NOI18N
    messagePropertiesScrollPane.setViewportView(messagePropertiesTable);

    messagePropertiesSplitPane.setRightComponent(messagePropertiesScrollPane);

    messageSplitPane.setRightComponent(messagePropertiesSplitPane);

    messageRecordTableScrollPane.setName("messageRecordTableScrollPane"); // NOI18N
    messageRecordTableScrollPane.setPreferredSize(new java.awt.Dimension(452, 202));

    messageRecordTable.setModel(messageTableModel);
    messageRecordTable.setCellSelectionEnabled(true);
    messageRecordTable.setDoubleBuffered(true);
    messageRecordTable.setName("messageRecordTable"); // NOI18N
    messageRecordTable.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            messageRecordTableMouseClicked(evt);
        }
    });
    messageRecordTableScrollPane.setViewportView(messageRecordTable);

    messageSplitPane.setLeftComponent(messageRecordTableScrollPane);

    javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
    mainPanel.setLayout(mainPanelLayout);
    mainPanelLayout.setHorizontalGroup(mainPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup().addContainerGap().addGroup(mainPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(mainPanelLayout.createSequentialGroup().addComponent(destinationLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(destinationComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addGroup(mainPanelLayout.createSequentialGroup().addComponent(connectionFactoryLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(connectionFactoryComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    240, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(browseButton)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(cancelButton).addGap(19, 19, 19))
            .addComponent(messageSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 597, Short.MAX_VALUE));
    mainPanelLayout.setVerticalGroup(mainPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(connectionFactoryLabel).addComponent(connectionFactoryComboBox,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(destinationLabel)
                            .addComponent(destinationComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cancelButton).addComponent(browseButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(
                            messageSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 454, Short.MAX_VALUE)));

    menuBar.setName("menuBar"); // NOI18N

    fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
    fileMenu.setName("fileMenu"); // NOI18N

    drainQueueMenuItem.setAction(actionMap.get("drainQueue")); // NOI18N
    drainQueueMenuItem.setText(resourceMap.getString("drainQueueMenuItem.text")); // NOI18N
    drainQueueMenuItem.setName("drainQueueMenuItem"); // NOI18N
    fileMenu.add(drainQueueMenuItem);

    exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
    exitMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X,
            java.awt.event.InputEvent.CTRL_MASK));
    exitMenuItem.setText(resourceMap.getString("exitMenuItem.text")); // NOI18N
    exitMenuItem.setToolTipText(resourceMap.getString("exitMenuItem.toolTipText")); // NOI18N
    exitMenuItem.setName("exitMenuItem"); // NOI18N
    fileMenu.add(exitMenuItem);

    menuBar.add(fileMenu);

    helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
    helpMenu.setName("helpMenu"); // NOI18N

    aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
    aboutMenuItem.setName("aboutMenuItem"); // NOI18N
    helpMenu.add(aboutMenuItem);

    menuBar.add(helpMenu);

    statusPanel.setName("statusPanel"); // NOI18N
    statusPanel.setPreferredSize(new java.awt.Dimension(454, 30));

    statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

    statusMessageLabel.setAlignmentY(0.0F);
    statusMessageLabel.setName("statusMessageLabel"); // NOI18N

    statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
    statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

    progressBar.setName("progressBar"); // NOI18N

    javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
    statusPanel.setLayout(statusPanelLayout);
    statusPanelLayout.setHorizontalGroup(statusPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 597, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, statusPanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(statusMessageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 235,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 166, Short.MAX_VALUE)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(statusAnimationLabel).addContainerGap()));
    statusPanelLayout.setVerticalGroup(statusPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                    .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(statusPanelLayout.createSequentialGroup().addGroup(statusPanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(statusMessageLabel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            21, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(statusAnimationLabel)).addGap(3, 3, 3))
                            .addGroup(statusPanelLayout.createSequentialGroup()
                                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap()))));

    messagePropertyTableModel.setData(messagePropertyTableModel.getData());

    queueDrainedDialog.setLocationByPlatform(true);
    queueDrainedDialog.setMinimumSize(new java.awt.Dimension(300, 180));
    queueDrainedDialog.setModal(true);
    queueDrainedDialog.setName("queueDrainedDialog"); // NOI18N
    queueDrainedDialog.setResizable(false);

    queueDrainedDialogOKButton.setText(resourceMap.getString("queueDrainedDialogOKButton.text")); // NOI18N
    queueDrainedDialogOKButton.setName("queueDrainedDialogOKButton"); // NOI18N
    queueDrainedDialogOKButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            queueDrainedDialogOKButtonActionPerformed(evt);
        }
    });

    itemsDrainedLabel.setText(resourceMap.getString("itemsDrainedLabel.text")); // NOI18N
    itemsDrainedLabel.setName("itemsDrainedLabel"); // NOI18N

    itemsDrainedTextField.setEditable(false);
    itemsDrainedTextField.setText(resourceMap.getString("itemsDrainedTextField.text")); // NOI18N
    itemsDrainedTextField.setName("itemsDrainedTextField"); // NOI18N

    queueDrainedScrollPane.setName("queueDrainedScrollPane"); // NOI18N

    queueDrainedTextPane.setEditable(false);
    queueDrainedTextPane.setText(resourceMap.getString("queueDrainedTextPane.text")); // NOI18N
    queueDrainedTextPane.setName("queueDrainedTextPane"); // NOI18N
    queueDrainedScrollPane.setViewportView(queueDrainedTextPane);

    javax.swing.GroupLayout queueDrainedDialogLayout = new javax.swing.GroupLayout(
            queueDrainedDialog.getContentPane());
    queueDrainedDialog.getContentPane().setLayout(queueDrainedDialogLayout);
    queueDrainedDialogLayout.setHorizontalGroup(queueDrainedDialogLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(queueDrainedDialogLayout.createSequentialGroup().addGroup(queueDrainedDialogLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(queueDrainedDialogLayout.createSequentialGroup().addContainerGap()
                            .addComponent(itemsDrainedLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(itemsDrainedTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(queueDrainedDialogLayout.createSequentialGroup().addContainerGap().addComponent(
                            queueDrainedScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 280, Short.MAX_VALUE))
                    .addGroup(queueDrainedDialogLayout.createSequentialGroup().addGap(127, 127, 127)
                            .addComponent(queueDrainedDialogOKButton)))
                    .addContainerGap()));
    queueDrainedDialogLayout.setVerticalGroup(
            queueDrainedDialogLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(queueDrainedDialogLayout.createSequentialGroup().addContainerGap()
                            .addGroup(queueDrainedDialogLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(itemsDrainedLabel).addComponent(itemsDrainedTextField,
                                            javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(queueDrainedScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 59,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(queueDrainedDialogOKButton).addGap(32, 32, 32)));

    setComponent(mainPanel);
    setMenuBar(menuBar);
    setStatusBar(statusPanel);
}

From source file:net.sf.dvstar.transmission.dialogs.SessionStatistic.java

/** This method is called from within the constructor to
 * initialize the form.//from   w  ww  .  ja  v  a  2s .c  o m
 * WARNING: Do NOT modify this code. The content of this method is
 * always regenerated by the Form Editor.
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    plTop = new javax.swing.JPanel();
    jLabel11 = new javax.swing.JLabel();
    lbActiveTorrentCount = new javax.swing.JLabel();
    tfServerVersion = new javax.swing.JTextField();
    jLabel12 = new javax.swing.JLabel();
    plInfo = new javax.swing.JPanel();
    plCurrent = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    lbDowloadC = new javax.swing.JLabel();
    lbUploadC = new javax.swing.JLabel();
    lbAddedFileC = new javax.swing.JLabel();
    lbSessionC = new javax.swing.JLabel();
    lbActivityC = new javax.swing.JLabel();
    plTotal = new javax.swing.JPanel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    jLabel10 = new javax.swing.JLabel();
    lbDowloadT = new javax.swing.JLabel();
    lbUploadT = new javax.swing.JLabel();
    lbAddedFileT = new javax.swing.JLabel();
    lbSessionT = new javax.swing.JLabel();
    lbActivityT = new javax.swing.JLabel();
    plButtons = new javax.swing.JPanel();
    btRefresh = new javax.swing.JButton();
    btClose = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(net.sf.dvstar.transmission.TransmissionApp.class).getContext()
            .getResourceMap(SessionStatistic.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setMinimumSize(new java.awt.Dimension(730, 220));
    setModal(true);
    setName("Form"); // NOI18N

    plTop.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("plTop.border.title"))); // NOI18N
    plTop.setName("plTop"); // NOI18N
    plTop.setPreferredSize(new java.awt.Dimension(730, 68));

    jLabel11.setText(resourceMap.getString("lbActiveCount.text")); // NOI18N
    jLabel11.setName("jLabel11"); // NOI18N

    lbActiveTorrentCount.setText(resourceMap.getString("lbActiveTorrentCount.text")); // NOI18N
    lbActiveTorrentCount.setName("lbActiveTorrentCount"); // NOI18N

    tfServerVersion.setEditable(false);
    tfServerVersion.setText(resourceMap.getString("tfServerVersion.text")); // NOI18N
    tfServerVersion.setToolTipText(resourceMap.getString("tfServerVersion.toolTipText")); // NOI18N
    tfServerVersion.setBorder(null);
    tfServerVersion.setFocusable(false);
    tfServerVersion.setName("tfServerVersion"); // NOI18N

    jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
    jLabel12.setName("jLabel12"); // NOI18N

    javax.swing.GroupLayout plTopLayout = new javax.swing.GroupLayout(plTop);
    plTop.setLayout(plTopLayout);
    plTopLayout.setHorizontalGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plTopLayout.createSequentialGroup().addContainerGap()
                    .addGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel11).addComponent(jLabel12))
                    .addGap(25, 25, 25)
                    .addGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(lbActiveTorrentCount, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(tfServerVersion, javax.swing.GroupLayout.DEFAULT_SIZE, 120,
                                    Short.MAX_VALUE))
                    .addContainerGap(116, Short.MAX_VALUE)));
    plTopLayout.setVerticalGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plTopLayout.createSequentialGroup()
                    .addGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(lbActiveTorrentCount).addComponent(jLabel11))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel12).addComponent(tfServerVersion,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    getContentPane().add(plTop, java.awt.BorderLayout.PAGE_START);

    plInfo.setName("plInfo"); // NOI18N
    plInfo.setLayout(new java.awt.GridLayout(1, 2));

    plCurrent.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("plCurrent.border.title"))); // NOI18N
    plCurrent.setName("plCurrent"); // NOI18N

    jLabel1.setText(resourceMap.getString("lbDownload.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N

    jLabel2.setText(resourceMap.getString("lbUpload.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N

    jLabel3.setText(resourceMap.getString("lbAddedFiles.text")); // NOI18N
    jLabel3.setName("jLabel3"); // NOI18N

    jLabel4.setText(resourceMap.getString("lbSesCount.text")); // NOI18N
    jLabel4.setName("jLabel4"); // NOI18N

    jLabel5.setText(resourceMap.getString("lbActiv.text")); // NOI18N
    jLabel5.setName("jLabel5"); // NOI18N

    lbDowloadC.setText(resourceMap.getString("lbDowloadC.text")); // NOI18N
    lbDowloadC.setMinimumSize(new java.awt.Dimension(60, 14));
    lbDowloadC.setName("lbDowloadC"); // NOI18N
    lbDowloadC.setPreferredSize(new java.awt.Dimension(60, 15));

    lbUploadC.setText(resourceMap.getString("lbUploadC.text")); // NOI18N
    lbUploadC.setMinimumSize(new java.awt.Dimension(60, 14));
    lbUploadC.setName("lbUploadC"); // NOI18N
    lbUploadC.setPreferredSize(new java.awt.Dimension(60, 15));

    lbAddedFileC.setText(resourceMap.getString("lbAddedFileC.text")); // NOI18N
    lbAddedFileC.setMinimumSize(new java.awt.Dimension(60, 14));
    lbAddedFileC.setName("lbAddedFileC"); // NOI18N
    lbAddedFileC.setPreferredSize(new java.awt.Dimension(60, 15));

    lbSessionC.setText(resourceMap.getString("lbSessionC.text")); // NOI18N
    lbSessionC.setMinimumSize(new java.awt.Dimension(60, 14));
    lbSessionC.setName("lbSessionC"); // NOI18N
    lbSessionC.setPreferredSize(new java.awt.Dimension(60, 15));

    lbActivityC.setText(resourceMap.getString("lbActivityC.text")); // NOI18N
    lbActivityC.setMinimumSize(new java.awt.Dimension(60, 14));
    lbActivityC.setName("lbActivityC"); // NOI18N
    lbActivityC.setPreferredSize(new java.awt.Dimension(60, 15));

    javax.swing.GroupLayout plCurrentLayout = new javax.swing.GroupLayout(plCurrent);
    plCurrent.setLayout(plCurrentLayout);
    plCurrentLayout.setHorizontalGroup(plCurrentLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plCurrentLayout.createSequentialGroup().addContainerGap().addGroup(plCurrentLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(plCurrentLayout.createSequentialGroup()
                            .addGroup(plCurrentLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel5).addComponent(jLabel4))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(plCurrentLayout.createSequentialGroup()
                                    .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 78,
                                            Short.MAX_VALUE)
                                    .addGap(54, 54, 54))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    plCurrentLayout.createSequentialGroup().addGroup(plCurrentLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 126, Short.MAX_VALUE)
                                            .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 126,
                                                    Short.MAX_VALUE))
                                            .addPreferredGap(
                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED))))
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(plCurrentLayout.createSequentialGroup()
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(plCurrentLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(lbUploadC, javax.swing.GroupLayout.Alignment.TRAILING,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 76, Short.MAX_VALUE)
                                            .addComponent(lbDowloadC, javax.swing.GroupLayout.DEFAULT_SIZE, 76,
                                                    Short.MAX_VALUE)))
                            .addGroup(plCurrentLayout.createSequentialGroup()
                                    .addComponent(lbAddedFileC, javax.swing.GroupLayout.DEFAULT_SIZE, 64,
                                            Short.MAX_VALUE)
                                    .addContainerGap())
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    plCurrentLayout.createSequentialGroup().addGroup(plCurrentLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(lbActivityC, javax.swing.GroupLayout.DEFAULT_SIZE, 64,
                                                    Short.MAX_VALUE)
                                            .addComponent(lbSessionC, javax.swing.GroupLayout.DEFAULT_SIZE, 64,
                                                    Short.MAX_VALUE))
                                            .addContainerGap()))));
    plCurrentLayout.setVerticalGroup(plCurrentLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plCurrentLayout.createSequentialGroup()
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1).addComponent(lbDowloadC,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 15,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(lbUploadC, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3).addComponent(lbAddedFileC,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4).addComponent(lbSessionC,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plCurrentLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5).addComponent(lbActivityC,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(57, Short.MAX_VALUE)));

    plInfo.add(plCurrent);

    plTotal.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("plTotal.border.title"))); // NOI18N
    plTotal.setName("plTotal"); // NOI18N

    jLabel6.setText(resourceMap.getString("lbDownload.text")); // NOI18N
    jLabel6.setName("jLabel6"); // NOI18N

    jLabel7.setText(resourceMap.getString("lbUpload.text")); // NOI18N
    jLabel7.setName("jLabel7"); // NOI18N

    jLabel8.setText(resourceMap.getString("lbAddedFiles.text")); // NOI18N
    jLabel8.setName("jLabel8"); // NOI18N

    jLabel9.setText(resourceMap.getString("lbSesCount.text")); // NOI18N
    jLabel9.setName("jLabel9"); // NOI18N

    jLabel10.setText(resourceMap.getString("lbActiv.text")); // NOI18N
    jLabel10.setName("jLabel10"); // NOI18N

    lbDowloadT.setText(resourceMap.getString("lbDowloadT.text")); // NOI18N
    lbDowloadT.setMinimumSize(new java.awt.Dimension(60, 14));
    lbDowloadT.setName("lbDowloadT"); // NOI18N
    lbDowloadT.setPreferredSize(new java.awt.Dimension(60, 15));

    lbUploadT.setText(resourceMap.getString("lbUploadT.text")); // NOI18N
    lbUploadT.setMinimumSize(new java.awt.Dimension(60, 14));
    lbUploadT.setName("lbUploadT"); // NOI18N
    lbUploadT.setPreferredSize(new java.awt.Dimension(60, 15));

    lbAddedFileT.setText(resourceMap.getString("lbAddedFileT.text")); // NOI18N
    lbAddedFileT.setMinimumSize(new java.awt.Dimension(60, 14));
    lbAddedFileT.setName("lbAddedFileT"); // NOI18N
    lbAddedFileT.setPreferredSize(new java.awt.Dimension(60, 15));

    lbSessionT.setText(resourceMap.getString("lbSessionT.text")); // NOI18N
    lbSessionT.setMinimumSize(new java.awt.Dimension(60, 14));
    lbSessionT.setName("lbSessionT"); // NOI18N
    lbSessionT.setPreferredSize(new java.awt.Dimension(60, 15));

    lbActivityT.setText(resourceMap.getString("lbActivityT.text")); // NOI18N
    lbActivityT.setMinimumSize(new java.awt.Dimension(60, 14));
    lbActivityT.setName("lbActivityT"); // NOI18N
    lbActivityT.setPreferredSize(new java.awt.Dimension(60, 15));

    javax.swing.GroupLayout plTotalLayout = new javax.swing.GroupLayout(plTotal);
    plTotal.setLayout(plTotalLayout);
    plTotalLayout.setHorizontalGroup(plTotalLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plTotalLayout.createSequentialGroup().addContainerGap()
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel10)
                            .addGroup(plTotalLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel7, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lbDowloadT, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lbUploadT, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lbAddedFileT, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lbSessionT, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(lbActivityT, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap()));
    plTotalLayout.setVerticalGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plTotalLayout.createSequentialGroup()
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6).addComponent(lbDowloadT,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(lbUploadT, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8).addComponent(lbAddedFileT,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9).addComponent(lbSessionT,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(plTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10).addComponent(lbActivityT,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(57, Short.MAX_VALUE)));

    plInfo.add(plTotal);

    getContentPane().add(plInfo, java.awt.BorderLayout.CENTER);

    plButtons.setName("plButtons"); // NOI18N
    plButtons.setPreferredSize(new java.awt.Dimension(400, 48));

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(net.sf.dvstar.transmission.TransmissionApp.class).getContext()
            .getActionMap(SessionStatistic.class, this);
    btRefresh.setAction(actionMap.get("doRefresh")); // NOI18N
    btRefresh.setIcon(resourceMap.getIcon("btRefresh.icon")); // NOI18N
    btRefresh.setText(resourceMap.getString("btRefresh.text")); // NOI18N
    btRefresh.setToolTipText(resourceMap.getString("btRefresh.toolTipText")); // NOI18N
    btRefresh.setDefaultCapable(false);
    btRefresh.setName("btRefresh"); // NOI18N
    btRefresh.setPreferredSize(new java.awt.Dimension(96, 26));

    btClose.setAction(actionMap.get("closeDialog")); // NOI18N
    btClose.setIcon(resourceMap.getIcon("btClose.icon")); // NOI18N
    btClose.setText(resourceMap.getString("btClose.text")); // NOI18N
    btClose.setName("btClose"); // NOI18N
    btClose.setPreferredSize(new java.awt.Dimension(96, 26));

    javax.swing.GroupLayout plButtonsLayout = new javax.swing.GroupLayout(plButtons);
    plButtons.setLayout(plButtonsLayout);
    plButtonsLayout.setHorizontalGroup(plButtonsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plButtonsLayout.createSequentialGroup().addContainerGap()
                    .addComponent(btRefresh, javax.swing.GroupLayout.PREFERRED_SIZE, 101,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 242, Short.MAX_VALUE)
                    .addComponent(btClose, javax.swing.GroupLayout.PREFERRED_SIZE, 93,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));
    plButtonsLayout.setVerticalGroup(plButtonsLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, plButtonsLayout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(plButtonsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(btClose, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btRefresh, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap()));

    getContentPane().add(plButtons, java.awt.BorderLayout.PAGE_END);

    pack();
}

From source file:au.org.ala.delta.intkey.ui.CharacterValueInputDialog.java

public CharacterValueInputDialog(Frame owner, Character ch, ImageSettings imageSettings,
        boolean displayNumbering, boolean enableImagesButton, boolean imagesStartScaled, boolean advancedMode) {
    super(owner, true);

    ActionMap actionMap = Application.getInstance().getContext().getActionMap(CharacterValueInputDialog.class,
            this);

    // Have to pull these resource strings out manually as BSAF does not
    // play nicely with
    // class hierarchies.
    _fullCharacterTextCaption = UIUtils.getResourceString("CharacterValueInputDialog.fullCharacterTextCaption");
    _notesCaption = UIUtils.getResourceString("CharacterValueInputDialog.notesCaption");

    getContentPane().setLayout(new BorderLayout(0, 0));

    setResizable(false);/*from w  w  w . ja va2 s  . c o m*/
    setPreferredSize(new Dimension(600, 200));

    _imagesStartScaled = imagesStartScaled;
    _ch = ch;
    _imageSettings = imageSettings;

    _buttonPanel = new JPanel();
    _buttonPanel.setBorder(new EmptyBorder(0, 20, 10, 20));
    getContentPane().add(_buttonPanel, BorderLayout.SOUTH);
    _buttonPanel.setLayout(new GridLayout(0, 4, 5, 5));

    JButton _btnOk = new JButton();
    _btnOk.setAction(actionMap.get("characterValueInputDialog_OK"));

    _btnImages = new JButton();
    _btnImages.setAction(actionMap.get("characterValueInputDialog_Images"));
    if (ch.getImageCount() == 0 || !enableImagesButton) {
        _btnImages.setEnabled(false);
    }

    _btnFullText = new JButton();
    _btnFullText.setAction(actionMap.get("characterValueInputDialog_FullText"));
    _btnFullText.setEnabled(true);

    _btnSearch = new JButton();
    _btnSearch.setAction(actionMap.get("characterValueInputDialog_Search"));
    _btnSearch.setEnabled(true);

    _btnCancel = new JButton();
    _btnCancel.setAction(actionMap.get("characterValueInputDialog_Cancel"));

    _btnNotes = new JButton();
    _btnNotes.setAction(actionMap.get("characterValueInputDialog_Notes"));
    _btnNotes.setEnabled(true);

    _btnHelp = new JButton();
    _btnHelp.setAction(actionMap.get("characterValueInputDialog_Help"));

    //Some of the buttons should not be displayed if not in advanced mode
    if (advancedMode) {
        _buttonPanel.add(_btnOk);
        _buttonPanel.add(_btnImages);
        _buttonPanel.add(_btnFullText);
        _buttonPanel.add(_btnSearch);
        _buttonPanel.add(_btnCancel);
        _buttonPanel.add(_btnNotes);
        _buttonPanel.add(_btnHelp);
    } else {
        _buttonPanel.add(_btnOk);
        _buttonPanel.add(_btnCancel);
        _buttonPanel.add(_btnNotes);
        _buttonPanel.add(_btnImages);
    }

    _pnlMain = new JPanel();
    _pnlMain.setBorder(new EmptyBorder(10, 10, 10, 10));
    getContentPane().add(_pnlMain, BorderLayout.CENTER);
    _pnlMain.setLayout(new BorderLayout(0, 0));

    _lblCharacterDescription = new JLabel();
    _lblCharacterDescription.setBorder(new EmptyBorder(0, 0, 5, 0));
    _formatter = new CharacterFormatter(displayNumbering, CommentStrippingMode.RETAIN,
            AngleBracketHandlingMode.REMOVE_SURROUNDING_REPLACE_INNER, true, false);
    _lblCharacterDescription.setText(_formatter.formatCharacterDescription(_ch));
    _pnlMain.add(_lblCharacterDescription, BorderLayout.NORTH);

    _btnImages.setEnabled(!_ch.getImages().isEmpty());

    _btnNotes.setEnabled(StringUtils.isNotBlank(_ch.getNotes()));

    setLocationRelativeTo(owner);
}

From source file:com.jskj.asset.client.panel.slgl.GuDingZiChanWeiXiuJDialog.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor./*  w  w w  . j a  va  2  s .c  om*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jTextFieldZcid = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jTextFieldXinghao = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    jTextFieldSupplier = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    jTextField5 = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    jTextField6 = new javax.swing.JTextField();
    jTextField7 = regTextField4;
    jLabel7 = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    jLabel9 = new javax.swing.JLabel();
    jTextField10 = new javax.swing.JTextField();
    jLabel10 = new javax.swing.JLabel();
    jLabel11 = new javax.swing.JLabel();
    jTextField12 = new javax.swing.JTextField();
    jLabel13 = new javax.swing.JLabel();
    jTextFieldSongxiuren = new BaseTextField();
    jLabel14 = new javax.swing.JLabel();
    jTextField15 = new javax.swing.JTextField();
    jLabel16 = new javax.swing.JLabel();
    jTextField16 = new javax.swing.JTextField();
    jTextFieldName = new BaseTextField();
    jTextField13 = regTextField2;
    jTextField17 = regTextField3;
    jTextField18 = new javax.swing.JTextField();
    jLabel17 = new javax.swing.JLabel();
    jTextField19 = new javax.swing.JTextField();
    jLabel18 = new javax.swing.JLabel();
    jLabel12 = new javax.swing.JLabel();
    jTextFieldZctype = new javax.swing.JTextField();
    jTextFieldDidian = new javax.swing.JTextField();
    jLabel15 = new javax.swing.JLabel();
    jLabel19 = new javax.swing.JLabel();
    jTextFieldFuzeren = new javax.swing.JTextField();
    jToolBar1 = new javax.swing.JToolBar();
    jButton1 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(com.jskj.asset.client.AssetClientApp.class).getContext()
            .getResourceMap(GuDingZiChanWeiXiuJDialog.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setName("Form"); // NOI18N
    setResizable(false);

    jPanel1.setName("jPanel1"); // NOI18N

    jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N

    jTextFieldZcid.setText(resourceMap.getString("jTextFieldZcid.text")); // NOI18N
    jTextFieldZcid.setName("jTextFieldZcid"); // NOI18N

    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N

    jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
    jLabel3.setName("jLabel3"); // NOI18N

    jTextFieldXinghao.setText(resourceMap.getString("jTextFieldXinghao.text")); // NOI18N
    jTextFieldXinghao.setName("jTextFieldXinghao"); // NOI18N

    jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
    jLabel4.setName("jLabel4"); // NOI18N

    jTextFieldSupplier.setName("jTextFieldSupplier"); // NOI18N

    jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
    jLabel5.setName("jLabel5"); // NOI18N

    jTextField5.setName("jTextField5"); // NOI18N

    jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
    jLabel6.setName("jLabel6"); // NOI18N

    jTextField6.setName("jTextField6"); // NOI18N

    jTextField7.setName("jTextField7"); // NOI18N

    jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
    jLabel7.setName("jLabel7"); // NOI18N

    jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
    jLabel8.setName("jLabel8"); // NOI18N

    jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
    jLabel9.setName("jLabel9"); // NOI18N

    jTextField10.setName("jTextField10"); // NOI18N

    jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
    jLabel10.setName("jLabel10"); // NOI18N

    jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
    jLabel11.setName("jLabel11"); // NOI18N

    jTextField12.setName("jTextField12"); // NOI18N

    jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
    jLabel13.setName("jLabel13"); // NOI18N

    jTextFieldSongxiuren.setName("jTextFieldSongxiuren"); // NOI18N

    jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
    jLabel14.setName("jLabel14"); // NOI18N

    jTextField15.setName("jTextField15"); // NOI18N

    jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
    jLabel16.setName("jLabel16"); // NOI18N

    jTextField16.setName("jTextField16"); // NOI18N

    jTextFieldName.setText(resourceMap.getString("jTextFieldName.text")); // NOI18N
    jTextFieldName.setName("jTextFieldName"); // NOI18N

    jTextField13.setName("jTextField13"); // NOI18N

    jTextField17.setName("jTextField17"); // NOI18N

    jTextField18.setName("jTextField18"); // NOI18N

    jLabel17.setText(resourceMap.getString("jLabel17.text")); // NOI18N
    jLabel17.setName("jLabel17"); // NOI18N

    jTextField19.setName("jTextField19"); // NOI18N

    jLabel18.setText(resourceMap.getString("jLabel18.text")); // NOI18N
    jLabel18.setName("jLabel18"); // NOI18N

    jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
    jLabel12.setName("jLabel12"); // NOI18N

    jTextFieldZctype.setName("jTextFieldZctype"); // NOI18N

    jTextFieldDidian.setName("jTextFieldDidian"); // NOI18N

    jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N
    jLabel15.setName("jLabel15"); // NOI18N

    jLabel19.setText(resourceMap.getString("jLabel19.text")); // NOI18N
    jLabel19.setName("jLabel19"); // NOI18N

    jTextFieldFuzeren.setName("jTextFieldFuzeren"); // NOI18N

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGap(13, 13, 13).addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel12)
                                            .addGap(18, 18, 18).addComponent(jTextFieldZctype,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 165,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                    .addGroup(jPanel1Layout.createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel3).addComponent(jLabel1)
                                                            .addComponent(jLabel19))
                                                    .addGap(18, 18, 18)
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(jTextFieldZcid)
                                                            .addComponent(jTextFieldXinghao,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 165,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(jTextFieldFuzeren,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)))
                                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(
                                                    jLabel6).addGap(18, 18,
                                                            18)
                                                    .addComponent(jTextField6,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 164,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(jLabel10,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel14,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel8))
                                                    .addGap(18, 18, 18)
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(jTextField13,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 164,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(jTextField10)
                                                            .addComponent(jTextFieldSongxiuren)))))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 83,
                                            Short.MAX_VALUE)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(jLabel9,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel5,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel2,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel7,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel11,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel13,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel15,
                                                                    javax.swing.GroupLayout.Alignment.TRAILING))
                                                    .addGap(18, 18, 18)
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(jTextFieldDidian)
                                                            .addComponent(jTextField15)
                                                            .addComponent(jTextField7).addComponent(jTextField5)
                                                            .addComponent(jTextField12)
                                                            .addComponent(jTextFieldName)
                                                            .addComponent(jTextField17,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 172,
                                                                    Short.MAX_VALUE)))
                                            .addGroup(
                                                    jPanel1Layout.createSequentialGroup().addComponent(jLabel4)
                                                            .addGap(18, 18, 18).addComponent(jTextFieldSupplier,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 172,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel17).addComponent(jLabel18))
                            .addGap(18, 18, 18).addGroup(
                                    jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jTextField18).addComponent(jTextField19)))
                    .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel16).addGap(18, 18, 18)
                            .addComponent(jTextField16)))
                    .addGap(13, 13, 13)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jTextFieldZcid, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2).addComponent(jTextFieldName,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel12)
                            .addComponent(jTextFieldZctype, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel11).addComponent(jTextField12,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel15)
                            .addComponent(jTextFieldDidian, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jTextFieldFuzeren, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel19)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5)
                            .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jTextFieldXinghao, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel3)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6)
                            .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8).addComponent(jLabel9)
                            .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel13)
                            .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel10))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldSongxiuren, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel14)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jTextFieldSupplier, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            30, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel4)))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel16))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel17))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel18))
                    .addContainerGap()));

    jToolBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jToolBar1.setFloatable(false);
    jToolBar1.setRollover(true);
    jToolBar1.setBorderPainted(false);
    jToolBar1.setName("jToolBar1"); // NOI18N
    jToolBar1.setOpaque(false);

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(com.jskj.asset.client.AssetClientApp.class).getContext()
            .getActionMap(GuDingZiChanWeiXiuJDialog.class, this);
    jButton1.setAction(actionMap.get("submitForm")); // NOI18N
    jButton1.setIcon(resourceMap.getIcon("jButton1.icon")); // NOI18N
    jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
    jButton1.setBorderPainted(false);
    jButton1.setFocusable(false);
    jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton1.setName("jButton1"); // NOI18N
    jButton1.setOpaque(false);
    jToolBar1.add(jButton1);

    jButton3.setIcon(resourceMap.getIcon("jButton3.icon")); // NOI18N
    jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N
    jButton3.setBorderPainted(false);
    jButton3.setFocusable(false);
    jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton3.setName("jButton3"); // NOI18N
    jButton3.setOpaque(false);
    jToolBar1.add(jButton3);

    jButton2.setAction(actionMap.get("exit")); // NOI18N
    jButton2.setIcon(resourceMap.getIcon("jButton2.icon")); // NOI18N
    jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
    jButton2.setBorderPainted(false);
    jButton2.setFocusable(false);
    jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton2.setName("jButton2"); // NOI18N
    jButton2.setOpaque(false);
    jToolBar1.add(jButton2);

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));
    layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(
                            layout.createSequentialGroup()
                                    .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 50,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addContainerGap()));

    pack();
}

From source file:com.jskj.asset.client.panel.slgl.DiZhiYiHaoPinDengJiJDialog.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.//  w  ww .  j a v  a 2  s .  c  o  m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jTextFieldZcid = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jTextFieldName = new BaseTextField();
    jLabel3 = new javax.swing.JLabel();
    jTextFieldZctype = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    jTextFieldGuige = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    jTextFieldXinghao = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    jTextFieldPinpai = new javax.swing.JTextField();
    jTextFieldUnit = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    jTextFieldQuantity = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    jTextFieldSupplier = new javax.swing.JTextField();
    jLabel9 = new javax.swing.JLabel();
    jTextField12 = regTextField;
    jLabel12 = new javax.swing.JLabel();
    jLabel13 = new javax.swing.JLabel();
    jTextFieldBaoxiuqi = regTextField1;
    jTextFieldPrice = new javax.swing.JTextField();
    jLabel14 = new javax.swing.JLabel();
    jTextFieldSequence = new javax.swing.JTextField();
    jLabel15 = new javax.swing.JLabel();
    jLabel16 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextAreaRemark = new javax.swing.JTextArea();
    jToolBar1 = new javax.swing.JToolBar();
    jButton5 = new javax.swing.JButton();
    jButton1 = new javax.swing.JButton();
    jButton8 = new javax.swing.JButton();
    jButton6 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(com.jskj.asset.client.AssetClientApp.class).getContext()
            .getResourceMap(DiZhiYiHaoPinDengJiJDialog.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setName("Form"); // NOI18N
    setResizable(false);

    jPanel1.setName("jPanel1"); // NOI18N

    jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N

    jTextFieldZcid.setText(resourceMap.getString("jTextFieldZcid.text")); // NOI18N
    jTextFieldZcid.setName("jTextFieldZcid"); // NOI18N

    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N

    jTextFieldName.setName("jTextFieldName"); // NOI18N

    jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
    jLabel3.setName("jLabel3"); // NOI18N

    jTextFieldZctype.setText(resourceMap.getString("jTextFieldZctype.text")); // NOI18N
    jTextFieldZctype.setName("jTextFieldZctype"); // NOI18N

    jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
    jLabel4.setName("jLabel4"); // NOI18N

    jTextFieldGuige.setName("jTextFieldGuige"); // NOI18N

    jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
    jLabel5.setName("jLabel5"); // NOI18N

    jTextFieldXinghao.setName("jTextFieldXinghao"); // NOI18N

    jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
    jLabel6.setName("jLabel6"); // NOI18N

    jTextFieldPinpai.setName("jTextFieldPinpai"); // NOI18N

    jTextFieldUnit.setName("jTextFieldUnit"); // NOI18N

    jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
    jLabel7.setName("jLabel7"); // NOI18N

    jTextFieldQuantity.setName("jTextFieldQuantity"); // NOI18N

    jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
    jLabel8.setName("jLabel8"); // NOI18N

    jTextFieldSupplier.setName("jTextFieldSupplier"); // NOI18N

    jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
    jLabel9.setName("jLabel9"); // NOI18N

    jTextField12.setName("jTextField12"); // NOI18N

    jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
    jLabel12.setName("jLabel12"); // NOI18N

    jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
    jLabel13.setName("jLabel13"); // NOI18N

    jTextFieldBaoxiuqi.setName("jTextFieldBaoxiuqi"); // NOI18N

    jTextFieldPrice.setEditable(false);
    jTextFieldPrice.setName("jTextFieldPrice"); // NOI18N

    jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
    jLabel14.setName("jLabel14"); // NOI18N

    jTextFieldSequence.setName("jTextFieldSequence"); // NOI18N

    jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N
    jLabel15.setName("jLabel15"); // NOI18N

    jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
    jLabel16.setName("jLabel16"); // NOI18N

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    jTextAreaRemark.setColumns(20);
    jTextAreaRemark.setRows(2);
    jTextAreaRemark.setName("jTextAreaRemark"); // NOI18N
    jScrollPane1.setViewportView(jTextAreaRemark);

    jToolBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jToolBar1.setFloatable(false);
    jToolBar1.setRollover(true);
    jToolBar1.setBorderPainted(false);
    jToolBar1.setName("jToolBar1"); // NOI18N
    jToolBar1.setOpaque(false);

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(com.jskj.asset.client.AssetClientApp.class).getContext()
            .getActionMap(DiZhiYiHaoPinDengJiJDialog.class, this);
    jButton5.setAction(actionMap.get("submitForm")); // NOI18N
    jButton5.setIcon(resourceMap.getIcon("jButton5.icon")); // NOI18N
    jButton5.setText(resourceMap.getString("jButton5.text")); // NOI18N
    jButton5.setBorderPainted(false);
    jButton5.setFocusable(false);
    jButton5.setName("jButton5"); // NOI18N
    jButton5.setOpaque(false);
    jToolBar1.add(jButton5);

    jButton1.setAction(actionMap.get("buhege")); // NOI18N
    jButton1.setIcon(resourceMap.getIcon("jButton1.icon")); // NOI18N
    jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
    jButton1.setBorderPainted(false);
    jButton1.setFocusable(false);
    jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton1.setName("jButton1"); // NOI18N
    jButton1.setOpaque(false);
    jToolBar1.add(jButton1);

    jButton8.setAction(actionMap.get("zhijielingyong")); // NOI18N
    jButton8.setIcon(resourceMap.getIcon("jButton8.icon")); // NOI18N
    jButton8.setText(resourceMap.getString("jButton8.text")); // NOI18N
    jButton8.setBorderPainted(false);
    jButton8.setFocusable(false);
    jButton8.setName("jButton8"); // NOI18N
    jButton8.setOpaque(false);
    jToolBar1.add(jButton8);

    jButton6.setAction(actionMap.get("generatorBar")); // NOI18N
    jButton6.setIcon(resourceMap.getIcon("jButton6.icon")); // NOI18N
    jButton6.setText(resourceMap.getString("jButton6.text")); // NOI18N
    jButton6.setBorderPainted(false);
    jButton6.setFocusable(false);
    jButton6.setName("jButton6"); // NOI18N
    jButton6.setOpaque(false);
    jToolBar1.add(jButton6);

    jButton4.setAction(actionMap.get("exit")); // NOI18N
    jButton4.setIcon(resourceMap.getIcon("jButton4.icon")); // NOI18N
    jButton4.setText(resourceMap.getString("jButton4.text")); // NOI18N
    jButton4.setBorderPainted(false);
    jButton4.setFocusable(false);
    jButton4.setName("jButton4"); // NOI18N
    jButton4.setOpaque(false);
    jToolBar1.add(jButton4);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addGap(23, 23, 23).addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel8)
                                    .addGap(18, 18, 18).addComponent(jTextFieldQuantity,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 164,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel3).addComponent(jLabel1))
                                    .addGap(18, 18, 18)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jTextFieldZcid).addComponent(jTextFieldZctype,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 165,
                                                    Short.MAX_VALUE)))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel4).addComponent(jLabel6))
                                    .addGap(18, 18, 18)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jTextFieldPinpai,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)
                                            .addComponent(jTextFieldGuige))))
                            .addGap(48, 48, 48)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel9).addComponent(jLabel5).addComponent(jLabel2)
                                    .addComponent(jLabel7).addComponent(jLabel13).addComponent(jLabel15))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jTextFieldSequence, javax.swing.GroupLayout.DEFAULT_SIZE, 172,
                                            Short.MAX_VALUE)
                                    .addComponent(jTextFieldBaoxiuqi).addComponent(jTextFieldUnit)
                                    .addComponent(jTextFieldXinghao).addComponent(jTextFieldSupplier)
                                    .addComponent(jTextFieldName))
                            .addContainerGap(23, Short.MAX_VALUE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel14).addComponent(jLabel12).addComponent(jLabel16))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 164,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jTextFieldPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 164,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jScrollPane1)
                                            .addGap(12, 12, 12)))
                            .addGap(12, 12, 12))))
            .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 563, Short.MAX_VALUE));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 50,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jTextFieldZcid, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2).addComponent(jTextFieldName,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldZctype, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldGuige, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4).addComponent(jLabel5).addComponent(jTextFieldXinghao,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldPinpai, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6)
                            .addComponent(jTextFieldUnit, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldQuantity, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8)
                            .addComponent(jTextFieldSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel12)
                            .addComponent(jTextFieldBaoxiuqi, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel13))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel14)
                            .addComponent(jTextFieldSequence, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel15))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 19,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(0, 46, Short.MAX_VALUE))
                            .addComponent(jScrollPane1))
                    .addContainerGap()));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                    layout.createSequentialGroup().addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(0, 0, Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));

    pack();
}

From source file:com.jskj.asset.client.panel.slgl.GuDingZiChanYanShouJDialog.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor.//from w w  w  . j a  va 2  s. c om
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jToolBar1 = new javax.swing.JToolBar();
    jButton1 = new javax.swing.JButton();
    jButton3 = new javax.swing.JButton();
    jButton7 = new javax.swing.JButton();
    jButton10 = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    jTextField1 = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jTextField2 = new javax.swing.JTextField();
    jLabel3 = new javax.swing.JLabel();
    jTextField4 = regTextField;
    jLabel4 = new javax.swing.JLabel();
    jTextFieldPrice = new javax.swing.JTextField();
    jLabel17 = new javax.swing.JLabel();
    jTextFieldZichan = new BaseTextField();
    jLabel18 = new javax.swing.JLabel();
    jTextFieldCaigouren = new BaseTextField();
    jTextFieldXinghao = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    jLabel19 = new javax.swing.JLabel();
    jTextFieldGuige = new javax.swing.JTextField();
    jTextFieldYanshouren = new javax.swing.JTextField();
    jLabel10 = new javax.swing.JLabel();
    jTextFieldUnit = new javax.swing.JTextField();
    jLabel21 = new javax.swing.JLabel();
    jTextField13 = new javax.swing.JTextField();
    jLabel22 = new javax.swing.JLabel();
    jTextField14 = new javax.swing.JTextField();
    jLabel23 = new javax.swing.JLabel();
    jTextField15 = new javax.swing.JTextField();
    jLabel24 = new javax.swing.JLabel();
    jTextFieldJianceren = new javax.swing.JTextField();
    jLabel11 = new javax.swing.JLabel();
    jTextFieldZhidanren = new javax.swing.JTextField();
    jLabel14 = new javax.swing.JLabel();
    jButton2 = new javax.swing.JButton();
    jTextFieldFile = new javax.swing.JTextField();
    jTextFieldQuantity = new javax.swing.JTextField();
    jLabel25 = new javax.swing.JLabel();

    setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(com.jskj.asset.client.AssetClientApp.class).getContext()
            .getResourceMap(GuDingZiChanYanShouJDialog.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setName("Form"); // NOI18N
    setResizable(false);

    jPanel1.setName("jPanel1"); // NOI18N

    jToolBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jToolBar1.setFloatable(false);
    jToolBar1.setRollover(true);
    jToolBar1.setBorderPainted(false);
    jToolBar1.setName("jToolBar1"); // NOI18N
    jToolBar1.setOpaque(false);

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(com.jskj.asset.client.AssetClientApp.class).getContext()
            .getActionMap(GuDingZiChanYanShouJDialog.class, this);
    jButton1.setAction(actionMap.get("submitForm")); // NOI18N
    jButton1.setIcon(resourceMap.getIcon("jButton1.icon")); // NOI18N
    jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
    jButton1.setBorderPainted(false);
    jButton1.setFocusable(false);
    jButton1.setName("jButton1"); // NOI18N
    jButton1.setOpaque(false);
    jToolBar1.add(jButton1);

    jButton3.setAction(actionMap.get("buhege")); // NOI18N
    jButton3.setIcon(resourceMap.getIcon("jButton3.icon")); // NOI18N
    jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N
    jButton3.setBorderPainted(false);
    jButton3.setFocusable(false);
    jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton3.setName("jButton3"); // NOI18N
    jButton3.setOpaque(false);
    jToolBar1.add(jButton3);

    jButton7.setIcon(resourceMap.getIcon("jButton7.icon")); // NOI18N
    jButton7.setText(resourceMap.getString("jButton7.text")); // NOI18N
    jButton7.setBorderPainted(false);
    jButton7.setFocusable(false);
    jButton7.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton7.setName("jButton7"); // NOI18N
    jButton7.setOpaque(false);
    jToolBar1.add(jButton7);

    jButton10.setAction(actionMap.get("exit")); // NOI18N
    jButton10.setIcon(resourceMap.getIcon("jButton10.icon")); // NOI18N
    jButton10.setText(resourceMap.getString("jButton10.text")); // NOI18N
    jButton10.setBorderPainted(false);
    jButton10.setFocusable(false);
    jButton10.setName("jButton10"); // NOI18N
    jButton10.setOpaque(false);
    jToolBar1.add(jButton10);

    jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N

    jTextField1.setText(resourceMap.getString("jTextField1.text")); // NOI18N
    jTextField1.setName("jTextField1"); // NOI18N
    jTextField1.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N

    jTextField2.setName("jTextField2"); // NOI18N
    jTextField2.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
    jLabel3.setName("jLabel3"); // NOI18N

    jTextField4.setName("jTextField4"); // NOI18N
    jTextField4.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
    jLabel4.setName("jLabel4"); // NOI18N

    jTextFieldPrice.setEditable(false);
    jTextFieldPrice.setName("jTextFieldPrice"); // NOI18N
    jTextFieldPrice.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel17.setText(resourceMap.getString("jLabel17.text")); // NOI18N
    jLabel17.setName("jLabel17"); // NOI18N

    jTextFieldZichan.setName("jTextFieldZichan"); // NOI18N
    jTextFieldZichan.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel18.setText(resourceMap.getString("jLabel18.text")); // NOI18N
    jLabel18.setName("jLabel18"); // NOI18N

    jTextFieldCaigouren.setName("jTextFieldCaigouren"); // NOI18N
    jTextFieldCaigouren.setPreferredSize(new java.awt.Dimension(0, 30));

    jTextFieldXinghao.setName("jTextFieldXinghao"); // NOI18N
    jTextFieldXinghao.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
    jLabel8.setName("jLabel8"); // NOI18N

    jLabel19.setText(resourceMap.getString("jLabel19.text")); // NOI18N
    jLabel19.setName("jLabel19"); // NOI18N

    jTextFieldGuige.setName("jTextFieldGuige"); // NOI18N
    jTextFieldGuige.setPreferredSize(new java.awt.Dimension(0, 30));

    jTextFieldYanshouren.setName("jTextFieldYanshouren"); // NOI18N
    jTextFieldYanshouren.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
    jLabel10.setName("jLabel10"); // NOI18N

    jTextFieldUnit.setName("jTextFieldUnit"); // NOI18N
    jTextFieldUnit.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel21.setText(resourceMap.getString("jLabel21.text")); // NOI18N
    jLabel21.setName("jLabel21"); // NOI18N

    jTextField13.setName("jTextField13"); // NOI18N
    jTextField13.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel22.setText(resourceMap.getString("jLabel22.text")); // NOI18N
    jLabel22.setName("jLabel22"); // NOI18N

    jTextField14.setName("jTextField14"); // NOI18N
    jTextField14.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel23.setText(resourceMap.getString("jLabel23.text")); // NOI18N
    jLabel23.setName("jLabel23"); // NOI18N

    jTextField15.setName("jTextField15"); // NOI18N
    jTextField15.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel24.setText(resourceMap.getString("jLabel24.text")); // NOI18N
    jLabel24.setName("jLabel24"); // NOI18N

    jTextFieldJianceren.setName("jTextFieldJianceren"); // NOI18N
    jTextFieldJianceren.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
    jLabel11.setName("jLabel11"); // NOI18N

    jTextFieldZhidanren.setName("jTextFieldZhidanren"); // NOI18N

    jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
    jLabel14.setName("jLabel14"); // NOI18N

    jButton2.setAction(actionMap.get("uploadPic")); // NOI18N
    jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
    jButton2.setName("jButton2"); // NOI18N

    jTextFieldFile.setEditable(false);
    jTextFieldFile.setName("jTextFieldFile"); // NOI18N
    jTextFieldFile.setPreferredSize(new java.awt.Dimension(0, 30));

    jTextFieldQuantity.setName("jTextFieldQuantity"); // NOI18N
    jTextFieldQuantity.setPreferredSize(new java.awt.Dimension(0, 30));

    jLabel25.setText(resourceMap.getString("jLabel25.text")); // NOI18N
    jLabel25.setName("jLabel25"); // NOI18N

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING).addComponent(jLabel18)
                    .addGroup(jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addComponent(jLabel24))
                    .addComponent(jLabel21).addComponent(jLabel19).addComponent(jLabel14)
                    .addComponent(jLabel25)).addGap(18, 18, 18)
                    .addGroup(jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addComponent(jTextFieldZhidanren, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            160, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(25, 25, 25).addComponent(jButton2)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jTextFieldFile, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    false)
                                            .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    160, Short.MAX_VALUE)
                                            .addComponent(jTextFieldZichan,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jTextFieldXinghao,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jTextFieldPrice, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jTextFieldCaigouren,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addGap(69, 69, 69)
                                            .addGroup(jPanel1Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                    .addComponent(jLabel4).addComponent(jLabel10)
                                                    .addComponent(jLabel8).addComponent(jLabel3)
                                                    .addComponent(jLabel2)))
                                    .addComponent(jLabel11)).addGap(18, 18, 18)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jTextFieldJianceren,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jTextField4, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jTextFieldGuige, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jTextFieldUnit, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jTextFieldYanshouren,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE,
                                                    166, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jTextFieldQuantity, javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField13, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jTextField14, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jTextField15, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 50,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(jLabel1)
                            .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2).addComponent(jTextField2,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel17)
                            .addComponent(jTextFieldZichan, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldXinghao, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8)
                            .addComponent(jTextFieldGuige, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel19))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldUnit, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel21)
                            .addComponent(jTextFieldPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldJianceren, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11)
                            .addComponent(jTextFieldQuantity, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel25))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldYanshouren, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel10)
                            .addComponent(jTextFieldCaigouren, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel18))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel22))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel23))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 15,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton2)
                            .addComponent(jTextFieldFile, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jTextFieldZhidanren, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel14))
                    .addContainerGap()));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(0, 0, Short.MAX_VALUE)));

    pack();
}

From source file:com.jskj.asset.client.panel.slgl.PTGuDingZiChanDengJiJDialog.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor./*from w  w w. ja  v a 2  s.  com*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jTextFieldZcid = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jTextFieldName = new BaseTextField();
    jLabel3 = new javax.swing.JLabel();
    jTextFieldZctype = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    jTextFieldGuige = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    jTextFieldXinghao = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    jTextFieldPinpai = new javax.swing.JTextField();
    jTextFieldUnit = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    jTextFieldQuantity = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    jTextFieldSupplier = new javax.swing.JTextField();
    jLabel9 = new javax.swing.JLabel();
    jTextField = regTextField;
    jLabel12 = new javax.swing.JLabel();
    jLabel13 = new javax.swing.JLabel();
    jTextFieldBaoxiuqi = regTextField1;
    jTextFieldPrice = new javax.swing.JTextField();
    jLabel14 = new javax.swing.JLabel();
    jTextFieldXuliehao = new javax.swing.JTextField();
    jLabel15 = new javax.swing.JLabel();
    jLabel16 = new javax.swing.JLabel();
    jButton3 = new javax.swing.JButton();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextAreaRemark = new javax.swing.JTextArea();
    jToolBar1 = new javax.swing.JToolBar();
    jButton5 = new javax.swing.JButton();
    jButton1 = new javax.swing.JButton();
    jButton6 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jScrollPane3 = new javax.swing.JScrollPane();
    gdzcPhoto = new javax.swing.JList();
    jButton7 = new javax.swing.JButton();
    jButton8 = new javax.swing.JButton();
    jButton9 = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(com.jskj.asset.client.AssetClientApp.class).getContext()
            .getResourceMap(PTGuDingZiChanDengJiJDialog.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setName("Form"); // NOI18N
    setResizable(false);

    jPanel1.setName("jPanel1"); // NOI18N

    jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
    jLabel1.setName("jLabel1"); // NOI18N

    jTextFieldZcid.setText(resourceMap.getString("jTextFieldZcid.text")); // NOI18N
    jTextFieldZcid.setName("jTextFieldZcid"); // NOI18N

    jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
    jLabel2.setName("jLabel2"); // NOI18N

    jTextFieldName.setName("jTextFieldName"); // NOI18N

    jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
    jLabel3.setName("jLabel3"); // NOI18N

    jTextFieldZctype.setText(resourceMap.getString("jTextFieldZctype.text")); // NOI18N
    jTextFieldZctype.setName("jTextFieldZctype"); // NOI18N

    jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
    jLabel4.setName("jLabel4"); // NOI18N

    jTextFieldGuige.setName("jTextFieldGuige"); // NOI18N

    jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
    jLabel5.setName("jLabel5"); // NOI18N

    jTextFieldXinghao.setName("jTextFieldXinghao"); // NOI18N

    jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
    jLabel6.setName("jLabel6"); // NOI18N

    jTextFieldPinpai.setName("jTextFieldPinpai"); // NOI18N

    jTextFieldUnit.setName("jTextFieldUnit"); // NOI18N

    jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
    jLabel7.setName("jLabel7"); // NOI18N

    jTextFieldQuantity.setName("jTextFieldQuantity"); // NOI18N

    jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
    jLabel8.setName("jLabel8"); // NOI18N

    jTextFieldSupplier.setName("jTextFieldSupplier"); // NOI18N

    jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
    jLabel9.setName("jLabel9"); // NOI18N

    jTextField.setName("jTextField"); // NOI18N

    jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
    jLabel12.setName("jLabel12"); // NOI18N

    jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
    jLabel13.setName("jLabel13"); // NOI18N

    jTextFieldBaoxiuqi.setName("jTextFieldBaoxiuqi"); // NOI18N

    jTextFieldPrice.setEditable(false);
    jTextFieldPrice.setName("jTextFieldPrice"); // NOI18N

    jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
    jLabel14.setName("jLabel14"); // NOI18N

    jTextFieldXuliehao.setName("jTextFieldXuliehao"); // NOI18N

    jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N
    jLabel15.setName("jLabel15"); // NOI18N

    jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
    jLabel16.setName("jLabel16"); // NOI18N

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(com.jskj.asset.client.AssetClientApp.class).getContext()
            .getActionMap(PTGuDingZiChanDengJiJDialog.class, this);
    jButton3.setAction(actionMap.get("fushuliebiao")); // NOI18N
    jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N
    jButton3.setName("jButton3"); // NOI18N

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    jTextAreaRemark.setColumns(20);
    jTextAreaRemark.setRows(2);
    jTextAreaRemark.setName("jTextAreaRemark"); // NOI18N
    jScrollPane1.setViewportView(jTextAreaRemark);

    jToolBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
    jToolBar1.setFloatable(false);
    jToolBar1.setRollover(true);
    jToolBar1.setBorderPainted(false);
    jToolBar1.setName("jToolBar1"); // NOI18N
    jToolBar1.setOpaque(false);

    jButton5.setAction(actionMap.get("submitForm")); // NOI18N
    jButton5.setIcon(resourceMap.getIcon("jButton5.icon")); // NOI18N
    jButton5.setText(resourceMap.getString("jButton5.text")); // NOI18N
    jButton5.setBorderPainted(false);
    jButton5.setFocusable(false);
    jButton5.setName("jButton5"); // NOI18N
    jButton5.setOpaque(false);
    jToolBar1.add(jButton5);

    jButton1.setAction(actionMap.get("buhege")); // NOI18N
    jButton1.setIcon(resourceMap.getIcon("jButton1.icon")); // NOI18N
    jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
    jButton1.setBorderPainted(false);
    jButton1.setFocusable(false);
    jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT);
    jButton1.setName("jButton1"); // NOI18N
    jButton1.setOpaque(false);
    jToolBar1.add(jButton1);

    jButton6.setAction(actionMap.get("generatorBar")); // NOI18N
    jButton6.setIcon(resourceMap.getIcon("jButton6.icon")); // NOI18N
    jButton6.setText(resourceMap.getString("jButton6.text")); // NOI18N
    jButton6.setBorderPainted(false);
    jButton6.setFocusable(false);
    jButton6.setName("jButton6"); // NOI18N
    jButton6.setOpaque(false);
    jToolBar1.add(jButton6);

    jButton4.setAction(actionMap.get("exit")); // NOI18N
    jButton4.setIcon(resourceMap.getIcon("jButton4.icon")); // NOI18N
    jButton4.setText(resourceMap.getString("jButton4.text")); // NOI18N
    jButton4.setBorderPainted(false);
    jButton4.setFocusable(false);
    jButton4.setName("jButton4"); // NOI18N
    jButton4.setOpaque(false);
    jToolBar1.add(jButton4);

    jScrollPane3.setName("jScrollPane3"); // NOI18N

    gdzcPhoto.setName("gdzcPhoto"); // NOI18N
    jScrollPane3.setViewportView(gdzcPhoto);

    jButton7.setAction(actionMap.get("uploadPic")); // NOI18N
    jButton7.setText(resourceMap.getString("jButton7.text")); // NOI18N
    jButton7.setName("jButton7"); // NOI18N

    jButton8.setAction(actionMap.get("deletePic")); // NOI18N
    jButton8.setText(resourceMap.getString("jButton8.text")); // NOI18N
    jButton8.setName("jButton8"); // NOI18N

    jButton9.setAction(actionMap.get("imagePreview")); // NOI18N
    jButton9.setText(resourceMap.getString("jButton9.text")); // NOI18N
    jButton9.setName("jButton9"); // NOI18N

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 557, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addGap(23, 23, 23)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel3).addComponent(jLabel1))
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(jPanel1Layout
                                                    .createParallelGroup(
                                                            javax.swing.GroupLayout.Alignment.TRAILING)
                                                    .addComponent(jLabel12).addComponent(jLabel14)
                                                    .addComponent(jLabel16))
                                            .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING)))
                                    .addGap(18, 18, 18)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanel1Layout.createSequentialGroup()
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING)
                                                            .addComponent(jTextFieldZcid)
                                                            .addComponent(jTextFieldZctype)
                                                            .addComponent(jTextFieldGuige,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 164,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(jTextFieldPinpai).addComponent(
                                                                    jTextFieldQuantity,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 164,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(jTextField,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 164,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                                            .addComponent(jTextFieldPrice,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 164,
                                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addGap(51, 51, 51)
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.TRAILING)
                                                            .addComponent(jLabel9).addComponent(jLabel5)
                                                            .addComponent(jLabel2).addComponent(jLabel7)
                                                            .addComponent(jLabel13).addComponent(jLabel15))
                                                    .addGap(18, 18, 18)
                                                    .addGroup(jPanel1Layout
                                                            .createParallelGroup(
                                                                    javax.swing.GroupLayout.Alignment.LEADING,
                                                                    false)
                                                            .addComponent(jTextFieldXuliehao,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE, 172,
                                                                    Short.MAX_VALUE)
                                                            .addComponent(jTextFieldBaoxiuqi)
                                                            .addComponent(jTextFieldUnit)
                                                            .addComponent(jTextFieldXinghao)
                                                            .addComponent(jTextFieldSupplier)
                                                            .addComponent(jTextFieldName)))
                                            .addComponent(jScrollPane1)))
                            .addGroup(jPanel1Layout.createSequentialGroup().addGap(24, 24, 24)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jButton3).addComponent(jButton8))
                                    .addGap(30, 30, 30)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jButton7).addComponent(jButton9))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGap(15, 15, 15)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 50,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jTextFieldZcid, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2).addComponent(jTextFieldName,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldZctype, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldGuige, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4).addComponent(jLabel5).addComponent(jTextFieldXinghao,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldPinpai, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel6)
                            .addComponent(jTextFieldUnit, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel7))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldQuantity, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8)
                            .addComponent(jTextFieldSupplier, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel9))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel12)
                            .addComponent(jTextFieldBaoxiuqi, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel13))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextFieldPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel14)
                            .addComponent(jTextFieldXuliehao, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel15))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 19,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup().addGap(18, 18, Short.MAX_VALUE)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGap(31, 31, 31)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                            .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 31,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 31,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(jPanel1Layout.createSequentialGroup().addGap(10, 10, 10)
                                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 138,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(jPanel1,
                    javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
            jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
            Short.MAX_VALUE));

    pack();
}

From source file:canreg.client.gui.analysis.ExportReportInternalFrame.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor./*from  w  w w .j a  va  2s  . c  om*/
 */
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    resultPanel = new javax.swing.JPanel();
    jTabbedPane1 = new javax.swing.JTabbedPane();
    jPanel1 = new javax.swing.JPanel();
    exportSourceInformationCheckBox = new javax.swing.JCheckBox();
    jSplitPane1 = new javax.swing.JSplitPane();
    rangeFilterPanel = new canreg.client.gui.components.RangeFilterPanel();
    variableChooserPanel = new canreg.client.gui.components.VariablesChooserPanel();
    settingsPanel = new javax.swing.JPanel();
    setupPanel = new javax.swing.JPanel();
    loadSetupButton = new javax.swing.JButton();
    saveSetupButton = new javax.swing.JButton();
    optionsPanel = new javax.swing.JPanel();
    headingCheckBox = new javax.swing.JCheckBox();
    variableNamesComboBox = new javax.swing.JComboBox();
    variableNamesLabel = new javax.swing.JLabel();
    fileFormatLabel = new javax.swing.JLabel();
    fileFormatComboBox = new javax.swing.JComboBox();
    formatDateCheckBox = new javax.swing.JCheckBox();
    correctUnknownCheckBox = new javax.swing.JCheckBox();
    dateFormatComboBox = new javax.swing.JComboBox();
    exportPanel = new javax.swing.JPanel();
    writeFileButton = new javax.swing.JButton();

    setClosable(true);
    setMaximizable(true);
    setResizable(true);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getResourceMap(ExportReportInternalFrame.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setDoubleBuffered(true);
    setFrameIcon(resourceMap.getIcon("Form.frameIcon")); // NOI18N
    setMinimumSize(new java.awt.Dimension(800, 400));
    setName("Form"); // NOI18N
    try {
        setSelected(true);
    } catch (java.beans.PropertyVetoException e1) {
        e1.printStackTrace();
    }

    resultPanel.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("resultPanel.border.title"))); // NOI18N
    resultPanel.setName("resultPanel"); // NOI18N

    javax.swing.GroupLayout resultPanelLayout = new javax.swing.GroupLayout(resultPanel);
    resultPanel.setLayout(resultPanelLayout);
    resultPanelLayout.setHorizontalGroup(resultPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));
    resultPanelLayout.setVerticalGroup(resultPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 173, Short.MAX_VALUE));

    jTabbedPane1.setName("jTabbedPane1"); // NOI18N

    jPanel1.setName("jPanel1"); // NOI18N

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getActionMap(ExportReportInternalFrame.class, this);
    exportSourceInformationCheckBox.setAction(actionMap.get("exportSourceInformationTickBoxUpdated")); // NOI18N
    exportSourceInformationCheckBox.setText(resourceMap.getString("exportSourceInformationCheckBox.text")); // NOI18N
    exportSourceInformationCheckBox
            .setToolTipText(resourceMap.getString("exportSourceInformationCheckBox.toolTipText")); // NOI18N
    exportSourceInformationCheckBox.setName("exportSourceInformationCheckBox"); // NOI18N

    jSplitPane1.setDividerLocation(400);
    jSplitPane1.setResizeWeight(0.5);
    jSplitPane1.setName("jSplitPane1"); // NOI18N

    rangeFilterPanel.setName("rangeFilterPanel"); // NOI18N
    jSplitPane1.setLeftComponent(rangeFilterPanel);

    variableChooserPanel.setName("variableChooserPanel"); // NOI18N
    jSplitPane1.setRightComponent(variableChooserPanel);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSplitPane1).addGroup(jPanel1Layout.createSequentialGroup()
                            .addGap(0, 0, Short.MAX_VALUE).addComponent(exportSourceInformationCheckBox)));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jSplitPane1)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(exportSourceInformationCheckBox)));

    jTabbedPane1.addTab(resourceMap.getString("jPanel1.TabConstraints.tabTitle"), jPanel1); // NOI18N

    settingsPanel.setName("settingsPanel"); // NOI18N

    setupPanel.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("setupPanel.border.title"))); // NOI18N
    setupPanel.setName("setupPanel"); // NOI18N

    loadSetupButton.setText(resourceMap.getString("loadSetupButton.text")); // NOI18N
    loadSetupButton.setEnabled(false);
    loadSetupButton.setName("loadSetupButton"); // NOI18N

    saveSetupButton.setText(resourceMap.getString("saveSetupButton.text")); // NOI18N
    saveSetupButton.setEnabled(false);
    saveSetupButton.setName("saveSetupButton"); // NOI18N

    javax.swing.GroupLayout setupPanelLayout = new javax.swing.GroupLayout(setupPanel);
    setupPanel.setLayout(setupPanelLayout);
    setupPanelLayout
            .setHorizontalGroup(setupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(setupPanelLayout.createSequentialGroup().addComponent(loadSetupButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(saveSetupButton)));
    setupPanelLayout.setVerticalGroup(setupPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(setupPanelLayout.createSequentialGroup()
                    .addGroup(setupPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(loadSetupButton).addComponent(saveSetupButton))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    optionsPanel.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("optionsPanel.border.title"))); // NOI18N
    optionsPanel.setName("optionsPanel"); // NOI18N

    headingCheckBox.setSelected(true);
    headingCheckBox.setText(resourceMap.getString("headingCheckBox.text")); // NOI18N
    headingCheckBox.setEnabled(false);
    headingCheckBox.setName("headingCheckBox"); // NOI18N

    variableNamesComboBox.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Short", "English", "Full", "Standard" }));
    variableNamesComboBox.setName("variableNamesComboBox"); // NOI18N

    variableNamesLabel.setText(resourceMap.getString("variableNamesLabel.text")); // NOI18N
    variableNamesLabel.setName("variableNamesLabel"); // NOI18N

    fileFormatLabel.setText(resourceMap.getString("fileFormatLabel.text")); // NOI18N
    fileFormatLabel.setName("fileFormatLabel"); // NOI18N

    fileFormatComboBox.setEditable(true);
    fileFormatComboBox.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Comma Separated", "Tab Separated Values" }));
    fileFormatComboBox.setName("fileFormatComboBox"); // NOI18N

    formatDateCheckBox.setAction(actionMap.get("formatDateCheckBoxChanged")); // NOI18N
    formatDateCheckBox.setText(resourceMap.getString("formatDateCheckBox.text")); // NOI18N
    formatDateCheckBox.setToolTipText(resourceMap.getString("formatDateCheckBox.toolTipText")); // NOI18N
    formatDateCheckBox.setName("formatDateCheckBox"); // NOI18N

    correctUnknownCheckBox.setText(resourceMap.getString("correctUnknownCheckBox.text")); // NOI18N
    correctUnknownCheckBox.setToolTipText(resourceMap.getString("correctUnknownCheckBox.toolTipText")); // NOI18N
    correctUnknownCheckBox.setEnabled(false);
    correctUnknownCheckBox.setName("correctUnknownCheckBox"); // NOI18N

    dateFormatComboBox.setEditable(true);
    dateFormatComboBox.setModel(new javax.swing.DefaultComboBoxModel(
            new String[] { "dd/mm/yyyy", "mm/dd/yyyy", "mm/dd/yy", "yyyy/mm/dd" }));
    dateFormatComboBox.setToolTipText(resourceMap.getString("dateFormatComboBox.toolTipText")); // NOI18N
    dateFormatComboBox.setEnabled(false);
    dateFormatComboBox.setName("dateFormatComboBox"); // NOI18N
    dateFormatComboBox.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            dateFormatComboBoxMousePressed(evt);
        }
    });

    javax.swing.GroupLayout optionsPanelLayout = new javax.swing.GroupLayout(optionsPanel);
    optionsPanel.setLayout(optionsPanelLayout);
    optionsPanelLayout.setHorizontalGroup(optionsPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(optionsPanelLayout.createSequentialGroup().addGroup(optionsPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(optionsPanelLayout.createSequentialGroup()
                            .addComponent(variableNamesComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(variableNamesLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 526,
                                    Short.MAX_VALUE)
                            .addComponent(headingCheckBox))
                    .addGroup(optionsPanelLayout.createSequentialGroup().addComponent(fileFormatLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(fileFormatComboBox, 0, 713, Short.MAX_VALUE))
                    .addGroup(optionsPanelLayout.createSequentialGroup().addComponent(formatDateCheckBox)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(dateFormatComboBox, 0, 691, Short.MAX_VALUE))
                    .addComponent(correctUnknownCheckBox)).addContainerGap()));
    optionsPanelLayout.setVerticalGroup(optionsPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(optionsPanelLayout.createSequentialGroup().addGroup(optionsPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(variableNamesComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(variableNamesLabel).addComponent(headingCheckBox))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(optionsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(fileFormatLabel).addComponent(fileFormatComboBox,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(optionsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(formatDateCheckBox).addComponent(dateFormatComboBox,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(correctUnknownCheckBox).addGap(28, 28, 28)));

    exportPanel.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("exportPanel.border.title"))); // NOI18N
    exportPanel.setName("exportPanel"); // NOI18N

    writeFileButton.setAction(actionMap.get("writeFileAction")); // NOI18N
    writeFileButton.setName("writeFileButton"); // NOI18N

    javax.swing.GroupLayout exportPanelLayout = new javax.swing.GroupLayout(exportPanel);
    exportPanel.setLayout(exportPanelLayout);
    exportPanelLayout
            .setHorizontalGroup(exportPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(writeFileButton, javax.swing.GroupLayout.DEFAULT_SIZE, 648, Short.MAX_VALUE));
    exportPanelLayout.setVerticalGroup(exportPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(exportPanelLayout.createSequentialGroup()
                    .addComponent(writeFileButton, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)
                    .addContainerGap()));

    javax.swing.GroupLayout settingsPanelLayout = new javax.swing.GroupLayout(settingsPanel);
    settingsPanel.setLayout(settingsPanelLayout);
    settingsPanelLayout.setHorizontalGroup(settingsPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(settingsPanelLayout.createSequentialGroup()
                    .addComponent(setupPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(exportPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(optionsPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    settingsPanelLayout.setVerticalGroup(settingsPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(settingsPanelLayout.createSequentialGroup()
                    .addComponent(optionsPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(settingsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(exportPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(setupPanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(84, Short.MAX_VALUE)));

    jTabbedPane1.addTab(resourceMap.getString("settingsPanel.TabConstraints.tabTitle"), settingsPanel); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane1).addComponent(resultPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                    javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(resultPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    pack();
}

From source file:canreg.client.gui.management.CanReg4MigrationInternalFrame.java

/**
 * This method is called from within the constructor to initialize the form.
 * WARNING: Do NOT modify this code. The content of this method is always
 * regenerated by the Form Editor./*from ww w  .  j  ava2 s .c o  m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jScrollPane2 = new javax.swing.JScrollPane();
    taskOutput = new javax.swing.JTextArea();
    ProgressBar = new javax.swing.JProgressBar();
    tabbedPane = new javax.swing.JTabbedPane();
    jPanel1 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jList1 = new javax.swing.JList();
    jPanel2 = new javax.swing.JPanel();
    browseCR4Button = new javax.swing.JButton();
    cr4Label = new javax.swing.JLabel();
    sysDefTextField = new javax.swing.JTextField();
    okButton = new javax.swing.JButton();
    cancelButton = new javax.swing.JButton();
    TotalProgressBar = new javax.swing.JProgressBar();
    doneButton = new javax.swing.JButton();

    setClosable(true);
    setMaximizable(true);
    setResizable(true);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getResourceMap(CanReg4MigrationInternalFrame.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setFrameIcon(resourceMap.getIcon("Form.frameIcon")); // NOI18N
    setName("Form"); // NOI18N

    jScrollPane2.setName("jScrollPane2"); // NOI18N

    taskOutput.setColumns(20);
    taskOutput.setFont(resourceMap.getFont("taskOutput.font")); // NOI18N
    taskOutput.setRows(5);
    taskOutput.setName("taskOutput"); // NOI18N
    jScrollPane2.setViewportView(taskOutput);

    ProgressBar.setName("ProgressBar"); // NOI18N
    ProgressBar.setStringPainted(true);

    tabbedPane.setName("tabbedPane"); // NOI18N

    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Select Registry For Migration"));
    jPanel1.setName("jPanel1"); // NOI18N

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    jList1.setFont(resourceMap.getFont("jList1.font")); // NOI18N
    jList1.setModel(dlm);
    jList1.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    jList1.setName("jList1"); // NOI18N
    jList1.setSelectedIndex(0);
    jList1.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            jList1MouseClicked(evt);
        }
    });
    jScrollPane1.setViewportView(jList1);

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout
            .setHorizontalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 704, Short.MAX_VALUE));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 193, Short.MAX_VALUE));

    tabbedPane.addTab(resourceMap.getString("jPanel1.TabConstraints.tabTitle"), jPanel1); // NOI18N

    jPanel2.setName("jPanel2"); // NOI18N

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getActionMap(CanReg4MigrationInternalFrame.class, this);
    browseCR4Button.setAction(actionMap.get("browseDefAction")); // NOI18N
    browseCR4Button.setText(resourceMap.getString("browseCR4Button.text")); // NOI18N
    browseCR4Button.setName("browseCR4Button"); // NOI18N

    cr4Label.setText(resourceMap.getString("cr4Label.text")); // NOI18N
    cr4Label.setName("cr4Label"); // NOI18N

    sysDefTextField.setName("sysDefTextField"); // NOI18N

    javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cr4Label).addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                    jPanel2Layout.createSequentialGroup()
                                            .addComponent(sysDefTextField, javax.swing.GroupLayout.DEFAULT_SIZE,
                                                    623, Short.MAX_VALUE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(browseCR4Button)))
                    .addContainerGap()));
    jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup().addContainerGap()
                    .addComponent(cr4Label, javax.swing.GroupLayout.PREFERRED_SIZE, 36,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(sysDefTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(browseCR4Button))
                    .addContainerGap(140, Short.MAX_VALUE)));

    tabbedPane.addTab(resourceMap.getString("jPanel2.TabConstraints.tabTitle"), jPanel2); // NOI18N

    okButton.setAction(actionMap.get("MigrationAction")); // NOI18N
    okButton.setText(resourceMap.getString("okButton.text")); // NOI18N
    okButton.setToolTipText(resourceMap.getString("okButton.toolTipText")); // NOI18N
    okButton.setActionCommand(resourceMap.getString("okButton.actionCommand")); // NOI18N
    okButton.setEnabled(false);
    okButton.setName("okButton"); // NOI18N

    cancelButton.setAction(actionMap.get("cancelAction")); // NOI18N
    cancelButton.setText(resourceMap.getString("cancelButton.text")); // NOI18N
    cancelButton.setEnabled(false);
    cancelButton.setName("cancelButton"); // NOI18N

    TotalProgressBar.setName("TotalProgressBar"); // NOI18N
    TotalProgressBar.setString(resourceMap.getString("TotalProgressBar.string")); // NOI18N
    TotalProgressBar.setStringPainted(true);

    doneButton.setAction(actionMap.get("DoneAction")); // NOI18N
    doneButton.setText(resourceMap.getString("doneButton.text")); // NOI18N
    doneButton.setEnabled(false);
    doneButton.setName("doneButton"); // NOI18N

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup().addContainerGap().addComponent(jScrollPane2,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 721, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            layout.createSequentialGroup().addContainerGap().addComponent(tabbedPane,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 721, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            layout.createSequentialGroup().addContainerGap()
                                    .addComponent(doneButton, javax.swing.GroupLayout.PREFERRED_SIZE, 118,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(cancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 115,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 120,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup().addGap(89, 89, 89).addComponent(ProgressBar,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 642, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                            layout.createSequentialGroup().addGap(89, 89, 89).addComponent(TotalProgressBar,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, 642, Short.MAX_VALUE)))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup().addContainerGap()
                    .addComponent(tabbedPane, javax.swing.GroupLayout.PREFERRED_SIZE, 244,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(okButton).addComponent(cancelButton).addComponent(doneButton))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(ProgressBar, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(TotalProgressBar, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 196, Short.MAX_VALUE)
                    .addContainerGap()));

    pack();
}

From source file:au.org.ala.delta.intkey.ui.OpenDataSetDialog.java

public OpenDataSetDialog(Frame owner, List<Pair<String, String>> datasetIndexData, File startBrowseDirectory) {
    super(owner, true);
    setPreferredSize(new Dimension(450, 300));

    ActionMap actionMap = Application.getInstance().getContext().getActionMap(this);
    ResourceMap resourceMap = Application.getInstance().getContext().getResourceMap(OpenDataSetDialog.class);
    resourceMap.injectFields(this);

    setTitle(title);//from   w ww.jav  a  2s .  c  o m

    _selectedDatasetPath = null;

    _pnlList = new JPanel();
    _pnlList.setBorder(new EmptyBorder(5, 5, 5, 5));
    getContentPane().add(_pnlList, BorderLayout.CENTER);
    _pnlList.setLayout(new BorderLayout(0, 0));

    _lblSelectByTitle = new JLabel(selectByTitleCaption);
    _pnlList.add(_lblSelectByTitle, BorderLayout.NORTH);

    _sclPnList = new JScrollPane();
    _pnlList.add(_sclPnList, BorderLayout.CENTER);

    _listDatasetIndex = new JList();
    _sclPnList.setViewportView(_listDatasetIndex);

    _pnlBottom = new JPanel();
    _pnlBottom.setBorder(new EmptyBorder(5, 5, 5, 5));
    getContentPane().add(_pnlBottom, BorderLayout.SOUTH);
    _pnlBottom.setLayout(new BorderLayout(0, 0));

    _lblSelectByFileName = new JLabel(selectByFileCaption);
    _pnlBottom.add(_lblSelectByFileName, BorderLayout.NORTH);

    _pnlButtons = new JPanel();
    _pnlButtons.setBorder(new EmptyBorder(10, 0, 0, 0));
    _pnlBottom.add(_pnlButtons, BorderLayout.SOUTH);

    _btnOK = new JButton();
    _btnOK.setAction(actionMap.get("OpenDataSetDialog_OK"));
    _pnlButtons.add(_btnOK);

    _btnCancel = new JButton();
    _btnCancel.setAction(actionMap.get("OpenDataSetDialog_Cancel"));
    _pnlButtons.add(_btnCancel);

    _btnHelp = new JButton();
    _btnHelp.setAction(actionMap.get("OpenDataSetDialog_Help"));
    _pnlButtons.add(_btnHelp);

    _pnlFile = new JPanel();
    _pnlBottom.add(_pnlFile, BorderLayout.CENTER);
    _pnlFile.setLayout(new BorderLayout(0, 0));

    _txtFldFileName = new JTextField();
    _pnlFile.add(_txtFldFileName, BorderLayout.CENTER);
    _txtFldFileName.setColumns(10);
    _txtFldFileName.addKeyListener(new KeyListener() {

        @Override
        public void keyTyped(KeyEvent e) {
            // Clear any selected item in the list of the text field is
            // modified.
            _listDatasetIndex.clearSelection();
        }

        @Override
        public void keyReleased(KeyEvent e) {
            // do nothing
        }

        @Override
        public void keyPressed(KeyEvent e) {
            // do nothing

        }
    });

    _btnBrowse = new JButton();
    _btnBrowse.setAction(actionMap.get("OpenDataSetDialog_Browse"));
    _pnlFile.add(_btnBrowse, BorderLayout.EAST);

    DefaultListModel model = new DefaultListModel();

    for (Pair<String, String> datasetInfo : datasetIndexData) {
        model.addElement(datasetInfo);
    }

    _listDatasetIndex.setModel(model);
    _listDatasetIndex.setCellRenderer(new DatasetIndexCellRenderer());

    _listDatasetIndex.addListSelectionListener(new ListSelectionListener() {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            // Clear any filename in the text field if an item is selected
            // from the text box.
            _txtFldFileName.setText(null);
        }
    });

    _startBrowseDirectory = startBrowseDirectory;
}