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

void pauker::program::gui::swing::EditCardPanel::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 526 of file EditCardPanel.java.

Referenced by EditCardPanel().

                                  {
        java.awt.GridBagConstraints gridBagConstraints;

        popupPanel = new javax.swing.JPanel();
        popupScrollPane = new javax.swing.JScrollPane();
        popupList = new javax.swing.JList();
        undoCounterLabel = new javax.swing.JLabel();
        popupMenu = new javax.swing.JPopupMenu();
        typingLabel = new javax.swing.JLabel();
        memorizingLabel = new javax.swing.JLabel();
        alignmentButtonGroup = new javax.swing.ButtonGroup();
        textAreaPopupMenu = new javax.swing.JPopupMenu();
        undoMenuItem = new javax.swing.JMenuItem();
        redoMenuItem = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JSeparator();
        cutMenuItem = new javax.swing.JMenuItem();
        copyMenuItem = new javax.swing.JMenuItem();
        pasteMenuItem = new javax.swing.JMenuItem();
        clearMenuItem = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JSeparator();
        selectAllMenuItem = new javax.swing.JMenuItem();
        editButtonPanel = new javax.swing.JPanel();
        undoButtonPanel = new javax.swing.JPanel();
        undoButton = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        undoListButton = new javax.swing.JButton();
        redoButtonPanel = new javax.swing.JPanel();
        redoButton = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JSeparator();
        redoListButton = new javax.swing.JButton();
        cutButton = new javax.swing.JButton();
        copyButton = new javax.swing.JButton();
        pasteButton = new javax.swing.JButton();
        leftToRightToggleButton = new javax.swing.JToggleButton();
        rightToLeftToggleButton = new javax.swing.JToggleButton();
        tabButton = new javax.swing.JButton();
        switchLayoutButton = new javax.swing.JButton();
        fontPanel = new javax.swing.JPanel();
        fontComboBox = new javax.swing.JComboBox();
        fontSizeComboBox = new javax.swing.JComboBox();
        boldToggleButton = new javax.swing.JToggleButton();
        italicToggleButton = new javax.swing.JToggleButton();
        foregroundButton = new javax.swing.JButton();
        backgroundButton = new javax.swing.JButton();
        splitPane = new javax.swing.JSplitPane();
        frontSidePanel = new javax.swing.JPanel();
        frontSideLabel = new javax.swing.JLabel();
        frontSideScrollPane = new javax.swing.JScrollPane();
        frontSideTextArea = new javax.swing.JTextArea();
        reverseSidePanel = new javax.swing.JPanel();
        reverseSideLabel = new javax.swing.JLabel();
        reverseSideScrollPane = new javax.swing.JScrollPane();
        reverseSideTextArea = new javax.swing.JTextArea();
        jLabel1 = new javax.swing.JLabel();
        repeatingMethodComboBox = new javax.swing.JComboBox();

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

        popupList.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                popupListMouseClicked(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                popupListMouseExited(evt);
            }
        });
        popupList.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                popupListMouseMoved(evt);
            }
        });
        popupScrollPane.setViewportView(popupList);

        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;
        popupPanel.add(popupScrollPane, gridBagConstraints);

        undoCounterLabel.setText("number of undos");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        popupPanel.add(undoCounterLabel, gridBagConstraints);

        popupMenu.add(popupPanel);

        typingLabel.setFont(new java.awt.Font("Dialog", 0, 10));
        typingLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/key_enter.png"))); // NOI18N
        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("pauker/Strings"); // NOI18N
        typingLabel.setText(bundle.getString("Repeat_By_Typing")); // NOI18N
        typingLabel.setOpaque(true);

        memorizingLabel.setFont(new java.awt.Font("Dialog", 0, 10));
        memorizingLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/smallbrain.png"))); // NOI18N
        memorizingLabel.setText(bundle.getString("Repeat_By_Remembering")); // NOI18N
        memorizingLabel.setOpaque(true);

        undoMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));
        undoMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/16x16/undo.png"))); // NOI18N
        undoMenuItem.setText(bundle.getString("Undo")); // NOI18N
        undoMenuItem.setEnabled(false);
        undoMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                undoMenuItemActionPerformed(evt);
            }
        });
        textAreaPopupMenu.add(undoMenuItem);

        redoMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.CTRL_MASK));
        redoMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/16x16/redo.png"))); // NOI18N
        redoMenuItem.setText(bundle.getString("Redo")); // NOI18N
        redoMenuItem.setEnabled(false);
        redoMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                redoMenuItemActionPerformed(evt);
            }
        });
        textAreaPopupMenu.add(redoMenuItem);
        textAreaPopupMenu.add(jSeparator3);

        cutMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));
        cutMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/16x16/editcut.png"))); // NOI18N
        cutMenuItem.setText(bundle.getString("Cut")); // NOI18N
        cutMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cutMenuItemActionPerformed(evt);
            }
        });
        textAreaPopupMenu.add(cutMenuItem);

        copyMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));
        copyMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/16x16/editcopy.png"))); // NOI18N
        copyMenuItem.setText(bundle.getString("Copy")); // NOI18N
        copyMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                copyMenuItemActionPerformed(evt);
            }
        });
        textAreaPopupMenu.add(copyMenuItem);

        pasteMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));
        pasteMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/16x16/editpaste.png"))); // NOI18N
        pasteMenuItem.setText(bundle.getString("Paste")); // NOI18N
        pasteMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pasteMenuItemActionPerformed(evt);
            }
        });
        textAreaPopupMenu.add(pasteMenuItem);

        clearMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/16x16/editclear.png"))); // NOI18N
        clearMenuItem.setText(bundle.getString("Clear")); // NOI18N
        clearMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                clearMenuItemActionPerformed(evt);
            }
        });
        textAreaPopupMenu.add(clearMenuItem);
        textAreaPopupMenu.add(jSeparator4);

        selectAllMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));
        selectAllMenuItem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/16x16/text_block.png"))); // NOI18N
        selectAllMenuItem.setText(bundle.getString("Select_All")); // NOI18N
        selectAllMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                selectAllMenuItemActionPerformed(evt);
            }
        });
        textAreaPopupMenu.add(selectAllMenuItem);

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

        editButtonPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        editButtonPanel.setLayout(new java.awt.GridBagLayout());

        undoButtonPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        undoButtonPanel.setLayout(new java.awt.GridBagLayout());

        undoButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/undo.png"))); // NOI18N
        undoButton.setToolTipText(bundle.getString("Undo")); // NOI18N
        undoButton.setBorder(null);
        undoButton.setEnabled(false);
        undoButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        undoButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                undoButtonActionPerformed(evt);
            }
        });
        undoButtonPanel.add(undoButton, new java.awt.GridBagConstraints());

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
        undoButtonPanel.add(jSeparator1, gridBagConstraints);

        undoListButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/down_small.png"))); // NOI18N
        undoListButton.setBorder(null);
        undoListButton.setEnabled(false);
        undoListButton.setFocusPainted(false);
        undoListButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        undoListButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                undoListButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
        undoButtonPanel.add(undoListButton, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
        gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
        editButtonPanel.add(undoButtonPanel, gridBagConstraints);

        redoButtonPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        redoButtonPanel.setLayout(new java.awt.GridBagLayout());

        redoButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/redo.png"))); // NOI18N
        redoButton.setToolTipText(bundle.getString("Redo")); // NOI18N
        redoButton.setBorder(null);
        redoButton.setEnabled(false);
        redoButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        redoButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                redoButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        redoButtonPanel.add(redoButton, gridBagConstraints);

        jSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
        redoButtonPanel.add(jSeparator2, gridBagConstraints);

        redoListButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/down_small.png"))); // NOI18N
        redoListButton.setBorder(null);
        redoListButton.setEnabled(false);
        redoListButton.setFocusPainted(false);
        redoListButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        redoListButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                redoListButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
        redoButtonPanel.add(redoListButton, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
        gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
        editButtonPanel.add(redoButtonPanel, gridBagConstraints);

        cutButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/editcut.png"))); // NOI18N
        cutButton.setToolTipText(bundle.getString("Cut")); // NOI18N
        cutButton.setEnabled(false);
        cutButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        cutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cutButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);
        editButtonPanel.add(cutButton, gridBagConstraints);

        copyButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/editcopy.png"))); // NOI18N
        copyButton.setToolTipText(bundle.getString("Copy")); // NOI18N
        copyButton.setEnabled(false);
        copyButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        copyButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                copyButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
        editButtonPanel.add(copyButton, gridBagConstraints);

        pasteButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/editpaste.png"))); // NOI18N
        pasteButton.setToolTipText(bundle.getString("Paste")); // NOI18N
        pasteButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        pasteButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pasteButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
        editButtonPanel.add(pasteButton, gridBagConstraints);

        alignmentButtonGroup.add(leftToRightToggleButton);
        leftToRightToggleButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/leftjust.png"))); // NOI18N
        leftToRightToggleButton.setToolTipText(bundle.getString("LTR_Tooltip")); // NOI18N
        leftToRightToggleButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        leftToRightToggleButton.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                leftToRightToggleButtonItemStateChanged(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);
        editButtonPanel.add(leftToRightToggleButton, gridBagConstraints);

        alignmentButtonGroup.add(rightToLeftToggleButton);
        rightToLeftToggleButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/rightjust.png"))); // NOI18N
        rightToLeftToggleButton.setToolTipText(bundle.getString("RTL_Tooltip")); // NOI18N
        rightToLeftToggleButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        rightToLeftToggleButton.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                rightToLeftToggleButtonItemStateChanged(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 0);
        editButtonPanel.add(rightToLeftToggleButton, gridBagConstraints);

        tabButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/indent.png"))); // NOI18N
        tabButton.setToolTipText(bundle.getString("Insert_TAB")); // NOI18N
        tabButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        tabButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tabButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);
        editButtonPanel.add(tabButton, gridBagConstraints);

        switchLayoutButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/view_top_bottom.png"))); // NOI18N
        switchLayoutButton.setToolTipText(bundle.getString("Cardsides_Top_Down")); // NOI18N
        switchLayoutButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        switchLayoutButton.setName("switchLayoutButton"); // NOI18N
        switchLayoutButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                switchLayoutButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 5);
        editButtonPanel.add(switchLayoutButton, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.ipady = 5;
        gridBagConstraints.weightx = 1.0;
        add(editButtonPanel, gridBagConstraints);

        fontPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        fontPanel.setLayout(new java.awt.GridBagLayout());

        fontComboBox.setFont(new java.awt.Font("Dialog", 0, 10));
        fontComboBox.setName("fontComboBox"); // NOI18N
        fontComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fontComboBoxActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
        fontPanel.add(fontComboBox, gridBagConstraints);

        fontSizeComboBox.setEditable(true);
        fontSizeComboBox.setFont(new java.awt.Font("Dialog", 0, 10));
        fontSizeComboBox.setPreferredSize(new java.awt.Dimension(60, 24));
        fontSizeComboBox.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fontSizeComboBoxActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
        fontPanel.add(fontSizeComboBox, gridBagConstraints);

        boldToggleButton.setText(bundle.getString("Bold_Mnemonic")); // NOI18N
        boldToggleButton.setToolTipText(bundle.getString("Bold")); // NOI18N
        boldToggleButton.setMargin(new java.awt.Insets(2, 0, 2, 0));
        boldToggleButton.setPreferredSize(new java.awt.Dimension(26, 26));
        boldToggleButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                boldToggleButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);
        fontPanel.add(boldToggleButton, gridBagConstraints);

        italicToggleButton.setFont(new java.awt.Font("Dialog", 3, 12));
        italicToggleButton.setText(bundle.getString("Italic_Mnemonic")); // NOI18N
        italicToggleButton.setToolTipText(bundle.getString("Italic")); // NOI18N
        italicToggleButton.setMargin(new java.awt.Insets(2, 0, 2, 0));
        italicToggleButton.setPreferredSize(new java.awt.Dimension(26, 26));
        italicToggleButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                italicToggleButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
        fontPanel.add(italicToggleButton, gridBagConstraints);

        foregroundButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/foreground.png"))); // NOI18N
        foregroundButton.setToolTipText(bundle.getString("Font_Color")); // NOI18N
        foregroundButton.setFocusPainted(false);
        foregroundButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        foregroundButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                foregroundButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
        fontPanel.add(foregroundButton, gridBagConstraints);

        backgroundButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/pauker/icons/background.png"))); // NOI18N
        backgroundButton.setToolTipText(bundle.getString("Background_Color")); // NOI18N
        backgroundButton.setFocusPainted(false);
        backgroundButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
        backgroundButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                backgroundButtonActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        fontPanel.add(backgroundButton, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.ipady = 5;
        gridBagConstraints.weightx = 1.0;
        add(fontPanel, gridBagConstraints);

        splitPane.setResizeWeight(0.5);
        splitPane.setContinuousLayout(true);
        splitPane.setName("splitPane"); // NOI18N

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

        frontSideLabel.setFont(new java.awt.Font("Dialog", 0, 10));
        frontSideLabel.setText(bundle.getString("Card_Frontside")); // NOI18N
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        frontSidePanel.add(frontSideLabel, gridBagConstraints);

        frontSideTextArea.setComponentPopupMenu(textAreaPopupMenu);
        frontSideTextArea.setWrapStyleWord(true);
        frontSideTextArea.setName("frontSideTextArea"); // NOI18N
        frontSideTextArea.addCaretListener(new javax.swing.event.CaretListener() {
            public void caretUpdate(javax.swing.event.CaretEvent evt) {
                frontSideTextAreaCaretUpdate(evt);
            }
        });
        frontSideTextArea.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                frontSideTextAreaFocusGained(evt);
            }
        });
        frontSideScrollPane.setViewportView(frontSideTextArea);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        frontSidePanel.add(frontSideScrollPane, gridBagConstraints);

        splitPane.setLeftComponent(frontSidePanel);

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

        reverseSideLabel.setFont(new java.awt.Font("Dialog", 0, 10));
        reverseSideLabel.setText(bundle.getString("Card_ReverseSide")); // NOI18N
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 5);
        reverseSidePanel.add(reverseSideLabel, gridBagConstraints);

        reverseSideTextArea.setComponentPopupMenu(textAreaPopupMenu);
        reverseSideTextArea.setWrapStyleWord(true);
        reverseSideTextArea.setName("reverseSideTextArea"); // NOI18N
        reverseSideTextArea.addCaretListener(new javax.swing.event.CaretListener() {
            public void caretUpdate(javax.swing.event.CaretEvent evt) {
                reverseSideTextAreaCaretUpdate(evt);
            }
        });
        reverseSideTextArea.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                reverseSideTextAreaFocusGained(evt);
            }
        });
        reverseSideScrollPane.setViewportView(reverseSideTextArea);

        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;
        reverseSidePanel.add(reverseSideScrollPane, gridBagConstraints);

        splitPane.setRightComponent(reverseSidePanel);

        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;
        add(splitPane, gridBagConstraints);

        jLabel1.setFont(new java.awt.Font("Dialog", 0, 10));
        jLabel1.setText(bundle.getString("Repeating_Method_Colon")); // NOI18N
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
        add(jLabel1, gridBagConstraints);

        repeatingMethodComboBox.setFont(new java.awt.Font("Dialog", 0, 10));
        repeatingMethodComboBox.setName("repeatingMethodComboBox"); // NOI18N
        repeatingMethodComboBox.setRenderer(new MyListCellRenderer());
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
        add(repeatingMethodComboBox, gridBagConstraints);
    }// </editor-fold>//GEN-END:initComponents


Generated by  Doxygen 1.6.0   Back to index