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:au.org.ala.delta.intkey.ui.CharacterSelectionDialog.java

private void init(List<Character> characters, boolean displayNumbering) {
    ResourceMap resourceMap = Application.getInstance().getContext()
            .getResourceMap(CharacterSelectionDialog.class);
    resourceMap.injectFields(this);
    ActionMap actionMap = Application.getInstance().getContext().getActionMap(CharacterSelectionDialog.class,
            this);

    setTitle(MessageFormat.format(title, _directiveName));

    _panelButtons.setBorder(new EmptyBorder(0, 20, 10, 20));
    _panelButtons.setLayout(new GridLayout(0, 5, 5, 5));

    _btnOk = new JButton();
    _btnOk.setAction(actionMap.get("characterSelectionDialog_OK"));
    _panelButtons.add(_btnOk);/*from www . ja va  2 s .co  m*/

    _btnSelectAll = new JButton();
    _btnSelectAll.setAction(actionMap.get("characterSelectionDialog_SelectAll"));
    _panelButtons.add(_btnSelectAll);

    _btnKeywords = new JButton();
    _btnKeywords.setAction(actionMap.get("characterSelectionDialog_Keywords"));
    _panelButtons.add(_btnKeywords);

    _btnImages = new JButton();
    _btnImages.setAction(actionMap.get("characterSelectionDialog_Images"));
    _btnImages.setEnabled(false);
    _panelButtons.add(_btnImages);

    _btnSearch = new JButton();
    _btnSearch.setAction(actionMap.get("characterSelectionDialog_Search"));
    _panelButtons.add(_btnSearch);

    _btnCancel = new JButton();
    _btnCancel.setAction(actionMap.get("characterSelectionDialog_Cancel"));
    _panelButtons.add(_btnCancel);

    _btnDeselectAll = new JButton();
    _btnDeselectAll.setAction(actionMap.get("characterSelectionDialog_DeselectAll"));
    _panelButtons.add(_btnDeselectAll);

    _btnFullText = new JButton();
    _btnFullText.setAction(actionMap.get("characterSelectionDialog_FullText"));
    _panelButtons.add(_btnFullText);

    _btnNotes = new JButton();
    _btnNotes.setAction(actionMap.get("characterSelectionDialog_Notes"));
    _btnNotes.setEnabled(false);
    _panelButtons.add(_btnNotes);

    _btnHelp = new JButton();
    _btnHelp.setAction(actionMap.get("characterSelectionDialog_Help"));
    _panelButtons.add(_btnHelp);

    // Some of the buttons should not be displayed if not in advanced mode
    if (_context.getUI().isAdvancedMode()) {
        _panelButtons.add(_btnOk);
        _panelButtons.add(_btnSelectAll);
        _panelButtons.add(_btnKeywords);
        _panelButtons.add(_btnImages);
        _panelButtons.add(_btnSearch);
        _panelButtons.add(_btnCancel);
        _panelButtons.add(_btnDeselectAll);
        _panelButtons.add(_btnFullText);
        _panelButtons.add(_btnNotes);
        _panelButtons.add(_btnHelp);
    } else {
        _panelButtons.setLayout(new GridLayout(0, 4, 5, 0));
        _panelButtons.add(_btnOk);
        _panelButtons.add(_btnCancel);
        _panelButtons.add(_btnSelectAll);
        _panelButtons.add(_btnDeselectAll);
    }

    _selectedCharacters = null;

    if (characters != null) {
        _listModel = new DefaultListModel();
        for (Character ch : characters) {
            _listModel.addElement(ch);
        }
        _list.setCellRenderer(new CharacterCellRenderer(displayNumbering));
        _list.setModel(_listModel);
    }

    _list.addListSelectionListener(new ListSelectionListener() {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            if (_list.getSelectedIndices().length == 1) {
                Character ch = (Character) _list.getSelectedValue();
                _btnImages.setEnabled(ch.getImages().size() > 0);
                _btnFullText.setEnabled(true);
                _btnNotes.setEnabled(StringUtils.isNotBlank(ch.getNotes()));
            } else {
                _btnImages.setEnabled(false);
                _btnFullText.setEnabled(false);
                _btnNotes.setEnabled(false);
            }
        }
    });

    _list.addMouseListener(new MouseAdapter() {

        @Override
        public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() > 1) {
                // Treat double click on a list item as the ok button being
                // pressed.
                characterSelectionDialog_OK();
            }
        }

    });

    _selectedKeywords = new ArrayList<String>();
}

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

public DefineButtonDialog(Frame owner, boolean modal) {
    super(owner, modal);
    setPreferredSize(new Dimension(500, 430));

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

    setTitle(title);// w w  w .  j  a v  a2  s .c o m

    _okButtonPressed = false;

    _pnlButtons = new JPanel();
    getContentPane().add(_pnlButtons, BorderLayout.SOUTH);

    _btnOk = new JButton();
    _btnOk.setAction(actionMap.get("DefineButtonDialog_OK"));
    _pnlButtons.add(_btnOk);

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

    _btnHelp = new JButton();
    _btnHelp.setAction(actionMap.get("DefineButtonDialog_Help"));
    _btnHelp.setEnabled(false);
    _pnlButtons.add(_btnHelp);

    _pnlMain = new JPanel();
    getContentPane().add(_pnlMain, BorderLayout.CENTER);
    _pnlMain.setLayout(new BorderLayout(5, 0));

    _pnlButtonProperties = new JPanel();
    _pnlButtonProperties.setBorder(new CompoundBorder(new EmptyBorder(5, 5, 5, 5), new CompoundBorder(
            new EtchedBorder(EtchedBorder.LOWERED, null, null), new EmptyBorder(5, 5, 5, 5))));
    _pnlMain.add(_pnlButtonProperties, BorderLayout.NORTH);
    GridBagLayout gbl__pnlButtonProperties = new GridBagLayout();
    gbl__pnlButtonProperties.columnWidths = new int[] { 475, 0 };
    gbl__pnlButtonProperties.rowHeights = new int[] { 14, 23, 14, 20, 14, 20, 14, 0, 23, 23, 23, 23, 0 };
    gbl__pnlButtonProperties.columnWeights = new double[] { 1.0, Double.MIN_VALUE };
    gbl__pnlButtonProperties.rowWeights = new double[] { 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
            0.0, Double.MIN_VALUE };
    _pnlButtonProperties.setLayout(gbl__pnlButtonProperties);

    _lblEnterNameOf = new JLabel(enterFileNameCaption);
    _lblEnterNameOf.setHorizontalAlignment(SwingConstants.LEFT);
    GridBagConstraints gbc__lblEnterNameOf = new GridBagConstraints();
    gbc__lblEnterNameOf.anchor = GridBagConstraints.WEST;
    gbc__lblEnterNameOf.insets = new Insets(0, 0, 5, 0);
    gbc__lblEnterNameOf.gridx = 0;
    gbc__lblEnterNameOf.gridy = 0;
    _pnlButtonProperties.add(_lblEnterNameOf, gbc__lblEnterNameOf);

    _pnlFile = new JPanel();
    GridBagConstraints gbc__pnlFile = new GridBagConstraints();
    gbc__pnlFile.fill = GridBagConstraints.HORIZONTAL;
    gbc__pnlFile.insets = new Insets(0, 0, 5, 0);
    gbc__pnlFile.gridx = 0;
    gbc__pnlFile.gridy = 1;
    _pnlButtonProperties.add(_pnlFile, gbc__pnlFile);
    _pnlFile.setLayout(new BorderLayout(0, 0));

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

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

    _lblEnterTheCommands = new JLabel(enterCommandsCaption);
    _lblEnterTheCommands.setHorizontalAlignment(SwingConstants.LEFT);
    GridBagConstraints gbc__lblEnterTheCommands = new GridBagConstraints();
    gbc__lblEnterTheCommands.anchor = GridBagConstraints.WEST;
    gbc__lblEnterTheCommands.insets = new Insets(0, 0, 5, 0);
    gbc__lblEnterTheCommands.gridx = 0;
    gbc__lblEnterTheCommands.gridy = 2;
    _pnlButtonProperties.add(_lblEnterTheCommands, gbc__lblEnterTheCommands);

    _txtFldCommands = new JTextField();
    GridBagConstraints gbc__txtFldCommands = new GridBagConstraints();
    gbc__txtFldCommands.fill = GridBagConstraints.HORIZONTAL;
    gbc__txtFldCommands.insets = new Insets(0, 0, 5, 0);
    gbc__txtFldCommands.gridx = 0;
    gbc__txtFldCommands.gridy = 3;
    _pnlButtonProperties.add(_txtFldCommands, gbc__txtFldCommands);
    _txtFldCommands.setColumns(10);

    _lblEnterBriefHelp = new JLabel(enterBriefHelpCaption);
    _lblEnterBriefHelp.setAlignmentY(Component.TOP_ALIGNMENT);
    GridBagConstraints gbc__lblEnterBriefHelp = new GridBagConstraints();
    gbc__lblEnterBriefHelp.anchor = GridBagConstraints.NORTHWEST;
    gbc__lblEnterBriefHelp.insets = new Insets(0, 0, 5, 0);
    gbc__lblEnterBriefHelp.gridx = 0;
    gbc__lblEnterBriefHelp.gridy = 4;
    _pnlButtonProperties.add(_lblEnterBriefHelp, gbc__lblEnterBriefHelp);

    _txtFldBriefHelp = new JTextField();
    GridBagConstraints gbc__txtFldBriefHelp = new GridBagConstraints();
    gbc__txtFldBriefHelp.fill = GridBagConstraints.HORIZONTAL;
    gbc__txtFldBriefHelp.insets = new Insets(0, 0, 5, 0);
    gbc__txtFldBriefHelp.gridx = 0;
    gbc__txtFldBriefHelp.gridy = 5;
    _pnlButtonProperties.add(_txtFldBriefHelp, gbc__txtFldBriefHelp);
    _txtFldBriefHelp.setColumns(10);

    _lblEnterMoreDetailed = new JLabel(enterDetailedHelpCaption);
    GridBagConstraints gbc__lblEnterMoreDetailed = new GridBagConstraints();
    gbc__lblEnterMoreDetailed.anchor = GridBagConstraints.WEST;
    gbc__lblEnterMoreDetailed.insets = new Insets(0, 0, 5, 0);
    gbc__lblEnterMoreDetailed.gridx = 0;
    gbc__lblEnterMoreDetailed.gridy = 6;
    _pnlButtonProperties.add(_lblEnterMoreDetailed, gbc__lblEnterMoreDetailed);

    _txtFldDetailedHelp = new JTextField();
    GridBagConstraints gbc__txtFldDetailedHelp = new GridBagConstraints();
    gbc__txtFldDetailedHelp.insets = new Insets(0, 0, 5, 0);
    gbc__txtFldDetailedHelp.fill = GridBagConstraints.HORIZONTAL;
    gbc__txtFldDetailedHelp.gridx = 0;
    gbc__txtFldDetailedHelp.gridy = 7;
    _pnlButtonProperties.add(_txtFldDetailedHelp, gbc__txtFldDetailedHelp);
    _txtFldDetailedHelp.setColumns(10);

    _chckbxEnableOnlyIfUsedCharacters = new JCheckBox(enableOnlyIfUsedCaption);
    GridBagConstraints gbc__chckbxEnableOnlyIf = new GridBagConstraints();
    gbc__chckbxEnableOnlyIf.anchor = GridBagConstraints.WEST;
    gbc__chckbxEnableOnlyIf.insets = new Insets(0, 0, 5, 0);
    gbc__chckbxEnableOnlyIf.gridx = 0;
    gbc__chckbxEnableOnlyIf.gridy = 8;
    _pnlButtonProperties.add(_chckbxEnableOnlyIfUsedCharacters, gbc__chckbxEnableOnlyIf);

    _rdbtnEnableInAll = new JRadioButton(enableInAllModesCaption);
    GridBagConstraints gbc__rdbtnEnableInAll = new GridBagConstraints();
    gbc__rdbtnEnableInAll.anchor = GridBagConstraints.WEST;
    gbc__rdbtnEnableInAll.insets = new Insets(0, 0, 5, 0);
    gbc__rdbtnEnableInAll.gridx = 0;
    gbc__rdbtnEnableInAll.gridy = 9;
    _pnlButtonProperties.add(_rdbtnEnableInAll, gbc__rdbtnEnableInAll);

    _rdbtnEnableInNormal = new JRadioButton(enableInNormalModeCaption);
    GridBagConstraints gbc__rdbtnEnableInNormal = new GridBagConstraints();
    gbc__rdbtnEnableInNormal.anchor = GridBagConstraints.WEST;
    gbc__rdbtnEnableInNormal.insets = new Insets(0, 0, 5, 0);
    gbc__rdbtnEnableInNormal.gridx = 0;
    gbc__rdbtnEnableInNormal.gridy = 10;
    _pnlButtonProperties.add(_rdbtnEnableInNormal, gbc__rdbtnEnableInNormal);

    _rdbtnEnableInAdvanced = new JRadioButton(enableInAdvancedModeCaption);
    GridBagConstraints gbc__rdbtnEnableInAdvanced = new GridBagConstraints();
    gbc__rdbtnEnableInAdvanced.anchor = GridBagConstraints.WEST;
    gbc__rdbtnEnableInAdvanced.gridx = 0;
    gbc__rdbtnEnableInAdvanced.gridy = 11;
    _pnlButtonProperties.add(_rdbtnEnableInAdvanced, gbc__rdbtnEnableInAdvanced);

    _pnlSpaceRemoveAll = new JPanel();
    _pnlSpaceRemoveAll.setBorder(new EmptyBorder(0, 10, 0, 0));
    _pnlMain.add(_pnlSpaceRemoveAll, BorderLayout.SOUTH);
    _pnlSpaceRemoveAll.setLayout(new BoxLayout(_pnlSpaceRemoveAll, BoxLayout.Y_AXIS));

    _chckbxInsertASpace = new JCheckBox(insertSpaceCaption);
    _chckbxInsertASpace.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            _insertSpace = !_insertSpace;

            if (_insertSpace) {
                _removeAllButtons = false;
                _chckbxRemoveAllButtons.setSelected(false);
            }

            updateButtonPropertyControls();
        }
    });
    _pnlSpaceRemoveAll.add(_chckbxInsertASpace);

    _chckbxRemoveAllButtons = new JCheckBox(removeAllCaption);
    _chckbxRemoveAllButtons.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent e) {
            _removeAllButtons = !_removeAllButtons;

            if (_removeAllButtons) {
                _insertSpace = false;
                _chckbxInsertASpace.setSelected(false);
            }

            updateButtonPropertyControls();
        }
    });
    _pnlSpaceRemoveAll.add(_chckbxRemoveAllButtons);

    _pnlButtonProperties.setEnabled(false);

    ButtonGroup btnGroup = new ButtonGroup();
    btnGroup.add(_rdbtnEnableInAll);
    btnGroup.add(_rdbtnEnableInNormal);
    btnGroup.add(_rdbtnEnableInAdvanced);

    _rdbtnEnableInAll.setSelected(true);
}

From source file:canreg.client.gui.components.PreviewFilePanel.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  v a 2  s.  c om
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    chooseFilePanel = new javax.swing.JPanel();
    fileNameTextField = new javax.swing.JTextField();
    browseButton = new javax.swing.JButton();
    previewPanel = new javax.swing.JPanel();
    numberOfRecordsLabel = new javax.swing.JLabel();
    numberOfRecordsTextField = new javax.swing.JTextField();
    previewTableScrollPane = new javax.swing.JScrollPane();
    previewTable = new javax.swing.JTable();
    numberOfRecordsShownLabel = new javax.swing.JLabel();
    numberOfRecordsShownTextField = new javax.swing.JTextField();
    previewButton = new javax.swing.JButton();
    fileLabel = new javax.swing.JLabel();
    separatingCharacterComboBox = new javax.swing.JComboBox();
    separatingCharacterLabel = new javax.swing.JLabel();
    autodetectButton = new javax.swing.JButton();
    fileEncodingLabel = new javax.swing.JLabel();
    charsetsComboBox = new javax.swing.JComboBox();

    setName("Form"); // NOI18N

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

    fileNameTextField.setName("fileNameTextField"); // NOI18N
    fileNameTextField.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            fileNameTextFieldMousePressed(evt);
        }

        public void mouseReleased(java.awt.event.MouseEvent evt) {
            fileNameTextFieldMouseReleased(evt);
        }
    });
    fileNameTextField.addFocusListener(new java.awt.event.FocusAdapter() {
        public void focusLost(java.awt.event.FocusEvent evt) {
            fileNameTextFieldFocusLost(evt);
        }
    });

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getActionMap(PreviewFilePanel.class, this);
    browseButton.setAction(actionMap.get("browseAction")); // NOI18N
    browseButton.setName("browseButton"); // NOI18N

    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getResourceMap(PreviewFilePanel.class);
    previewPanel.setBorder(
            javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("previewPanel.border.title"))); // NOI18N
    previewPanel.setEnabled(false);
    previewPanel.setName("previewPanel"); // NOI18N

    numberOfRecordsLabel.setText(resourceMap.getString("numberOfRecordsLabel.text")); // NOI18N
    numberOfRecordsLabel.setFocusable(false);
    numberOfRecordsLabel.setName("numberOfRecordsLabel"); // NOI18N

    numberOfRecordsTextField.setEditable(false);
    numberOfRecordsTextField.setFocusable(false);
    numberOfRecordsTextField.setName("numberOfRecordsTextField"); // NOI18N

    previewTableScrollPane.setFocusable(false);
    previewTableScrollPane.setName("previewTableScrollPane"); // NOI18N

    previewTable
            .setModel(new javax.swing.table.DefaultTableModel(
                    new Object[][] { { null, null, null, null }, { null, null, null, null },
                            { null, null, null, null }, { null, null, null, null } },
                    new String[] { "Title 1", "Title 2", "Title 3", "Title 4" }));
    previewTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
    previewTable.setEnabled(false);
    previewTable.setFocusable(false);
    previewTable.setName("previewTable"); // NOI18N
    previewTableScrollPane.setViewportView(previewTable);

    numberOfRecordsShownLabel.setText(resourceMap.getString("numberOfRecordsShownLabel.text")); // NOI18N
    numberOfRecordsShownLabel.setFocusable(false);
    numberOfRecordsShownLabel.setName("numberOfRecordsShownLabel"); // NOI18N

    numberOfRecordsShownTextField.setEditable(false);
    numberOfRecordsShownTextField.setFocusable(false);
    numberOfRecordsShownTextField.setName("numberOfRecordsShownTextField"); // NOI18N

    javax.swing.GroupLayout previewPanelLayout = new javax.swing.GroupLayout(previewPanel);
    previewPanel.setLayout(previewPanelLayout);
    previewPanelLayout.setHorizontalGroup(
            previewPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(previewPanelLayout.createSequentialGroup().addComponent(numberOfRecordsLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(numberOfRecordsTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 95,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(numberOfRecordsShownLabel)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(numberOfRecordsShownTextField, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    114, Short.MAX_VALUE))
                    .addComponent(previewTableScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 535,
                            Short.MAX_VALUE));
    previewPanelLayout.setVerticalGroup(previewPanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(previewPanelLayout.createSequentialGroup().addGroup(previewPanelLayout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(numberOfRecordsLabel)
                    .addComponent(numberOfRecordsTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(numberOfRecordsShownLabel).addComponent(numberOfRecordsShownTextField,
                            javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(previewTableScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 27,
                            Short.MAX_VALUE)));

    previewButton.setAction(actionMap.get("previewAction")); // NOI18N
    previewButton.setName("previewButton"); // NOI18N

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

    separatingCharacterComboBox.setEditable(true);
    separatingCharacterComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Tab", "Comma" }));
    separatingCharacterComboBox.setAction(actionMap.get("comboBoxChanged")); // NOI18N
    separatingCharacterComboBox.setName("separatingCharacterComboBox"); // NOI18N

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

    autodetectButton.setAction(actionMap.get("autoDetectAction")); // NOI18N
    autodetectButton.setToolTipText(resourceMap.getString("autodetectButton.toolTipText")); // NOI18N
    autodetectButton.setName("autodetectButton"); // NOI18N

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

    charsetsComboBox.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    charsetsComboBox.setName("charsetsComboBox"); // NOI18N

    javax.swing.GroupLayout chooseFilePanelLayout = new javax.swing.GroupLayout(chooseFilePanel);
    chooseFilePanel.setLayout(chooseFilePanelLayout);
    chooseFilePanelLayout.setHorizontalGroup(chooseFilePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, chooseFilePanelLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(chooseFilePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(previewPanel, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addGroup(chooseFilePanelLayout.createSequentialGroup()
                                    .addGroup(chooseFilePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
                                                    chooseFilePanelLayout.createSequentialGroup()
                                                            .addComponent(fileEncodingLabel)
                                                            .addPreferredGap(
                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(charsetsComboBox, 0, 127,
                                                                    Short.MAX_VALUE)
                                                            .addPreferredGap(
                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(autodetectButton,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                                                    Short.MAX_VALUE)
                                                            .addPreferredGap(
                                                                    javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                            .addComponent(separatingCharacterLabel))
                                            .addGroup(chooseFilePanelLayout.createSequentialGroup()
                                                    .addComponent(fileLabel)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(fileNameTextField,
                                                            javax.swing.GroupLayout.DEFAULT_SIZE, 377,
                                                            Short.MAX_VALUE)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addGroup(chooseFilePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addGroup(chooseFilePanelLayout.createSequentialGroup()
                                                    .addComponent(browseButton)
                                                    .addPreferredGap(
                                                            javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                    .addComponent(previewButton))
                                            .addComponent(separatingCharacterComboBox, 0, 0, Short.MAX_VALUE))))
                    .addContainerGap()));
    chooseFilePanelLayout.setVerticalGroup(chooseFilePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(chooseFilePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(chooseFilePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(previewButton).addComponent(browseButton).addComponent(fileLabel)
                            .addComponent(fileNameTextField, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(chooseFilePanelLayout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(separatingCharacterLabel).addComponent(fileEncodingLabel)
                            .addComponent(charsetsComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(autodetectButton).addComponent(separatingCharacterComboBox,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(previewPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 571, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
                    chooseFilePanel, javax.swing.GroupLayout.Alignment.TRAILING,
                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 152, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(
                    chooseFilePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)));
}

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

private void init(List<Item> taxa, boolean displayNumbering, boolean singleSelect,
        boolean includeSpecimenAsOption) {
    ResourceMap resourceMap = Application.getInstance().getContext().getResourceMap(TaxonSelectionDialog.class);
    resourceMap.injectFields(this);
    ActionMap actionMap = Application.getInstance().getContext().getActionMap(TaxonSelectionDialog.class, this);

    setTitle(MessageFormat.format(title, _directiveName));

    _fullTextTaxonFormatter = new ItemFormatter(true, CommentStrippingMode.RETAIN,
            AngleBracketHandlingMode.REPLACE, true, false, false);

    _panelButtons.setBorder(new EmptyBorder(0, 20, 10, 20));
    _panelButtons.setLayout(new GridLayout(0, 5, 5, 5));

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

    _btnSelectAll = new JButton();
    _btnSelectAll.setAction(actionMap.get("taxonSelectionDialog_SelectAll"));

    _btnKeywords = new JButton();
    _btnKeywords.setAction(actionMap.get("taxonSelectionDialog_Keywords"));

    _btnImages = new JButton();
    _btnImages.setAction(actionMap.get("taxonSelectionDialog_Images"));
    _btnImages.setEnabled(false);//from w  ww  .j  ava 2  s.  c o m

    _btnSearch = new JButton();
    _btnSearch.setAction(actionMap.get("taxonSelectionDialog_Search"));

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

    _btnDeselectAll = new JButton();
    _btnDeselectAll.setAction(actionMap.get("taxonSelectionDialog_DeselectAll"));

    _btnFullText = new JButton();
    _btnFullText.setAction(actionMap.get("taxonSelectionDialog_FullText"));
    _btnFullText.setEnabled(false);

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

    // Some of the buttons should not be displayed if not in advanced mode
    if (_context.getUI().isAdvancedMode()) {
        _panelButtons.add(_btnOk);
        _panelButtons.add(_btnSelectAll);
        _panelButtons.add(_btnKeywords);
        _panelButtons.add(_btnImages);
        _panelButtons.add(_btnSearch);
        _panelButtons.add(_btnCancel);
        _panelButtons.add(_btnDeselectAll);
        _panelButtons.add(_btnFullText);
        _panelButtons.add(_btnHelp);
    } else {
        _panelButtons.setLayout(new GridLayout(0, 4, 5, 0));
        _panelButtons.add(_btnOk);
        _panelButtons.add(_btnCancel);
        _panelButtons.add(_btnSelectAll);
        _panelButtons.add(_btnDeselectAll);
    }

    _selectedTaxa = null;

    _includeSpecimenAsOption = includeSpecimenAsOption;

    if (taxa != null) {
        _listModel = new DefaultListModel();

        if (_includeSpecimenAsOption) {
            _listModel.addElement(IntkeyContext.SPECIMEN_KEYWORD);
        }

        for (Item taxon : taxa) {
            _listModel.addElement(taxon);
        }
        _list.setCellRenderer(new TaxonCellRenderer(displayNumbering, false));
        _list.setModel(_listModel);
    }

    if (singleSelect) {
        _list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    }

    _list.addListSelectionListener(new ListSelectionListener() {

        @Override
        public void valueChanged(ListSelectionEvent e) {
            if (_list.getSelectedIndices().length == 1
                    && !_list.getSelectedValue().equals(IntkeyContext.SPECIMEN_KEYWORD)) {
                Item taxon = (Item) _list.getSelectedValue();
                _btnImages.setEnabled(taxon.getImages().size() > 0);
                _btnFullText.setEnabled(true);
            } else {
                _btnImages.setEnabled(false);
                _btnFullText.setEnabled(false);
            }
        }
    });

    _list.addMouseListener(new MouseAdapter() {

        @Override
        public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() > 1) {
                // Treat double click on a list item as the ok button being
                // pressed.
                taxonSelectionDialog_OK();
            }
        }

    });

    _selectedKeywords = new ArrayList<String>();
}

From source file:canreg.client.gui.components.FastFilterInternalFrame.java

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

    jPanel1 = new javax.swing.JPanel();
    instructionLabel1 = new javax.swing.JLabel();
    instructionLabel2 = new javax.swing.JLabel();
    variableComboBox = new javax.swing.JComboBox();
    operationComboBox = new javax.swing.JComboBox();
    logicalOperatorComboBox = new javax.swing.JComboBox();
    variableLabel = new javax.swing.JLabel();
    operationLabel = new javax.swing.JLabel();
    valueLabel = new javax.swing.JLabel();
    valuesSplitPane = new javax.swing.JSplitPane();
    valueTextField = new javax.swing.JTextField();
    valueTextField2 = new javax.swing.JTextField();
    jLabel1 = new javax.swing.JLabel();
    filterPanel = new javax.swing.JPanel();
    scrollPane = new javax.swing.JScrollPane();
    textPane = new javax.swing.JTextPane();
    cancelButton = new javax.swing.JButton();
    okButton = new javax.swing.JButton();

    setMaximizable(true);
    setResizable(true);
    org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getResourceMap(FastFilterInternalFrame.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setFrameIcon(resourceMap.getIcon("Form.frameIcon")); // NOI18N
    setName("Form"); // NOI18N
    try {
        setSelected(true);
    } catch (java.beans.PropertyVetoException e1) {
        e1.printStackTrace();
    }

    jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
    jPanel1.setName("jPanel1"); // NOI18N

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

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

    variableComboBox.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getActionMap(FastFilterInternalFrame.class, this);
    variableComboBox.setAction(actionMap.get("varibleChosenAction")); // NOI18N
    variableComboBox.setName("variableComboBox"); // NOI18N
    variableComboBox.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent evt) {
            variableComboBoxActionPerformed(evt);
        }
    });

    operationComboBox.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    operationComboBox.setAction(actionMap.get("operatorSelected")); // NOI18N
    operationComboBox.setName("operationComboBox"); // NOI18N

    logicalOperatorComboBox.setModel(
            new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
    logicalOperatorComboBox.setAction(actionMap.get("operatorAction")); // NOI18N
    logicalOperatorComboBox.setName("logicalOperatorComboBox"); // NOI18N

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

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

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

    valuesSplitPane.setResizeWeight(0.5);
    valuesSplitPane.setName("valuesSplitPane"); // NOI18N

    valueTextField.setText(resourceMap.getString("valueTextField.text")); // NOI18N
    valueTextField.setAction(actionMap.get("addAction")); // NOI18N
    valueTextField.setName("valueTextField"); // NOI18N
    valueTextField.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            mouseClickHandler(evt);
        }
    });
    valuesSplitPane.setLeftComponent(valueTextField);

    valueTextField2.setAction(actionMap.get("addAction")); // NOI18N
    valueTextField2.setName("valueTextField2"); // NOI18N
    valueTextField2.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mouseClicked(java.awt.event.MouseEvent evt) {
            valueTextField2mouseClickHandler(evt);
        }
    });
    valuesSplitPane.setRightComponent(valueTextField2);

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

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(instructionLabel1)
            .addComponent(instructionLabel2)
            .addGroup(jPanel1Layout.createSequentialGroup()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(variableComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, 115,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(variableLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(operationLabel).addComponent(operationComboBox,
                                    javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addComponent(valuesSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 269,
                                            Short.MAX_VALUE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(valueLabel).addGap(246,
                                    246, 246)))
                    .addGroup(
                            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(logicalOperatorComboBox, 0,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(instructionLabel1)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(instructionLabel2)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(valueLabel).addComponent(operationLabel).addComponent(jLabel1)
                            .addComponent(variableLabel))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(logicalOperatorComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(variableComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(operationComboBox, javax.swing.GroupLayout.PREFERRED_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(valuesSplitPane, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap()));

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

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

    textPane.setToolTipText(resourceMap.getString("textPane.toolTipText")); // NOI18N
    textPane.setName("textPane"); // NOI18N
    textPane.addMouseListener(new java.awt.event.MouseAdapter() {
        public void mousePressed(java.awt.event.MouseEvent evt) {
            textPaneMousePressed(evt);
        }
    });
    scrollPane.setViewportView(textPane);

    javax.swing.GroupLayout filterPanelLayout = new javax.swing.GroupLayout(filterPanel);
    filterPanel.setLayout(filterPanelLayout);
    filterPanelLayout
            .setHorizontalGroup(filterPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 535, Short.MAX_VALUE));
    filterPanelLayout
            .setVerticalGroup(filterPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE));

    cancelButton.setAction(actionMap.get("cancelAction")); // NOI18N
    cancelButton.setToolTipText(resourceMap.getString("cancelButton.toolTipText")); // NOI18N
    cancelButton.setName("cancelButton"); // NOI18N

    okButton.setAction(actionMap.get("okAction")); // NOI18N
    okButton.setToolTipText(resourceMap.getString("okButton.toolTipText")); // NOI18N
    okButton.setName("okButton"); // NOI18N

    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().addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(filterPanel, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup().addComponent(cancelButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(okButton))
                            .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING,
                                    javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                                    Short.MAX_VALUE))
                    .addContainerGap()));
    layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGroup(
            javax.swing.GroupLayout.Alignment.TRAILING,
            layout.createSequentialGroup().addContainerGap()
                    .addComponent(filterPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 97,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(okButton).addComponent(cancelButton))
                    .addContainerGap()));

    pack();
}

From source file:com.jskj.asset.client.panel.slgl.GuDingZiChanLingYongTuiKuJDialog.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 .jav a 2  s . co  m
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new BaseTable(null);
    totalprice = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jToolBar1 = new javax.swing.JToolBar();
    jButton1 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jButton10 = new javax.swing.JButton();
    middlePanel = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jTextField1 = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jTextField2 = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    jTextFieldDept = new javax.swing.JTextField();
    jLabel14 = new javax.swing.JLabel();
    jLabel17 = new javax.swing.JLabel();
    jTextFieldShenqingren = new javax.swing.JTextField();
    jScrollPane2 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();

    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(GuDingZiChanLingYongTuiKuJDialog.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setName("Form"); // NOI18N
    setResizable(false);

    jPanel1.setMinimumSize(new java.awt.Dimension(796, 577));
    jPanel1.setName("jPanel1"); // NOI18N

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

    jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null } },
            new String[] { "?", "??", "", "", "?", "??",
                    "?", "?", "?" }) {
        boolean[] canEdit = new boolean[] { false, false, false, false, false, false, false, true, true };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jTable1.setColumnSelectionAllowed(true);
    jTable1.setName("jTable1"); // NOI18N
    jScrollPane1.setViewportView(jTable1);
    jTable1.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    if (jTable1.getColumnModel().getColumnCount() > 0) {
        jTable1.getColumnModel().getColumn(0)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title1")); // NOI18N
        jTable1.getColumnModel().getColumn(1)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title2")); // NOI18N
        jTable1.getColumnModel().getColumn(2)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title3")); // NOI18N
        jTable1.getColumnModel().getColumn(3)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title5")); // NOI18N
        jTable1.getColumnModel().getColumn(4)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title4")); // NOI18N
        jTable1.getColumnModel().getColumn(5)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title9")); // NOI18N
        jTable1.getColumnModel().getColumn(6)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title6")); // NOI18N
        jTable1.getColumnModel().getColumn(7)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title0")); // NOI18N
        jTable1.getColumnModel().getColumn(8)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title8")); // NOI18N
    }

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

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

    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.Alignment.TRAILING,
                    javax.swing.GroupLayout.DEFAULT_SIZE, 900, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel5).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(totalprice).addContainerGap()));
    jPanel1Layout
            .setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 297,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(totalprice).addComponent(jLabel5))
                            .addGap(11, 11, 11)));

    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(GuDingZiChanLingYongTuiKuJDialog.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);

    jButton4.setAction(actionMap.get("print")); // 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);

    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);

    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);

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

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

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

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

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

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

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

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

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

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

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

    jTextArea1.setColumns(20);
    jTextArea1.setRows(2);
    jTextArea1.setName("jTextArea1"); // NOI18N
    jScrollPane2.setViewportView(jTextArea1);

    javax.swing.GroupLayout middlePanelLayout = new javax.swing.GroupLayout(middlePanel);
    middlePanel.setLayout(middlePanelLayout);
    middlePanelLayout.setHorizontalGroup(middlePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(middlePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING).addComponent(
                                    jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addGap(18, 18, 18)
                    .addGroup(middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(middlePanelLayout.createSequentialGroup().addGroup(middlePanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jTextFieldShenqingren,
                                            javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                            middlePanelLayout.createSequentialGroup().addGap(1, 1, 1)
                                                    .addComponent(jTextField1,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(middlePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel2).addComponent(jLabel4))
                                    .addGap(18, 18, 18)
                                    .addGroup(middlePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jTextField2).addComponent(jTextFieldDept,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jScrollPane2))
                    .addContainerGap()));
    middlePanelLayout.setVerticalGroup(middlePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(middlePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(middlePanelLayout.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(middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(jTextFieldDept, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel17).addComponent(jTextFieldShenqingren,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel14).addComponent(jScrollPane2,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 57,
                                    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(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
            .addComponent(middlePanel, 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(middlePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .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.GuDingZiChanDiaoBoJDialog.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 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();
    jTextField1 = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jTextField3 = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    jTextField4 = new javax.swing.JTextField();
    jLabel5 = new javax.swing.JLabel();
    jTextFieldGuige = new javax.swing.JTextField();
    jLabel6 = new javax.swing.JLabel();
    jTextFieldXinghao = new javax.swing.JTextField();
    jTextFieldUnit = new javax.swing.JTextField();
    jLabel7 = new javax.swing.JLabel();
    jTextFieldYichubumen = new javax.swing.JTextField();
    jLabel8 = new javax.swing.JLabel();
    jTextFieldYichuren = new BaseTextField();
    jLabel9 = new javax.swing.JLabel();
    jTextFieldJieshoubumen = new javax.swing.JTextField();
    jLabel10 = new javax.swing.JLabel();
    jLabel11 = new javax.swing.JLabel();
    jTextFieldZichan = new BaseTextField();
    jTextField12 = new javax.swing.JTextField();
    jLabel13 = new javax.swing.JLabel();
    jTextField14 = new javax.swing.JTextField();
    jLabel14 = new javax.swing.JLabel();
    jTextFieldJieshouren = new BaseTextField();
    jLabel16 = new javax.swing.JLabel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();
    jToolBar1 = new javax.swing.JToolBar();
    jButton1 = new javax.swing.JButton();
    jButton3 = new ScanButton();
    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(GuDingZiChanDiaoBoJDialog.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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
    jPanel1.setLayout(jPanel1Layout);
    jPanel1Layout.setHorizontalGroup(jPanel1Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addGroup(jPanel1Layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup().addGroup(jPanel1Layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel1Layout.createSequentialGroup().addComponent(jLabel8)
                                    .addGap(18, 18, 18).addComponent(jTextFieldYichubumen,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                            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(jTextField1).addComponent(jTextField3,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .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(jTextFieldXinghao).addComponent(jTextField4,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel10).addComponent(jLabel14))
                                    .addGap(18, 18, 18)
                                    .addGroup(jPanel1Layout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jTextFieldJieshoubumen).addComponent(jTextField14,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGap(0, 0, Short.MAX_VALUE)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel9).addComponent(jLabel5).addComponent(jLabel2)
                                    .addComponent(jLabel7).addComponent(jLabel11).addComponent(jLabel13))
                            .addGap(18, 18, 18)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jTextFieldJieshouren)
                                    .addComponent(jTextFieldZichan, javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jTextFieldUnit).addComponent(jTextFieldGuige)
                                    .addComponent(jTextFieldYichuren).addComponent(jTextField12,
                                            javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup().addGap(24, 24, 24).addComponent(jLabel16)
                            .addGap(18, 18, 18).addComponent(jScrollPane1)))
                    .addContainerGap()));
    jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap()
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2).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(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3)
                            .addComponent(jTextFieldZichan, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel11))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4).addComponent(jLabel5).addComponent(jTextFieldGuige,
                                    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(jTextFieldXinghao, 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(jTextFieldYichubumen, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel8)
                            .addComponent(jTextFieldYichuren, 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(jTextFieldJieshoubumen, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel13)
                            .addComponent(jTextFieldJieshouren, 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(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel14))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE,
                                    javax.swing.GroupLayout.DEFAULT_SIZE,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 19,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(55, 55, 55)));

    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(GuDingZiChanDiaoBoJDialog.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.setFocusPainted(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.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, 572, 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.PREFERRED_SIZE, 373,
                            javax.swing.GroupLayout.PREFERRED_SIZE)));

    pack();
}

From source file:com.jskj.asset.client.panel.slgl.DiZhiYiHaoPinLingYongTuiKuJDialog.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 ww  .  jav  a2s .  c o  m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    jPanel1 = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new BaseTable(null);
    totalprice = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jToolBar1 = new javax.swing.JToolBar();
    jButton1 = new javax.swing.JButton();
    jButton4 = new javax.swing.JButton();
    jButton2 = new javax.swing.JButton();
    jButton10 = new javax.swing.JButton();
    middlePanel = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    jTextField1 = new javax.swing.JTextField();
    jLabel2 = new javax.swing.JLabel();
    jTextField2 = new javax.swing.JTextField();
    jLabel4 = new javax.swing.JLabel();
    jTextFieldDept = new javax.swing.JTextField();
    jLabel14 = new javax.swing.JLabel();
    jLabel17 = new javax.swing.JLabel();
    jTextFieldShenqingren = new javax.swing.JTextField();
    jScrollPane2 = new javax.swing.JScrollPane();
    jTextArea1 = new javax.swing.JTextArea();

    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(DiZhiYiHaoPinLingYongTuiKuJDialog.class);
    setTitle(resourceMap.getString("Form.title")); // NOI18N
    setName("Form"); // NOI18N
    setResizable(false);

    jPanel1.setMinimumSize(new java.awt.Dimension(796, 577));
    jPanel1.setName("jPanel1"); // NOI18N

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

    jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object[][] { { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null },
                    { null, null, null, null, null, null, null, null, null } },
            new String[] { "?", "??", "", "", "?", "??",
                    "?", "?", "?" }) {
        boolean[] canEdit = new boolean[] { false, false, false, false, false, false, false, true, true };

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return canEdit[columnIndex];
        }
    });
    jTable1.setColumnSelectionAllowed(true);
    jTable1.setName("jTable1"); // NOI18N
    jScrollPane1.setViewportView(jTable1);
    jTable1.getColumnModel().getSelectionModel()
            .setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    if (jTable1.getColumnModel().getColumnCount() > 0) {
        jTable1.getColumnModel().getColumn(0)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title1")); // NOI18N
        jTable1.getColumnModel().getColumn(1)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title2")); // NOI18N
        jTable1.getColumnModel().getColumn(2)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title3")); // NOI18N
        jTable1.getColumnModel().getColumn(3)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title5")); // NOI18N
        jTable1.getColumnModel().getColumn(4)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title4")); // NOI18N
        jTable1.getColumnModel().getColumn(5)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title9")); // NOI18N
        jTable1.getColumnModel().getColumn(6)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title6")); // NOI18N
        jTable1.getColumnModel().getColumn(7)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title0")); // NOI18N
        jTable1.getColumnModel().getColumn(8)
                .setHeaderValue(resourceMap.getString("jTable1.columnModel.title8")); // NOI18N
    }

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

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

    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.Alignment.TRAILING,
                    javax.swing.GroupLayout.DEFAULT_SIZE, 900, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jLabel5).addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(totalprice).addContainerGap()));
    jPanel1Layout
            .setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                            .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 312,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addGroup(jPanel1Layout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(totalprice).addComponent(jLabel5))
                            .addGap(12, 12, 12)));

    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(DiZhiYiHaoPinLingYongTuiKuJDialog.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);

    jButton4.setAction(actionMap.get("print")); // 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);

    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);

    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);

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

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

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

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

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

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

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

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

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

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

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

    jTextArea1.setColumns(20);
    jTextArea1.setRows(2);
    jTextArea1.setName("jTextArea1"); // NOI18N
    jScrollPane2.setViewportView(jTextArea1);

    javax.swing.GroupLayout middlePanelLayout = new javax.swing.GroupLayout(middlePanel);
    middlePanel.setLayout(middlePanelLayout);
    middlePanelLayout.setHorizontalGroup(middlePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(middlePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING).addComponent(
                                    jLabel1, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING))
                    .addGap(18, 18, 18)
                    .addGroup(middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(middlePanelLayout.createSequentialGroup().addGroup(middlePanelLayout
                                    .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addComponent(jTextFieldShenqingren,
                                            javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                            middlePanelLayout.createSequentialGroup().addGap(1, 1, 1)
                                                    .addComponent(jTextField1,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                                            javax.swing.GroupLayout.PREFERRED_SIZE)))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(middlePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel2).addComponent(jLabel4))
                                    .addGap(18, 18, 18)
                                    .addGroup(middlePanelLayout
                                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
                                                    false)
                                            .addComponent(jTextField2).addComponent(jTextFieldDept,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE, 160,
                                                    javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jScrollPane2))
                    .addContainerGap()));
    middlePanelLayout.setVerticalGroup(middlePanelLayout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(middlePanelLayout.createSequentialGroup().addContainerGap()
                    .addGroup(middlePanelLayout.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(middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(jTextFieldDept, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel17).addComponent(jTextFieldShenqingren,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 30,
                                    javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addGroup(middlePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel14).addComponent(jScrollPane2,
                                    javax.swing.GroupLayout.PREFERRED_SIZE, 57,
                                    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(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
                    Short.MAX_VALUE)
            .addComponent(middlePanel, 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(middlePanel, javax.swing.GroupLayout.PREFERRED_SIZE,
                            javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .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:canreg.client.gui.analysis.FrequenciesByYearInternalFrame.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  av  a  2s  . c  o m*/
 */
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {

    rangeFilterPanel = new canreg.client.gui.components.RangeFilterPanel();
    variablesChooserPanel = new canreg.client.gui.components.VariablesChooserPanel();
    printTableButton = new javax.swing.JButton();
    resultPanel = new javax.swing.JPanel();
    resultScrollPane = new javax.swing.JScrollPane();
    resultTable = new javax.swing.JTable();
    popOutTableButton = new javax.swing.JButton();
    saveTableButton = new javax.swing.JButton();

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

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

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

    javax.swing.ActionMap actionMap = org.jdesktop.application.Application
            .getInstance(canreg.client.CanRegClientApp.class).getContext()
            .getActionMap(FrequenciesByYearInternalFrame.class, this);
    printTableButton.setAction(actionMap.get("printTableAction")); // NOI18N
    printTableButton.setName("printTableButton"); // NOI18N

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

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

    resultTable.setAutoCreateRowSorter(true);
    resultTable
            .setModel(new javax.swing.table.DefaultTableModel(new Object[][] { {}, {}, {}, {} }, new String[] {

    }));
    resultTable.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
    resultTable.setName("resultTable"); // NOI18N
    resultScrollPane.setViewportView(resultTable);

    javax.swing.GroupLayout resultPanelLayout = new javax.swing.GroupLayout(resultPanel);
    resultPanel.setLayout(resultPanelLayout);
    resultPanelLayout
            .setHorizontalGroup(resultPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(resultScrollPane, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 732, Short.MAX_VALUE));
    resultPanelLayout
            .setVerticalGroup(resultPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(resultScrollPane, javax.swing.GroupLayout.Alignment.TRAILING,
                            javax.swing.GroupLayout.DEFAULT_SIZE, 200, Short.MAX_VALUE));

    popOutTableButton.setAction(actionMap.get("popOutTableAction")); // NOI18N
    popOutTableButton.setName("popOutTableButton"); // NOI18N

    saveTableButton.setAction(actionMap.get("saveTableAction")); // NOI18N
    saveTableButton.setToolTipText(resourceMap.getString("saveTableButton.toolTipText")); // NOI18N
    saveTableButton.setName("saveTableButton"); // 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()
                    .addComponent(rangeFilterPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 407,
                            javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addComponent(saveTableButton, javax.swing.GroupLayout.PREFERRED_SIZE, 115,
                                            javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(printTableButton)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(popOutTableButton, javax.swing.GroupLayout.DEFAULT_SIZE,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addComponent(variablesChooserPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 309,
                                    Short.MAX_VALUE))
                    .addContainerGap())
            .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().addGroup(layout
                    .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                            .addComponent(variablesChooserPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 249,
                                    javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(17, 17, 17)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(printTableButton).addComponent(popOutTableButton)
                                    .addComponent(saveTableButton)))
                    .addComponent(rangeFilterPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 288,
                            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)));

    rangeFilterPanel.initValues();
    rangeFilterPanel.setDeskTopPane(dtp);

    pack();
}

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

/** This method is called from within the constructor to
 * initialize the form.//from  w w w  .j  a va  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();
    plButtons = new javax.swing.JPanel();
    btClose = new javax.swing.JButton();
    btRefresh = new javax.swing.JButton();
    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();

    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(StatsDialog.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, 44));

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

    lbActiveTorrentCount.setText(resourceMap.getString("lbActiveTorrentCount.text")); // NOI18N
    lbActiveTorrentCount.setName("lbActiveTorrentCount"); // 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().addComponent(jLabel11)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                    .addComponent(lbActiveTorrentCount).addContainerGap(287, Short.MAX_VALUE)));
    plTopLayout.setVerticalGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(plTopLayout.createSequentialGroup()
                    .addGroup(plTopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel11).addComponent(lbActiveTorrentCount))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

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

    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(StatsDialog.class, this);
    btClose.setAction(actionMap.get("closeDialog")); // NOI18N
    btClose.setText(resourceMap.getString("btClose.text")); // NOI18N
    btClose.setName("btClose"); // NOI18N

    btRefresh.setAction(actionMap.get("doRefresh")); // NOI18N
    btRefresh.setText(resourceMap.getString("btRefresh.text")); // NOI18N
    btRefresh.setDefaultCapable(false);
    btRefresh.setName("btRefresh"); // NOI18N

    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).addComponent(btRefresh))
                                    .addContainerGap()));

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

    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,
                                            javax.swing.GroupLayout.DEFAULT_SIZE, 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(22, 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(22, Short.MAX_VALUE)));

    plInfo.add(plTotal);

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

    pack();
}