Search in sources :

Example 86 with ItemEvent

use of java.awt.event.ItemEvent in project JWildfire by thargor6.

the class TinaInternalFrame method getPanel_82.

private JPanel getPanel_82() {
    if (panel_82 == null) {
        panel_82 = new JPanel();
        panel_82.setLayout(null);
        stereo3dModeCmb = new JComboBox();
        stereo3dModeCmb.setSize(new Dimension(125, 22));
        stereo3dModeCmb.setPreferredSize(new Dimension(125, 22));
        stereo3dModeCmb.setLocation(new Point(100, 4));
        stereo3dModeCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        stereo3dModeCmb.setBounds(102, 6, 322, 24);
        stereo3dModeCmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().stereo3dModeCmb_changed();
                }
            }
        });
        panel_82.add(stereo3dModeCmb);
        JLabel lblStereodMode = new JLabel();
        lblStereodMode.setText("Stereo3d mode");
        lblStereodMode.setSize(new Dimension(94, 22));
        lblStereodMode.setPreferredSize(new Dimension(94, 22));
        lblStereodMode.setLocation(new Point(488, 2));
        lblStereodMode.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblStereodMode.setBounds(6, 6, 94, 22);
        panel_82.add(lblStereodMode);
        JLabel lblAngle = new JLabel();
        lblAngle.setText("View angle");
        lblAngle.setSize(new Dimension(94, 22));
        lblAngle.setPreferredSize(new Dimension(94, 22));
        lblAngle.setName("lblAngle");
        lblAngle.setLocation(new Point(488, 2));
        lblAngle.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblAngle.setBounds(6, 31, 94, 22);
        panel_82.add(lblAngle);
        stereo3dAngleREd = new JWFNumberField();
        stereo3dAngleREd.setMinValue(-10000.0);
        stereo3dAngleREd.setMaxValue(10000.0);
        stereo3dAngleREd.setHasMinValue(true);
        stereo3dAngleREd.setHasMaxValue(true);
        stereo3dAngleREd.setValueStep(0.05);
        stereo3dAngleREd.setText("");
        stereo3dAngleREd.setSize(new Dimension(100, 24));
        stereo3dAngleREd.setPreferredSize(new Dimension(100, 24));
        stereo3dAngleREd.setLocation(new Point(584, 2));
        stereo3dAngleREd.setLinkedMotionControlName("stereo3dAngleSlider");
        stereo3dAngleREd.setLinkedLabelControlName("lblAngle");
        stereo3dAngleREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        stereo3dAngleREd.setEditable(true);
        stereo3dAngleREd.setBounds(102, 31, 100, 24);
        stereo3dAngleREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!stereo3dAngleREd.isMouseAdjusting() || stereo3dAngleREd.getMouseChangeCount() == 0) {
                        if (!stereo3dAngleSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().stereo3dAngleREd_changed();
                }
            }
        });
        panel_82.add(stereo3dAngleREd);
        stereo3dAngleSlider = new JSlider();
        stereo3dAngleSlider.setMinimum(-30000);
        stereo3dAngleSlider.setValue(0);
        stereo3dAngleSlider.setSize(new Dimension(220, 19));
        stereo3dAngleSlider.setPreferredSize(new Dimension(220, 19));
        stereo3dAngleSlider.setName("stereo3dAngleSlider");
        stereo3dAngleSlider.setMaximum(30000);
        stereo3dAngleSlider.setLocation(new Point(686, 2));
        stereo3dAngleSlider.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        stereo3dAngleSlider.setBounds(204, 31, 220, 24);
        stereo3dAngleSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        stereo3dAngleSlider.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().stereo3dAngleSlider_changed(e);
                }
            }
        });
        panel_82.add(stereo3dAngleSlider);
        JLabel lblImageCount = new JLabel();
        lblImageCount.setToolTipText("Number of generated (total) images per side per frame");
        lblImageCount.setText("Images per eye");
        lblImageCount.setSize(new Dimension(94, 22));
        lblImageCount.setPreferredSize(new Dimension(94, 22));
        lblImageCount.setName("lblImageCount");
        lblImageCount.setLocation(new Point(488, 2));
        lblImageCount.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblImageCount.setBounds(437, 81, 94, 22);
        panel_82.add(lblImageCount);
        stereo3dInterpolatedImageCountREd = new JWFNumberField();
        stereo3dInterpolatedImageCountREd.setHasMinValue(true);
        stereo3dInterpolatedImageCountREd.setHasMaxValue(true);
        stereo3dInterpolatedImageCountREd.setMaxValue(24.0);
        stereo3dInterpolatedImageCountREd.setMinValue(2.0);
        stereo3dInterpolatedImageCountREd.setOnlyIntegers(true);
        stereo3dInterpolatedImageCountREd.setValueStep(0.05);
        stereo3dInterpolatedImageCountREd.setText("");
        stereo3dInterpolatedImageCountREd.setSize(new Dimension(100, 24));
        stereo3dInterpolatedImageCountREd.setPreferredSize(new Dimension(100, 24));
        stereo3dInterpolatedImageCountREd.setLocation(new Point(584, 2));
        stereo3dInterpolatedImageCountREd.setLinkedMotionControlName("stereo3dInterpolatedImageCountSlider");
        stereo3dInterpolatedImageCountREd.setLinkedLabelControlName("lblImageCount");
        stereo3dInterpolatedImageCountREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        stereo3dInterpolatedImageCountREd.setEditable(true);
        stereo3dInterpolatedImageCountREd.setBounds(533, 81, 100, 24);
        stereo3dInterpolatedImageCountREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!stereo3dInterpolatedImageCountREd.isMouseAdjusting() || stereo3dInterpolatedImageCountREd.getMouseChangeCount() == 0) {
                        if (!stereo3dInterpolatedImageCountSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().stereo3dInterpolatedImageCountREd_changed();
                }
            }
        });
        panel_82.add(stereo3dInterpolatedImageCountREd);
        stereo3dInterpolatedImageCountSlider = new JSlider();
        stereo3dInterpolatedImageCountSlider.setValue(0);
        stereo3dInterpolatedImageCountSlider.setSize(new Dimension(220, 19));
        stereo3dInterpolatedImageCountSlider.setPreferredSize(new Dimension(220, 19));
        stereo3dInterpolatedImageCountSlider.setName("stereo3dInterpolatedImageCountSlider");
        stereo3dInterpolatedImageCountSlider.setMinimum(2);
        stereo3dInterpolatedImageCountSlider.setMaximum(24);
        stereo3dInterpolatedImageCountSlider.setLocation(new Point(686, 2));
        stereo3dInterpolatedImageCountSlider.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        stereo3dInterpolatedImageCountSlider.setBounds(635, 81, 220, 24);
        stereo3dInterpolatedImageCountSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        stereo3dInterpolatedImageCountSlider.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().stereo3dInterpolatedImageCountSlider_changed(e);
                }
            }
        });
        panel_82.add(stereo3dInterpolatedImageCountSlider);
        JLabel lblEyeDistance = new JLabel();
        lblEyeDistance.setText("Eye distance");
        lblEyeDistance.setSize(new Dimension(94, 22));
        lblEyeDistance.setPreferredSize(new Dimension(94, 22));
        lblEyeDistance.setName("lblEyeDistance");
        lblEyeDistance.setLocation(new Point(488, 2));
        lblEyeDistance.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblEyeDistance.setBounds(6, 56, 94, 22);
        panel_82.add(lblEyeDistance);
        stereo3dEyeDistREd = new JWFNumberField();
        stereo3dEyeDistREd.setMaxValue(0.25);
        stereo3dEyeDistREd.setHasMinValue(true);
        stereo3dEyeDistREd.setValueStep(0.05);
        stereo3dEyeDistREd.setText("");
        stereo3dEyeDistREd.setSize(new Dimension(100, 24));
        stereo3dEyeDistREd.setPreferredSize(new Dimension(100, 24));
        stereo3dEyeDistREd.setLocation(new Point(584, 2));
        stereo3dEyeDistREd.setLinkedMotionControlName("stereo3dEyeDistSlider");
        stereo3dEyeDistREd.setLinkedLabelControlName("lblEyeDistance");
        stereo3dEyeDistREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        stereo3dEyeDistREd.setEditable(true);
        stereo3dEyeDistREd.setBounds(102, 56, 100, 24);
        stereo3dEyeDistREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!stereo3dEyeDistREd.isMouseAdjusting() || stereo3dEyeDistREd.getMouseChangeCount() == 0) {
                        if (!stereo3dEyeDistSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().stereo3dEyeDistREd_changed();
                }
            }
        });
        panel_82.add(stereo3dEyeDistREd);
        stereo3dEyeDistSlider = new JSlider();
        stereo3dEyeDistSlider.setValue(0);
        stereo3dEyeDistSlider.setSize(new Dimension(220, 19));
        stereo3dEyeDistSlider.setPreferredSize(new Dimension(220, 19));
        stereo3dEyeDistSlider.setName("stereo3dEyeDistSlider");
        stereo3dEyeDistSlider.setMaximum(1000);
        stereo3dEyeDistSlider.setLocation(new Point(686, 2));
        stereo3dEyeDistSlider.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        stereo3dEyeDistSlider.setBounds(204, 56, 220, 24);
        stereo3dEyeDistSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        stereo3dEyeDistSlider.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().stereo3dEyeDistSlider_changed(e);
                }
            }
        });
        panel_82.add(stereo3dEyeDistSlider);
        stereo3dLeftEyeColorCmb = new JComboBox();
        stereo3dLeftEyeColorCmb.setSize(new Dimension(125, 22));
        stereo3dLeftEyeColorCmb.setPreferredSize(new Dimension(125, 22));
        stereo3dLeftEyeColorCmb.setLocation(new Point(100, 4));
        stereo3dLeftEyeColorCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        stereo3dLeftEyeColorCmb.setBounds(533, 31, 322, 24);
        stereo3dLeftEyeColorCmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().stereo3dLeftEyeColorCmb_changed();
                }
            }
        });
        panel_82.add(stereo3dLeftEyeColorCmb);
        JLabel lblLeftEyeColor = new JLabel();
        lblLeftEyeColor.setToolTipText("Render color for anaglyph rendering (left image)");
        lblLeftEyeColor.setText("Left eye color");
        lblLeftEyeColor.setSize(new Dimension(94, 22));
        lblLeftEyeColor.setPreferredSize(new Dimension(94, 22));
        lblLeftEyeColor.setLocation(new Point(488, 2));
        lblLeftEyeColor.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblLeftEyeColor.setBounds(437, 31, 94, 22);
        panel_82.add(lblLeftEyeColor);
        stereo3dRightEyeColorCmb = new JComboBox();
        stereo3dRightEyeColorCmb.setSize(new Dimension(125, 22));
        stereo3dRightEyeColorCmb.setPreferredSize(new Dimension(125, 22));
        stereo3dRightEyeColorCmb.setLocation(new Point(100, 4));
        stereo3dRightEyeColorCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        stereo3dRightEyeColorCmb.setBounds(532, 56, 323, 24);
        stereo3dRightEyeColorCmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().stereo3dRightEyeColorCmb_changed();
                }
            }
        });
        panel_82.add(stereo3dRightEyeColorCmb);
        JLabel lblRightEyeColor = new JLabel();
        lblRightEyeColor.setToolTipText("Render color for anaglyph rendering (right image)");
        lblRightEyeColor.setText("Right eye color");
        lblRightEyeColor.setSize(new Dimension(94, 22));
        lblRightEyeColor.setPreferredSize(new Dimension(94, 22));
        lblRightEyeColor.setLocation(new Point(488, 2));
        lblRightEyeColor.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblRightEyeColor.setBounds(436, 56, 94, 22);
        panel_82.add(lblRightEyeColor);
        panel_82.add(getStereo3dPreviewCmb());
        panel_82.add(getLblPreviewMode());
        stereo3dFocalOffsetREd = new JWFNumberField();
        stereo3dFocalOffsetREd.setValueStep(0.05);
        stereo3dFocalOffsetREd.setText("");
        stereo3dFocalOffsetREd.setSize(new Dimension(100, 24));
        stereo3dFocalOffsetREd.setPreferredSize(new Dimension(100, 24));
        stereo3dFocalOffsetREd.setMinValue(-10000.0);
        stereo3dFocalOffsetREd.setMaxValue(10000.0);
        stereo3dFocalOffsetREd.setLocation(new Point(584, 2));
        stereo3dFocalOffsetREd.setLinkedMotionControlName("stereo3dFocalOffsetSlider");
        stereo3dFocalOffsetREd.setLinkedLabelControlName("lblFocalOffset");
        stereo3dFocalOffsetREd.setHasMinValue(true);
        stereo3dFocalOffsetREd.setHasMaxValue(true);
        stereo3dFocalOffsetREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        stereo3dFocalOffsetREd.setEditable(true);
        stereo3dFocalOffsetREd.setBounds(102, 81, 100, 24);
        stereo3dFocalOffsetREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!stereo3dFocalOffsetREd.isMouseAdjusting() || stereo3dFocalOffsetREd.getMouseChangeCount() == 0) {
                        if (!stereo3dFocalOffsetSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().stereo3dFocalOffsetREd_changed();
                }
            }
        });
        panel_82.add(stereo3dFocalOffsetREd);
        JLabel lblFocalOffset = new JLabel();
        lblFocalOffset.setText("Focal offset");
        lblFocalOffset.setSize(new Dimension(94, 22));
        lblFocalOffset.setPreferredSize(new Dimension(94, 22));
        lblFocalOffset.setName("lblFocalOffset");
        lblFocalOffset.setLocation(new Point(488, 2));
        lblFocalOffset.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblFocalOffset.setBounds(6, 81, 94, 22);
        panel_82.add(lblFocalOffset);
        stereo3dFocalOffsetSlider = new JSlider();
        stereo3dFocalOffsetSlider.setValue(0);
        stereo3dFocalOffsetSlider.setSize(new Dimension(220, 19));
        stereo3dFocalOffsetSlider.setPreferredSize(new Dimension(220, 19));
        stereo3dFocalOffsetSlider.setName("stereo3dFocalOffsetSlider");
        stereo3dFocalOffsetSlider.setMinimum(-30000);
        stereo3dFocalOffsetSlider.setMaximum(30000);
        stereo3dFocalOffsetSlider.setLocation(new Point(686, 2));
        stereo3dFocalOffsetSlider.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        stereo3dFocalOffsetSlider.setBounds(204, 81, 220, 24);
        stereo3dFocalOffsetSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        stereo3dFocalOffsetSlider.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().stereo3dFocalOffsetSlider_changed(e);
                }
            }
        });
        panel_82.add(stereo3dFocalOffsetSlider);
        stereo3dSwapSidesCBx = new JCheckBox("Swap sides");
        stereo3dSwapSidesCBx.setToolTipText("Swap left and right images");
        stereo3dSwapSidesCBx.setBounds(865, 8, 197, 18);
        stereo3dSwapSidesCBx.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().stereo3dSwapSidesCBx_changed();
                }
            }
        });
        panel_82.add(stereo3dSwapSidesCBx);
        panel_82.add(getResetStereo3DSettingsBtn());
    }
    return panel_82;
}
Also used : ChangeEvent(javax.swing.event.ChangeEvent) JPanel(javax.swing.JPanel) ItemEvent(java.awt.event.ItemEvent) MouseEvent(java.awt.event.MouseEvent) JComboBox(javax.swing.JComboBox) MouseAdapter(java.awt.event.MouseAdapter) JLabel(javax.swing.JLabel) Dimension(java.awt.Dimension) Point(java.awt.Point) JCheckBox(javax.swing.JCheckBox) ChangeEvent(javax.swing.event.ChangeEvent) JSlider(javax.swing.JSlider) ItemListener(java.awt.event.ItemListener) ChangeListener(javax.swing.event.ChangeListener) ChangeListener(javax.swing.event.ChangeListener)

Example 87 with ItemEvent

use of java.awt.event.ItemEvent in project JWildfire by thargor6.

the class TinaInternalFrame method getTinaSouthTabbedPane.

/**
 * This method initializes tinaSouthTabbedPane
 *
 * @return javax.swing.JTabbedPane
 */
private JTabbedPane getTinaSouthTabbedPane() {
    if (tinaSouthTabbedPane == null) {
        tinaSouthTabbedPane = new JTabbedPane();
        tinaSouthTabbedPane.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        tinaSouthTabbedPane.addTab("Camera ", new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/modify_view.png")), getTinaCameraPanel(), null);
        tinaDOFPanel = new JPanel();
        tinaDOFPanel.setLayout(null);
        dofDOFSlider = new JSlider();
        dofDOFSlider.setName("dofDOFSlider");
        dofDOFSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        dofDOFSlider.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().cameraDOFSlider_stateChanged(e);
                }
            }
        });
        dofDOFSlider.setValue(0);
        dofDOFSlider.setSize(new Dimension(220, 19));
        dofDOFSlider.setPreferredSize(new Dimension(220, 19));
        dofDOFSlider.setMinimum(0);
        dofDOFSlider.setMaximum(100);
        dofDOFSlider.setLocation(new Point(202, 98));
        dofDOFSlider.setBounds(204, 28, 220, 24);
        tinaDOFPanel.add(dofDOFSlider);
        dofDOFREd = new JWFNumberField();
        dofDOFREd.setLinkedLabelControlName("lblDepthOfField");
        dofDOFREd.setMotionPropertyName("camDOF");
        dofDOFREd.setLinkedMotionControlName("dofDOFSlider");
        dofDOFREd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getFlameControls().editMotionCurve(e);
            }
        });
        dofDOFREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!dofDOFREd.isMouseAdjusting() || dofDOFREd.getMouseChangeCount() == 0) {
                        if (!dofDOFSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().cameraDOFREd_changed();
                }
            }
        });
        dofDOFREd.setValueStep(0.01);
        dofDOFREd.setText("");
        dofDOFREd.setSize(new Dimension(100, 24));
        dofDOFREd.setPreferredSize(new Dimension(100, 24));
        dofDOFREd.setLocation(new Point(100, 98));
        dofDOFREd.setHasMinValue(true);
        dofDOFREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        dofDOFREd.setBounds(102, 28, 100, 24);
        tinaDOFPanel.add(dofDOFREd);
        JLabel lblDepthOfField = new JLabel();
        lblDepthOfField.setName("lblDepthOfField");
        lblDepthOfField.setText("Amount");
        lblDepthOfField.setSize(new Dimension(94, 22));
        lblDepthOfField.setPreferredSize(new Dimension(94, 22));
        lblDepthOfField.setLocation(new Point(4, 98));
        lblDepthOfField.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblDepthOfField.setBounds(6, 28, 94, 22);
        tinaDOFPanel.add(lblDepthOfField);
        dofNewDOFCBx = new JCheckBox("New DOF");
        dofNewDOFCBx.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null) {
                    tinaController.newDOFCBx_changed();
                }
            }
        });
        dofNewDOFCBx.setBounds(102, 6, 104, 18);
        dofNewDOFCBx.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        tinaDOFPanel.add(dofNewDOFCBx);
        JLabel lblArea = new JLabel();
        lblArea.setName("lblArea");
        lblArea.setText("Area");
        lblArea.setSize(new Dimension(94, 22));
        lblArea.setPreferredSize(new Dimension(94, 22));
        lblArea.setLocation(new Point(4, 98));
        lblArea.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblArea.setBounds(6, 52, 94, 22);
        tinaDOFPanel.add(lblArea);
        dofDOFAreaSlider = new JSlider();
        dofDOFAreaSlider.setName("dofDOFAreaSlider");
        dofDOFAreaSlider.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().cameraDOFAreaSlider_stateChanged(e);
                }
            }
        });
        dofDOFAreaSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        dofDOFAreaSlider.setValue(0);
        dofDOFAreaSlider.setSize(new Dimension(220, 19));
        dofDOFAreaSlider.setPreferredSize(new Dimension(220, 19));
        dofDOFAreaSlider.setMinimum(0);
        dofDOFAreaSlider.setMaximum(200);
        dofDOFAreaSlider.setLocation(new Point(202, 98));
        dofDOFAreaSlider.setBounds(204, 52, 220, 24);
        tinaDOFPanel.add(dofDOFAreaSlider);
        dofDOFAreaREd = new JWFNumberField();
        dofDOFAreaREd.setLinkedLabelControlName("lblArea");
        dofDOFAreaREd.setMotionPropertyName("camDOFArea");
        dofDOFAreaREd.setLinkedMotionControlName("dofDOFAreaSlider");
        dofDOFAreaREd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getFlameControls().editMotionCurve(e);
            }
        });
        dofDOFAreaREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!dofDOFAreaREd.isMouseAdjusting() || dofDOFAreaREd.getMouseChangeCount() == 0) {
                        if (!dofDOFAreaSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().cameraDOFAreaREd_changed();
                }
            }
        });
        dofDOFAreaREd.setValueStep(0.01);
        dofDOFAreaREd.setText("");
        dofDOFAreaREd.setSize(new Dimension(100, 24));
        dofDOFAreaREd.setPreferredSize(new Dimension(100, 24));
        dofDOFAreaREd.setLocation(new Point(100, 98));
        dofDOFAreaREd.setHasMinValue(true);
        dofDOFAreaREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        dofDOFAreaREd.setBounds(102, 52, 100, 24);
        tinaDOFPanel.add(dofDOFAreaREd);
        JLabel lblExponent = new JLabel();
        lblExponent.setName("lblExponent");
        lblExponent.setText("Exponent");
        lblExponent.setSize(new Dimension(94, 22));
        lblExponent.setPreferredSize(new Dimension(94, 22));
        lblExponent.setLocation(new Point(4, 98));
        lblExponent.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblExponent.setBounds(6, 76, 94, 22);
        tinaDOFPanel.add(lblExponent);
        dofDOFExponentSlider = new JSlider();
        dofDOFExponentSlider.setName("dofDOFExponentSlider");
        dofDOFExponentSlider.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().cameraDOFExponentSlider_stateChanged(e);
                }
            }
        });
        dofDOFExponentSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        dofDOFExponentSlider.setValue(0);
        dofDOFExponentSlider.setSize(new Dimension(220, 19));
        dofDOFExponentSlider.setPreferredSize(new Dimension(220, 19));
        dofDOFExponentSlider.setMinimum(10);
        dofDOFExponentSlider.setMaximum(400);
        dofDOFExponentSlider.setLocation(new Point(202, 98));
        dofDOFExponentSlider.setBounds(204, 76, 220, 24);
        tinaDOFPanel.add(dofDOFExponentSlider);
        dofDOFExponentREd = new JWFNumberField();
        dofDOFExponentREd.setLinkedLabelControlName("lblExponent");
        dofDOFExponentREd.setMotionPropertyName("camDOFExponent");
        dofDOFExponentREd.setLinkedMotionControlName("dofDOFExponentSlider");
        dofDOFExponentREd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getFlameControls().editMotionCurve(e);
            }
        });
        dofDOFExponentREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!dofDOFExponentREd.isMouseAdjusting() || dofDOFExponentREd.getMouseChangeCount() == 0) {
                        if (!dofDOFExponentSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().cameraDOFExponentREd_changed();
                }
            }
        });
        dofDOFExponentREd.setValueStep(0.01);
        dofDOFExponentREd.setText("");
        dofDOFExponentREd.setSize(new Dimension(100, 24));
        dofDOFExponentREd.setPreferredSize(new Dimension(100, 24));
        dofDOFExponentREd.setLocation(new Point(100, 98));
        dofDOFExponentREd.setHasMinValue(true);
        dofDOFExponentREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        dofDOFExponentREd.setBounds(102, 76, 100, 24);
        tinaDOFPanel.add(dofDOFExponentREd);
        JLabel lblCameraDistance = new JLabel();
        lblCameraDistance.setName("lblCameraDistance");
        lblCameraDistance.setText("Camera distance");
        lblCameraDistance.setSize(new Dimension(94, 22));
        lblCameraDistance.setPreferredSize(new Dimension(94, 22));
        lblCameraDistance.setLocation(new Point(4, 98));
        lblCameraDistance.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblCameraDistance.setBounds(447, 4, 94, 22);
        tinaDOFPanel.add(lblCameraDistance);
        dofCamZSlider = new JSlider();
        dofCamZSlider.setName("dofCamZSlider");
        dofCamZSlider.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().camZSlider_stateChanged(e);
                }
            }
        });
        dofCamZSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        dofCamZSlider.setValue(0);
        dofCamZSlider.setSize(new Dimension(220, 19));
        dofCamZSlider.setPreferredSize(new Dimension(220, 19));
        dofCamZSlider.setMinimum(-100);
        dofCamZSlider.setMaximum(100);
        dofCamZSlider.setLocation(new Point(202, 98));
        dofCamZSlider.setBounds(645, 4, 220, 24);
        tinaDOFPanel.add(dofCamZSlider);
        dofCamZREd = new JWFNumberField();
        dofCamZREd.setLinkedLabelControlName("lblCameraDistance");
        dofCamZREd.setMotionPropertyName("camZ");
        dofCamZREd.setLinkedMotionControlName("dofCamZSlider");
        dofCamZREd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getFlameControls().editMotionCurve(e);
            }
        });
        dofCamZREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!dofCamZREd.isMouseAdjusting() || dofCamZREd.getMouseChangeCount() == 0) {
                        if (!dofCamZSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().camZREd_changed();
                }
            }
        });
        dofCamZREd.setValueStep(0.01);
        dofCamZREd.setToolTipText("Affects both the old DOF-effect and diminish in z-direction");
        dofCamZREd.setSize(new Dimension(100, 24));
        dofCamZREd.setPreferredSize(new Dimension(100, 24));
        dofCamZREd.setLocation(new Point(100, 98));
        dofCamZREd.setHasMinValue(true);
        dofCamZREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        dofCamZREd.setBounds(543, 4, 100, 24);
        tinaDOFPanel.add(dofCamZREd);
        JLabel lblFocusx = new JLabel();
        lblFocusx.setName("lblFocusx");
        lblFocusx.setText("FocusX");
        lblFocusx.setSize(new Dimension(94, 22));
        lblFocusx.setPreferredSize(new Dimension(94, 22));
        lblFocusx.setLocation(new Point(4, 98));
        lblFocusx.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblFocusx.setBounds(447, 52, 94, 22);
        tinaDOFPanel.add(lblFocusx);
        dofFocusXREd = new JWFNumberField();
        dofFocusXREd.setLinkedLabelControlName("lblFocusx");
        dofFocusXREd.setMotionPropertyName("focusX");
        dofFocusXREd.setLinkedMotionControlName("dofFocusXSlider");
        dofFocusXREd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getFlameControls().editMotionCurve(e);
            }
        });
        dofFocusXREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!dofFocusXREd.isMouseAdjusting() || dofFocusXREd.getMouseChangeCount() == 0) {
                        if (!dofFocusXSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().focusXREd_changed();
                }
            }
        });
        dofFocusXREd.setValueStep(0.01);
        dofFocusXREd.setText("");
        dofFocusXREd.setSize(new Dimension(100, 24));
        dofFocusXREd.setPreferredSize(new Dimension(100, 24));
        dofFocusXREd.setLocation(new Point(100, 98));
        dofFocusXREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        dofFocusXREd.setBounds(543, 52, 100, 24);
        tinaDOFPanel.add(dofFocusXREd);
        dofFocusXSlider = new JSlider();
        dofFocusXSlider.setName("dofFocusXSlider");
        dofFocusXSlider.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().focusXSlider_stateChanged(e);
                }
            }
        });
        dofFocusXSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        dofFocusXSlider.setValue(0);
        dofFocusXSlider.setSize(new Dimension(220, 19));
        dofFocusXSlider.setPreferredSize(new Dimension(220, 19));
        dofFocusXSlider.setMinimum(-100);
        dofFocusXSlider.setMaximum(100);
        dofFocusXSlider.setLocation(new Point(202, 98));
        dofFocusXSlider.setBounds(645, 52, 220, 24);
        tinaDOFPanel.add(dofFocusXSlider);
        JLabel lblFocusy = new JLabel();
        lblFocusy.setName("lblFocusy");
        lblFocusy.setText("FocusY");
        lblFocusy.setSize(new Dimension(94, 22));
        lblFocusy.setPreferredSize(new Dimension(94, 22));
        lblFocusy.setLocation(new Point(4, 98));
        lblFocusy.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblFocusy.setBounds(447, 76, 94, 22);
        tinaDOFPanel.add(lblFocusy);
        dofFocusYREd = new JWFNumberField();
        dofFocusYREd.setLinkedLabelControlName("lblFocusy");
        dofFocusYREd.setMotionPropertyName("focusY");
        dofFocusYREd.setLinkedMotionControlName("dofFocusYSlider");
        dofFocusYREd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getFlameControls().editMotionCurve(e);
            }
        });
        dofFocusYREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!dofFocusYREd.isMouseAdjusting() || dofFocusYREd.getMouseChangeCount() == 0) {
                        if (!dofFocusYSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().focusYREd_changed();
                }
            }
        });
        dofFocusYREd.setValueStep(0.01);
        dofFocusYREd.setText("");
        dofFocusYREd.setSize(new Dimension(100, 24));
        dofFocusYREd.setPreferredSize(new Dimension(100, 24));
        dofFocusYREd.setLocation(new Point(100, 98));
        dofFocusYREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        dofFocusYREd.setBounds(543, 76, 100, 24);
        tinaDOFPanel.add(dofFocusYREd);
        dofFocusYSlider = new JSlider();
        dofFocusYSlider.setName("dofFocusYSlider");
        dofFocusYSlider.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().focusYSlider_stateChanged(e);
                }
            }
        });
        dofFocusYSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        dofFocusYSlider.setValue(0);
        dofFocusYSlider.setSize(new Dimension(220, 19));
        dofFocusYSlider.setPreferredSize(new Dimension(220, 19));
        dofFocusYSlider.setMinimum(-100);
        dofFocusYSlider.setMaximum(100);
        dofFocusYSlider.setLocation(new Point(202, 98));
        dofFocusYSlider.setBounds(645, 76, 220, 24);
        tinaDOFPanel.add(dofFocusYSlider);
        JLabel lblFocusz = new JLabel();
        lblFocusz.setName("lblFocusz");
        lblFocusz.setText("FocusZ");
        lblFocusz.setSize(new Dimension(94, 22));
        lblFocusz.setPreferredSize(new Dimension(94, 22));
        lblFocusz.setLocation(new Point(4, 98));
        lblFocusz.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblFocusz.setBounds(447, 100, 94, 22);
        tinaDOFPanel.add(lblFocusz);
        dofFocusZSlider = new JSlider();
        dofFocusZSlider.setName("dofFocusZSlider");
        dofFocusZSlider.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().focusZSlider_stateChanged(e);
                }
            }
        });
        dofFocusZSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        dofFocusZSlider.setValue(0);
        dofFocusZSlider.setSize(new Dimension(220, 19));
        dofFocusZSlider.setPreferredSize(new Dimension(220, 19));
        dofFocusZSlider.setMinimum(-100);
        dofFocusZSlider.setMaximum(100);
        dofFocusZSlider.setLocation(new Point(202, 98));
        dofFocusZSlider.setBounds(645, 100, 220, 24);
        tinaDOFPanel.add(dofFocusZSlider);
        dofFocusZREd = new JWFNumberField();
        dofFocusZREd.setLinkedLabelControlName("lblFocusz");
        dofFocusZREd.setMotionPropertyName("focusZ");
        dofFocusZREd.setLinkedMotionControlName("dofFocusZSlider");
        dofFocusZREd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getFlameControls().editMotionCurve(e);
            }
        });
        dofFocusZREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!dofFocusZREd.isMouseAdjusting() || dofFocusZREd.getMouseChangeCount() == 0) {
                        if (!dofFocusZSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().focusZREd_changed();
                }
            }
        });
        dofFocusZREd.setValueStep(0.01);
        dofFocusZREd.setText("");
        dofFocusZREd.setSize(new Dimension(100, 24));
        dofFocusZREd.setPreferredSize(new Dimension(100, 24));
        dofFocusZREd.setLocation(new Point(100, 98));
        dofFocusZREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        dofFocusZREd.setBounds(543, 100, 100, 24);
        tinaDOFPanel.add(dofFocusZREd);
        JLabel lblDimishz = new JLabel();
        lblDimishz.setName("lblDimishz");
        lblDimishz.setText("DiminishZ");
        lblDimishz.setSize(new Dimension(94, 22));
        lblDimishz.setPreferredSize(new Dimension(94, 22));
        lblDimishz.setLocation(new Point(4, 98));
        lblDimishz.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblDimishz.setBounds(447, 28, 94, 22);
        tinaDOFPanel.add(lblDimishz);
        camDimishZREd = new JWFNumberField();
        camDimishZREd.setLinkedLabelControlName("lblDimishz");
        camDimishZREd.setMotionPropertyName("dimishZ");
        camDimishZREd.setLinkedMotionControlName("camDimishZSlider");
        camDimishZREd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getFlameControls().editMotionCurve(e);
            }
        });
        camDimishZREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!camDimishZREd.isMouseAdjusting() || camDimishZREd.getMouseChangeCount() == 0) {
                        if (!camDimishZSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().diminishZREd_changed();
                }
            }
        });
        camDimishZREd.setToolTipText("Diminish brightness in z-direction to improve \"depth\"-effect, also affected by camera distance");
        camDimishZREd.setValueStep(0.01);
        camDimishZREd.setText("");
        camDimishZREd.setSize(new Dimension(100, 24));
        camDimishZREd.setPreferredSize(new Dimension(100, 24));
        camDimishZREd.setLocation(new Point(100, 98));
        camDimishZREd.setHasMinValue(true);
        camDimishZREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        camDimishZREd.setBounds(543, 28, 100, 24);
        tinaDOFPanel.add(camDimishZREd);
        camDimishZSlider = new JSlider();
        camDimishZSlider.setName("camDimishZSlider");
        camDimishZSlider.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().diminishZSlider_stateChanged(e);
                }
            }
        });
        camDimishZSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        camDimishZSlider.setValue(0);
        camDimishZSlider.setSize(new Dimension(220, 19));
        camDimishZSlider.setPreferredSize(new Dimension(220, 19));
        camDimishZSlider.setMaximum(75);
        camDimishZSlider.setLocation(new Point(202, 98));
        camDimishZSlider.setBounds(645, 28, 220, 24);
        tinaDOFPanel.add(camDimishZSlider);
        tinaDOFPanel.add(getResetDOFSettingsButton());
        tinaSouthTabbedPane.addTab("DOF / Bokeh ", new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/games-config-background.png")), getPanel_92(), null);
        tinaSouthTabbedPane.addTab("Coloring ", new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/color-wheel.png")), getTinaColoringPanel(), null);
        tinaSouthTabbedPane.addTab("Anti-Aliasing / Filter", null, getAntialiasPanel(), null);
        tinaSouthTabbedPane.addTab("Gradient ", new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/applications-graphics-2.png")), getTinaPalettePanel(), null);
        tinaSouthTabbedPane.addTab("3D rendering", new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/kwikdisk-4.png")), getPanel_59(), null);
        tinaSouthTabbedPane.addTab("Stereo3d ", new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/layer-novisible.png")), getPanel_82(), null);
        tinaSouthTabbedPane.addTab("Post symmetry", null, getPanel_34(), null);
        tinaSouthTabbedPane.addTab("FPS / Motion blur", null, getMotionBlurPanel(), null);
        tinaSouthTabbedPane.addTab("Layers ", new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/emblem-photos.png")), getPanel_74(), null);
        tinaSouthTabbedPane.addTab("Channel mixer ", new ImageIcon(TinaInternalFrame.class.getResource("/org/jwildfire/swing/icons/new/color-fill.png")), getChannelMixerPanel(), null);
        JPanel panel_1 = new JPanel();
        tinaSouthTabbedPane.addTab("Leap Motion", null, panel_1, null);
        panel_1.setLayout(new BorderLayout(0, 0));
        JPanel panel_2 = new JPanel();
        panel_2.setPreferredSize(new Dimension(114, 10));
        panel_1.add(panel_2, BorderLayout.WEST);
        panel_2.setLayout(null);
        leapMotionResetConfigButton = new JButton();
        leapMotionResetConfigButton.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getLeapMotionMainEditorController().resetConfigButton_clicked();
            }
        });
        leapMotionResetConfigButton.setToolTipText("Reset the post-symmetry-options to the defaults");
        leapMotionResetConfigButton.setText("Reset");
        leapMotionResetConfigButton.setIcon(new ImageIcon(getClass().getResource("/org/jwildfire/swing/icons/new/edit-undo-6.png")));
        leapMotionResetConfigButton.setPreferredSize(new Dimension(125, 24));
        leapMotionResetConfigButton.setMinimumSize(new Dimension(100, 24));
        leapMotionResetConfigButton.setMaximumSize(new Dimension(32000, 24));
        leapMotionResetConfigButton.setIconTextGap(2);
        leapMotionResetConfigButton.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        leapMotionResetConfigButton.setBounds(6, 114, 100, 24);
        panel_2.add(leapMotionResetConfigButton);
        panel_2.add(getLeapMotionToggleButton());
        JPanel panel_3 = new JPanel();
        panel_3.setPreferredSize(new Dimension(340, 10));
        panel_1.add(panel_3, BorderLayout.EAST);
        panel_3.setLayout(null);
        leapMotionAddButton = new JButton();
        leapMotionAddButton.setToolTipText("Add new motion listener");
        leapMotionAddButton.setText("Add");
        leapMotionAddButton.setPreferredSize(new Dimension(56, 24));
        leapMotionAddButton.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        leapMotionAddButton.setBounds(6, 6, 90, 24);
        leapMotionAddButton.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getLeapMotionMainEditorController().leapMotionAddButton_clicked();
            }
        });
        panel_3.add(leapMotionAddButton);
        leapMotionDeleteButton = new JButton();
        leapMotionDeleteButton.setToolTipText("Delete motion listener");
        leapMotionDeleteButton.setText("Delete");
        leapMotionDeleteButton.setPreferredSize(new Dimension(90, 24));
        leapMotionDeleteButton.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        leapMotionDeleteButton.setBounds(6, 80, 90, 24);
        leapMotionDeleteButton.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getLeapMotionMainEditorController().leapMotionDeleteButton_clicked();
            }
        });
        panel_3.add(leapMotionDeleteButton);
        leapMotionDuplicateButton = new JButton();
        leapMotionDuplicateButton.setToolTipText("Duplicate motion listener");
        leapMotionDuplicateButton.setText("Duplicate");
        leapMotionDuplicateButton.setPreferredSize(new Dimension(90, 24));
        leapMotionDuplicateButton.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        leapMotionDuplicateButton.setBounds(6, 32, 90, 24);
        leapMotionDuplicateButton.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getLeapMotionMainEditorController().leapMotionDuplicateButton_clicked();
            }
        });
        panel_3.add(leapMotionDuplicateButton);
        JTextArea txtrPleaseNoteThat = new JTextArea();
        txtrPleaseNoteThat.setEditable(false);
        txtrPleaseNoteThat.setLineWrap(true);
        txtrPleaseNoteThat.setWrapStyleWord(true);
        txtrPleaseNoteThat.setText("Please note that all the settings here do NOT belong to a certain flame and are NOT saved when you save a flame. Currently, they can NOT be saved at all.");
        txtrPleaseNoteThat.setBounds(108, 3, 226, 122);
        panel_3.add(txtrPleaseNoteThat);
        leapMotionClearButton = new JButton();
        leapMotionClearButton.setToolTipText("Clear all motion listeners");
        leapMotionClearButton.setText("Clear");
        leapMotionClearButton.setPreferredSize(new Dimension(90, 24));
        leapMotionClearButton.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        leapMotionClearButton.setBounds(6, 106, 90, 24);
        leapMotionClearButton.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getLeapMotionMainEditorController().leapMotionClearButton_clicked();
            }
        });
        panel_3.add(leapMotionClearButton);
        panel_1.add(getPanel_111(), BorderLayout.CENTER);
        tinaSouthTabbedPane.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    switch(tinaSouthTabbedPane.getSelectedIndex()) {
                        case 4:
                            if (tinaController.getGradientController() != null) {
                                tinaController.getGradientController().onActivate();
                            }
                            break;
                        default:
                            // nothing to do
                            break;
                    }
                }
            }
        });
    }
    return tinaSouthTabbedPane;
}
Also used : ImageIcon(javax.swing.ImageIcon) JPanel(javax.swing.JPanel) ItemEvent(java.awt.event.ItemEvent) MouseEvent(java.awt.event.MouseEvent) JTextArea(javax.swing.JTextArea) ActionEvent(java.awt.event.ActionEvent) JTabbedPane(javax.swing.JTabbedPane) MouseAdapter(java.awt.event.MouseAdapter) JButton(javax.swing.JButton) JLabel(javax.swing.JLabel) Dimension(java.awt.Dimension) Point(java.awt.Point) JCheckBox(javax.swing.JCheckBox) ChangeEvent(javax.swing.event.ChangeEvent) ActionListener(java.awt.event.ActionListener) BorderLayout(java.awt.BorderLayout) JSlider(javax.swing.JSlider) ChangeListener(javax.swing.event.ChangeListener) ItemListener(java.awt.event.ItemListener)

Example 88 with ItemEvent

use of java.awt.event.ItemEvent in project JWildfire by thargor6.

the class TinaInternalFrame method getLeapMotionOutputChannelCmb.

private JComboBox getLeapMotionOutputChannelCmb() {
    if (leapMotionOutputChannelCmb == null) {
        leapMotionOutputChannelCmb = new JComboBox();
        leapMotionOutputChannelCmb.setSize(new Dimension(125, 22));
        leapMotionOutputChannelCmb.setPreferredSize(new Dimension(125, 22));
        leapMotionOutputChannelCmb.setLocation(new Point(100, 4));
        leapMotionOutputChannelCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        leapMotionOutputChannelCmb.setBounds(357, 7, 180, 24);
        leapMotionOutputChannelCmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getLeapMotionMainEditorController() != null) {
                    tinaController.getLeapMotionMainEditorController().leapMotionOutputChannelCmb_changed();
                }
            }
        });
    }
    return leapMotionOutputChannelCmb;
}
Also used : ItemEvent(java.awt.event.ItemEvent) JComboBox(javax.swing.JComboBox) ItemListener(java.awt.event.ItemListener) Dimension(java.awt.Dimension) Point(java.awt.Point)

Example 89 with ItemEvent

use of java.awt.event.ItemEvent in project JWildfire by thargor6.

the class TinaInternalFrame method getPanel_34.

private JPanel getPanel_34() {
    if (panel_34 == null) {
        panel_34 = new JPanel();
        panel_34.setLayout(null);
        postSymmetryTypeCmb = new JComboBox();
        postSymmetryTypeCmb.setSize(new Dimension(125, 22));
        postSymmetryTypeCmb.setPreferredSize(new Dimension(125, 22));
        postSymmetryTypeCmb.setLocation(new Point(100, 4));
        postSymmetryTypeCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryTypeCmb.setBounds(102, 6, 100, 24);
        postSymmetryTypeCmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().postSymmetryCmb_changed();
                }
            }
        });
        panel_34.add(postSymmetryTypeCmb);
        JLabel postSymmetryTypeLbl = new JLabel();
        postSymmetryTypeLbl.setText("Symmetry type");
        postSymmetryTypeLbl.setSize(new Dimension(94, 22));
        postSymmetryTypeLbl.setPreferredSize(new Dimension(94, 22));
        postSymmetryTypeLbl.setLocation(new Point(488, 2));
        postSymmetryTypeLbl.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryTypeLbl.setBounds(6, 6, 94, 22);
        panel_34.add(postSymmetryTypeLbl);
        postSymmetryDistanceREd = new JWFNumberField();
        postSymmetryDistanceREd.setLinkedLabelControlName("postSymmetryDistanceLbl");
        postSymmetryDistanceREd.setValueStep(0.05);
        postSymmetryDistanceREd.setText("");
        postSymmetryDistanceREd.setSize(new Dimension(100, 24));
        postSymmetryDistanceREd.setPreferredSize(new Dimension(100, 24));
        postSymmetryDistanceREd.setLocation(new Point(584, 2));
        postSymmetryDistanceREd.setLinkedMotionControlName("postSymmetryDistanceSlider");
        postSymmetryDistanceREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        postSymmetryDistanceREd.setEditable(true);
        postSymmetryDistanceREd.setBounds(102, 31, 100, 24);
        postSymmetryDistanceREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!postSymmetryDistanceREd.isMouseAdjusting() || postSymmetryDistanceREd.getMouseChangeCount() == 0) {
                        if (!postSymmetryDistanceSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().postSymmetryDistanceREd_changed();
                }
            }
        });
        panel_34.add(postSymmetryDistanceREd);
        JLabel postSymmetryDistanceLbl = new JLabel();
        postSymmetryDistanceLbl.setName("postSymmetryDistanceLbl");
        postSymmetryDistanceLbl.setText("Distance");
        postSymmetryDistanceLbl.setSize(new Dimension(94, 22));
        postSymmetryDistanceLbl.setPreferredSize(new Dimension(94, 22));
        postSymmetryDistanceLbl.setLocation(new Point(488, 2));
        postSymmetryDistanceLbl.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryDistanceLbl.setBounds(6, 31, 94, 22);
        panel_34.add(postSymmetryDistanceLbl);
        JLabel postSymmetryRotationLbl = new JLabel();
        postSymmetryRotationLbl.setName("postSymmetryRotationLbl");
        postSymmetryRotationLbl.setText("Rotation");
        postSymmetryRotationLbl.setSize(new Dimension(94, 22));
        postSymmetryRotationLbl.setPreferredSize(new Dimension(94, 22));
        postSymmetryRotationLbl.setLocation(new Point(488, 2));
        postSymmetryRotationLbl.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryRotationLbl.setBounds(6, 56, 94, 22);
        panel_34.add(postSymmetryRotationLbl);
        postSymmetryRotationREd = new JWFNumberField();
        postSymmetryRotationREd.setLinkedLabelControlName("postSymmetryRotationLbl");
        postSymmetryRotationREd.setValueStep(0.05);
        postSymmetryRotationREd.setText("");
        postSymmetryRotationREd.setSize(new Dimension(100, 24));
        postSymmetryRotationREd.setPreferredSize(new Dimension(100, 24));
        postSymmetryRotationREd.setLocation(new Point(584, 2));
        postSymmetryRotationREd.setLinkedMotionControlName("postSymmetryRotationSlider");
        postSymmetryRotationREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        postSymmetryRotationREd.setEditable(true);
        postSymmetryRotationREd.setBounds(102, 56, 100, 24);
        postSymmetryRotationREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!postSymmetryRotationREd.isMouseAdjusting() || postSymmetryRotationREd.getMouseChangeCount() == 0) {
                        if (!postSymmetryRotationSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().postSymmetryRotationREd_changed();
                }
            }
        });
        panel_34.add(postSymmetryRotationREd);
        postSymmetryDistanceSlider = new JSlider();
        postSymmetryDistanceSlider.setValue(0);
        postSymmetryDistanceSlider.setSize(new Dimension(220, 19));
        postSymmetryDistanceSlider.setPreferredSize(new Dimension(220, 19));
        postSymmetryDistanceSlider.setName("postSymmetryDistanceSlider");
        postSymmetryDistanceSlider.setMinimum(-25000);
        postSymmetryDistanceSlider.setMaximum(25000);
        postSymmetryDistanceSlider.setLocation(new Point(686, 2));
        postSymmetryDistanceSlider.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryDistanceSlider.setBounds(204, 31, 220, 24);
        postSymmetryDistanceSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        postSymmetryDistanceSlider.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().postSymmetryDistanceSlider_changed(e);
                }
            }
        });
        panel_34.add(postSymmetryDistanceSlider);
        postSymmetryRotationSlider = new JSlider();
        postSymmetryRotationSlider.setMaximum(180);
        postSymmetryRotationSlider.setValue(0);
        postSymmetryRotationSlider.setSize(new Dimension(220, 19));
        postSymmetryRotationSlider.setPreferredSize(new Dimension(220, 19));
        postSymmetryRotationSlider.setName("postSymmetryRotationSlider");
        postSymmetryRotationSlider.setMinimum(-180);
        postSymmetryRotationSlider.setLocation(new Point(686, 2));
        postSymmetryRotationSlider.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryRotationSlider.setBounds(204, 56, 220, 24);
        postSymmetryRotationSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        postSymmetryRotationSlider.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().postSymmetryRotationSlider_changed(e);
                }
            }
        });
        panel_34.add(postSymmetryRotationSlider);
        postSymmetryOrderREd = new JWFNumberField();
        postSymmetryOrderREd.setLinkedLabelControlName("postSymmetryOrderLbl");
        postSymmetryOrderREd.setMinValue(2.0);
        postSymmetryOrderREd.setOnlyIntegers(true);
        postSymmetryOrderREd.setValueStep(0.05);
        postSymmetryOrderREd.setText("");
        postSymmetryOrderREd.setSize(new Dimension(100, 24));
        postSymmetryOrderREd.setPreferredSize(new Dimension(100, 24));
        postSymmetryOrderREd.setMaxValue(36.0);
        postSymmetryOrderREd.setLocation(new Point(584, 2));
        postSymmetryOrderREd.setLinkedMotionControlName("postSymmetryOrderSlider");
        postSymmetryOrderREd.setHasMinValue(true);
        postSymmetryOrderREd.setHasMaxValue(true);
        postSymmetryOrderREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        postSymmetryOrderREd.setEditable(true);
        postSymmetryOrderREd.setBounds(532, 6, 100, 24);
        postSymmetryOrderREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!postSymmetryOrderREd.isMouseAdjusting() || postSymmetryOrderREd.getMouseChangeCount() == 0) {
                        if (!postSymmetryOrderSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().postSymmetryOrderREd_changed();
                }
            }
        });
        panel_34.add(postSymmetryOrderREd);
        JLabel postSymmetryOrderLbl = new JLabel();
        postSymmetryOrderLbl.setName("postSymmetryOrderLbl");
        postSymmetryOrderLbl.setText("Symmetry order");
        postSymmetryOrderLbl.setSize(new Dimension(94, 22));
        postSymmetryOrderLbl.setPreferredSize(new Dimension(94, 22));
        postSymmetryOrderLbl.setLocation(new Point(488, 2));
        postSymmetryOrderLbl.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryOrderLbl.setBounds(436, 6, 94, 22);
        panel_34.add(postSymmetryOrderLbl);
        JLabel postSymmetryCentreXLbl = new JLabel();
        postSymmetryCentreXLbl.setName("postSymmetryCentreXLbl");
        postSymmetryCentreXLbl.setText("Centre X");
        postSymmetryCentreXLbl.setSize(new Dimension(94, 22));
        postSymmetryCentreXLbl.setPreferredSize(new Dimension(94, 22));
        postSymmetryCentreXLbl.setLocation(new Point(488, 2));
        postSymmetryCentreXLbl.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryCentreXLbl.setBounds(436, 31, 94, 22);
        panel_34.add(postSymmetryCentreXLbl);
        postSymmetryCentreXREd = new JWFNumberField();
        postSymmetryCentreXREd.setLinkedLabelControlName("postSymmetryCentreXLbl");
        postSymmetryCentreXREd.setValueStep(0.05);
        postSymmetryCentreXREd.setText("");
        postSymmetryCentreXREd.setSize(new Dimension(100, 24));
        postSymmetryCentreXREd.setPreferredSize(new Dimension(100, 24));
        postSymmetryCentreXREd.setLocation(new Point(584, 2));
        postSymmetryCentreXREd.setLinkedMotionControlName("postSymmetryCentreXSlider");
        postSymmetryCentreXREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        postSymmetryCentreXREd.setEditable(true);
        postSymmetryCentreXREd.setBounds(532, 31, 100, 24);
        postSymmetryCentreXREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!postSymmetryCentreXREd.isMouseAdjusting() || postSymmetryCentreXREd.getMouseChangeCount() == 0) {
                        if (!postSymmetryCentreXSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().postSymmetryCentreXREd_changed();
                }
            }
        });
        panel_34.add(postSymmetryCentreXREd);
        postSymmetryOrderSlider = new JSlider();
        postSymmetryOrderSlider.setValue(0);
        postSymmetryOrderSlider.setSize(new Dimension(220, 19));
        postSymmetryOrderSlider.setPreferredSize(new Dimension(220, 19));
        postSymmetryOrderSlider.setName("postSymmetryOrderSlider");
        postSymmetryOrderSlider.setMinimum(2);
        postSymmetryOrderSlider.setMaximum(36);
        postSymmetryOrderSlider.setLocation(new Point(686, 2));
        postSymmetryOrderSlider.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryOrderSlider.setBounds(634, 6, 220, 24);
        postSymmetryOrderSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        postSymmetryOrderSlider.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().postSymmetryOrderSlider_changed(e);
                }
            }
        });
        panel_34.add(postSymmetryOrderSlider);
        postSymmetryCentreXSlider = new JSlider();
        postSymmetryCentreXSlider.setMaximum(25000);
        postSymmetryCentreXSlider.setValue(0);
        postSymmetryCentreXSlider.setSize(new Dimension(220, 19));
        postSymmetryCentreXSlider.setPreferredSize(new Dimension(220, 19));
        postSymmetryCentreXSlider.setName("postSymmetryCentreXSlider");
        postSymmetryCentreXSlider.setMinimum(-25000);
        postSymmetryCentreXSlider.setLocation(new Point(686, 2));
        postSymmetryCentreXSlider.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryCentreXSlider.setBounds(634, 31, 220, 24);
        postSymmetryCentreXSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        postSymmetryCentreXSlider.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().postSymmetryCentreXSlider_changed(e);
                }
            }
        });
        panel_34.add(postSymmetryCentreXSlider);
        JLabel postSymmetryCentreYLbl = new JLabel();
        postSymmetryCentreYLbl.setName("postSymmetryCentreYLbl");
        postSymmetryCentreYLbl.setText("Centre Y");
        postSymmetryCentreYLbl.setSize(new Dimension(94, 22));
        postSymmetryCentreYLbl.setPreferredSize(new Dimension(94, 22));
        postSymmetryCentreYLbl.setLocation(new Point(488, 2));
        postSymmetryCentreYLbl.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryCentreYLbl.setBounds(436, 56, 94, 22);
        panel_34.add(postSymmetryCentreYLbl);
        postSymmetryCentreYREd = new JWFNumberField();
        postSymmetryCentreYREd.setLinkedLabelControlName("postSymmetryCentreYLbl");
        postSymmetryCentreYREd.setValueStep(0.05);
        postSymmetryCentreYREd.setText("");
        postSymmetryCentreYREd.setSize(new Dimension(100, 24));
        postSymmetryCentreYREd.setPreferredSize(new Dimension(100, 24));
        postSymmetryCentreYREd.setLocation(new Point(584, 2));
        postSymmetryCentreYREd.setLinkedMotionControlName("postSymmetryCentreYSlider");
        postSymmetryCentreYREd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        postSymmetryCentreYREd.setEditable(true);
        postSymmetryCentreYREd.setBounds(532, 56, 100, 24);
        postSymmetryCentreYREd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null) {
                    if (!postSymmetryCentreYREd.isMouseAdjusting() || postSymmetryCentreYREd.getMouseChangeCount() == 0) {
                        if (!postSymmetryCentreYSlider.getValueIsAdjusting()) {
                            tinaController.saveUndoPoint();
                        }
                    }
                    tinaController.getFlameControls().postSymmetryCentreYREd_changed();
                }
            }
        });
        panel_34.add(postSymmetryCentreYREd);
        postSymmetryCentreYSlider = new JSlider();
        postSymmetryCentreYSlider.setValue(0);
        postSymmetryCentreYSlider.setSize(new Dimension(220, 19));
        postSymmetryCentreYSlider.setPreferredSize(new Dimension(220, 19));
        postSymmetryCentreYSlider.setName("postSymmetryCentreYSlider");
        postSymmetryCentreYSlider.setMinimum(-25000);
        postSymmetryCentreYSlider.setMaximum(25000);
        postSymmetryCentreYSlider.setLocation(new Point(686, 2));
        postSymmetryCentreYSlider.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        postSymmetryCentreYSlider.setBounds(634, 56, 220, 24);
        postSymmetryCentreYSlider.addMouseListener(new MouseAdapter() {

            @Override
            public void mousePressed(MouseEvent e) {
                tinaController.saveUndoPoint();
            }
        });
        postSymmetryCentreYSlider.addChangeListener(new javax.swing.event.ChangeListener() {

            public void stateChanged(javax.swing.event.ChangeEvent e) {
                if (tinaController != null) {
                    tinaController.getFlameControls().postSymmetryCentreYSlider_changed(e);
                }
            }
        });
        panel_34.add(postSymmetryCentreYSlider);
        panel_34.add(getResetPostSymmetrySettingsBtn());
    }
    return panel_34;
}
Also used : ChangeEvent(javax.swing.event.ChangeEvent) JPanel(javax.swing.JPanel) ItemEvent(java.awt.event.ItemEvent) MouseEvent(java.awt.event.MouseEvent) JComboBox(javax.swing.JComboBox) MouseAdapter(java.awt.event.MouseAdapter) JLabel(javax.swing.JLabel) Dimension(java.awt.Dimension) Point(java.awt.Point) ChangeEvent(javax.swing.event.ChangeEvent) JSlider(javax.swing.JSlider) ItemListener(java.awt.event.ItemListener) ChangeListener(javax.swing.event.ChangeListener) ChangeListener(javax.swing.event.ChangeListener)

Example 90 with ItemEvent

use of java.awt.event.ItemEvent in project keystore-explorer by kaikramer.

the class DDateTimeChooser method initComponents.

private void initComponents(Date date) {
    jcbMonth = new JComboBox<Object>(MONTH_NAMES);
    jcbMonth.addItemListener(new ItemListener() {

        @Override
        public void itemStateChanged(ItemEvent evt) {
            update();
        }
    });
    jsYear = new JSpinner(new SpinnerListModel(YEARS));
    jsYear.addChangeListener(new ChangeListener() {

        @Override
        public void stateChanged(ChangeEvent evt) {
            update();
        }
    });
    jlDaysOfMonth = new JLabel[7][7];
    for (int i = 0; i < 7; i++) {
        jlDaysOfMonth[0][i] = new JLabel(DAY_NAMES[i], SwingConstants.RIGHT);
        jlDaysOfMonth[0][i].setOpaque(true);
        jlDaysOfMonth[0][i].setForeground(WEEK_DAY_FOREGROUND);
        jlDaysOfMonth[0][i].setBackground(WEEK_DAY_BACKGROUND);
        jlDaysOfMonth[0][i].setBorder(new EmptyBorder(0, 0, 0, 3));
    }
    for (int i = 1; i < 7; i++) {
        for (int j = 0; j < 7; j++) {
            jlDaysOfMonth[i][j] = new JLabel(EMPTY_DAY, SwingConstants.RIGHT);
            jlDaysOfMonth[i][j].setOpaque(true);
            jlDaysOfMonth[i][j].setForeground(DAY_FOREGROUND);
            jlDaysOfMonth[i][j].setBackground(DAY_BACKGROUND);
            jlDaysOfMonth[i][j].addMouseListener(new MouseAdapter() {

                @Override
                public void mouseClicked(MouseEvent evt) {
                    selectDay((JLabel) evt.getSource());
                }
            });
            jlDaysOfMonth[i][j].setBorder(new CompoundBorder(new MatteBorder(2, 0, 0, 0, Color.WHITE), new EmptyBorder(0, 0, 0, 3)));
        }
    }
    jpMonthYear = new JPanel();
    jpMonthYear.add(jcbMonth);
    jpMonthYear.add(jsYear);
    jpDaysOfMonth = new JPanel(new DayOfMonthGridLayout(7, 7));
    jpDaysOfMonth.setBackground(DAY_BACKGROUND);
    jpDaysOfMonth.setBorder(new CompoundBorder(BorderFactory.createLoweredBevelBorder(), new EmptyBorder(2, 2, 2, 2)));
    jpDaysOfMonth.setFocusable(true);
    jpDaysOfMonth.addFocusListener(new FocusListener() {

        @Override
        public void focusGained(FocusEvent evt) {
            setSelectedDay(jlSelectedDayOfMonth);
        }

        @Override
        public void focusLost(FocusEvent evt) {
            setSelectedDay(jlSelectedDayOfMonth);
        }
    });
    jpDaysOfMonth.addKeyListener(new KeyAdapter() {

        @Override
        public void keyPressed(KeyEvent evt) {
            calendarKeyboardNavigation(evt);
        }
    });
    for (int i = 0; i < 7; i++) {
        for (int j = 0; j < 7; j++) {
            jpDaysOfMonth.add(jlDaysOfMonth[i][j]);
        }
    }
    jsHour = new JSpinner(new SpinnerListModel(HOURS));
    jlTimeSeparator1 = new JLabel(":");
    jsMinute = new JSpinner(new SpinnerListModel(MINUTES));
    jlTimeSeparator2 = new JLabel(":");
    jsSecond = new JSpinner(new SpinnerListModel(SECONDS));
    jpTime = new JPanel(new FlowLayout(FlowLayout.CENTER));
    jpTime.add(jsHour);
    jpTime.add(jlTimeSeparator1);
    jpTime.add(jsMinute);
    jpTime.add(jlTimeSeparator2);
    jpTime.add(jsSecond);
    JPanel jpDateTime = new JPanel(new BorderLayout(0, 0));
    jpDateTime.setBorder(new CompoundBorder(new EmptyBorder(5, 5, 5, 5), new CompoundBorder(new EtchedBorder(), new EmptyBorder(5, 5, 5, 5))));
    jpDateTime.add(BorderLayout.NORTH, jpMonthYear);
    jpDateTime.add(BorderLayout.CENTER, jpDaysOfMonth);
    jpDateTime.add(BorderLayout.SOUTH, jpTime);
    jbOK = new JButton(res.getString("DDateTimeChooser.jbOK.text"));
    jbOK.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent evt) {
            okPressed();
        }
    });
    jbCancel = new JButton(res.getString("DDateTimeChooser.jbCancel.text"));
    jbCancel.addActionListener(new ActionListener() {

        @Override
        public void actionPerformed(ActionEvent evt) {
            cancelPressed();
        }
    });
    jbCancel.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), CANCEL_KEY);
    jbCancel.getActionMap().put(CANCEL_KEY, new AbstractAction() {

        private static final long serialVersionUID = 1L;

        @Override
        public void actionPerformed(ActionEvent evt) {
            cancelPressed();
        }
    });
    jpButtons = PlatformUtil.createDialogButtonPanel(jbOK, jbCancel, false);
    getContentPane().setLayout(new BorderLayout());
    getContentPane().add(BorderLayout.CENTER, jpDateTime);
    getContentPane().add(BorderLayout.SOUTH, jpButtons);
    if (date == null) {
        date = new Date();
    }
    populate(date);
    setResizable(false);
    getRootPane().setDefaultButton(jbOK);
    pack();
}
Also used : JPanel(javax.swing.JPanel) ItemEvent(java.awt.event.ItemEvent) FlowLayout(java.awt.FlowLayout) ActionEvent(java.awt.event.ActionEvent) KeyAdapter(java.awt.event.KeyAdapter) JButton(javax.swing.JButton) FocusEvent(java.awt.event.FocusEvent) KeyEvent(java.awt.event.KeyEvent) MatteBorder(javax.swing.border.MatteBorder) BorderLayout(java.awt.BorderLayout) ChangeListener(javax.swing.event.ChangeListener) CompoundBorder(javax.swing.border.CompoundBorder) EmptyBorder(javax.swing.border.EmptyBorder) AbstractAction(javax.swing.AbstractAction) MouseEvent(java.awt.event.MouseEvent) MouseAdapter(java.awt.event.MouseAdapter) JLabel(javax.swing.JLabel) Date(java.util.Date) EtchedBorder(javax.swing.border.EtchedBorder) ChangeEvent(javax.swing.event.ChangeEvent) ActionListener(java.awt.event.ActionListener) JSpinner(javax.swing.JSpinner) ItemListener(java.awt.event.ItemListener) SpinnerListModel(javax.swing.SpinnerListModel) FocusListener(java.awt.event.FocusListener)

Aggregations

ItemEvent (java.awt.event.ItemEvent)339 ItemListener (java.awt.event.ItemListener)313 ActionEvent (java.awt.event.ActionEvent)120 ActionListener (java.awt.event.ActionListener)110 JPanel (javax.swing.JPanel)106 JLabel (javax.swing.JLabel)84 JCheckBox (javax.swing.JCheckBox)72 JComboBox (javax.swing.JComboBox)65 Dimension (java.awt.Dimension)59 JButton (javax.swing.JButton)53 BorderLayout (java.awt.BorderLayout)48 JTextField (javax.swing.JTextField)46 ButtonGroup (javax.swing.ButtonGroup)35 JCheckBoxMenuItem (javax.swing.JCheckBoxMenuItem)33 GridLayout (java.awt.GridLayout)30 ChangeEvent (javax.swing.event.ChangeEvent)30 GridBagConstraints (java.awt.GridBagConstraints)29 JMenu (javax.swing.JMenu)29 ChangeListener (javax.swing.event.ChangeListener)29 GridBagLayout (java.awt.GridBagLayout)28