Logo Search packages:      
Sourcecode: pauker version File versions  Download package

void pauker::program::gui::swing::NewCardDialog::initComponents (  )  [inline, private]

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.

Definition at line 120 of file NewCardDialog.java.

References closeDialog(), pauker::program::gui::swing::EditCardPanel::EditCardPanel(), pauker::program::gui::swing::EditCardPanel::setRepeatByTyping(), and pauker::program::gui::swing::UpdateLayoutList::UpdateLayoutList().

Referenced by NewCardDialog().

                                  {
        java.awt.GridBagConstraints gridBagConstraints;

        splitPane = new javax.swing.JSplitPane();
        editCardPanel = new pauker.program.gui.swing.EditCardPanel();
        similarCardsPanel = new javax.swing.JPanel();
        similarSeparator1 = new javax.swing.JSeparator();
        similarLabel = new javax.swing.JLabel();
        similarSeparator2 = new javax.swing.JSeparator();
        batchListScrollPane = new javax.swing.JScrollPane();
        similarCardsList = new pauker.program.gui.swing.UpdateLayoutList();
        buttonPanel = new javax.swing.JPanel();
        keepOpenCheckBox = new javax.swing.JCheckBox();
        okButton = new javax.swing.JButton();
        cancelButton = new javax.swing.JButton();

        getContentPane().setLayout(new java.awt.GridBagLayout());

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                closeDialog(evt);
            }
        });
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                formComponentShown(evt);
            }
        });

        splitPane.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);
        splitPane.setResizeWeight(0.5);
        splitPane.setContinuousLayout(true);
        splitPane.setOneTouchExpandable(true);
        splitPane.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                splitPanePropertyChange(evt);
            }
        });

        editCardPanel.setRepeatByTyping(false);
        splitPane.setTopComponent(editCardPanel);

        similarCardsPanel.setLayout(new java.awt.GridBagLayout());

        similarSeparator1.setPreferredSize(new java.awt.Dimension(20, 2));
        similarCardsPanel.add(similarSeparator1, new java.awt.GridBagConstraints());

        similarLabel.setFont(new java.awt.Font("Dialog", 0, 10));
        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pauker/Strings"); // NOI18N
        similarLabel.setText(bundle.getString("Similar_Cards")); // NOI18N
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
        similarCardsPanel.add(similarLabel, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
        similarCardsPanel.add(similarSeparator2, gridBagConstraints);

        similarCardsList.setName("similarCardsList");
        similarCardsList.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                similarCardsListMouseClicked(evt);
            }
        });

        batchListScrollPane.setViewportView(similarCardsList);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        similarCardsPanel.add(batchListScrollPane, gridBagConstraints);

        splitPane.setBottomComponent(similarCardsPanel);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        getContentPane().add(splitPane, gridBagConstraints);

        buttonPanel.setLayout(new java.awt.GridBagLayout());

        keepOpenCheckBox.setFont(new java.awt.Font("Dialog", 0, 10));
        keepOpenCheckBox.setText(bundle.getString("Keep_Dialog_Open")); // NOI18N
        keepOpenCheckBox.setName("keepOpenCheckBox");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        buttonPanel.add(keepOpenCheckBox, gridBagConstraints);

        okButton.setFont(new java.awt.Font("Dialog", 0, 10));
        okButton.setText(bundle.getString("OK")); // NOI18N
        okButton.setName("okButton");
        okButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                okButtonActionPerformed(evt);
            }
        });

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);
        buttonPanel.add(okButton, gridBagConstraints);

        cancelButton.setFont(new java.awt.Font("Dialog", 0, 10));
        cancelButton.setText(bundle.getString("Cancel")); // NOI18N
        cancelButton.setName("cancelButton");
        cancelButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cancelButtonActionPerformed(evt);
            }
        });

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
        buttonPanel.add(cancelButton, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 0, 5, 5);
        getContentPane().add(buttonPanel, gridBagConstraints);

    }// </editor-fold>//GEN-END:initComponents


Generated by  Doxygen 1.6.0   Back to index