Search in sources :

Example 76 with ItemEvent

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

the class DancingFlamesInternalFrame method getDancingFlamesDrawFPSCBx.

JCheckBox getDancingFlamesDrawFPSCBx() {
    if (dancingFlamesDrawFPSCBx == null) {
        dancingFlamesDrawFPSCBx = new JCheckBox("Show fps");
        dancingFlamesDrawFPSCBx.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null) {
                    tinaController.getDancingFractalsController().drawFPSCBx_changed();
                }
            }
        });
        dancingFlamesDrawFPSCBx.setSelected(true);
        dancingFlamesDrawFPSCBx.setPreferredSize(new Dimension(110, 18));
        dancingFlamesDrawFPSCBx.setMinimumSize(new Dimension(140, 18));
        dancingFlamesDrawFPSCBx.setMaximumSize(new Dimension(160, 18));
    }
    return dancingFlamesDrawFPSCBx;
}
Also used : JCheckBox(javax.swing.JCheckBox) ItemEvent(java.awt.event.ItemEvent) ItemListener(java.awt.event.ItemListener) Dimension(java.awt.Dimension)

Example 77 with ItemEvent

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

the class EasyMovieMakerInternalFrame method getSwfAnimatorGlobalScript1Cmb.

/**
 * This method initializes animateScriptCmb
 *
 * @return javax.swing.JComboBox
 */
JComboBox getSwfAnimatorGlobalScript1Cmb() {
    if (swfAnimatorGlobalScript1Cmb == null) {
        swfAnimatorGlobalScript1Cmb = new JComboBox();
        swfAnimatorGlobalScript1Cmb.setBounds(22, 0, 186, 24);
        swfAnimatorGlobalScript1Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript1Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript1Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript1Cmb.addItemListener(new ItemListener() {

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

Example 78 with ItemEvent

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

the class EasyMovieMakerInternalFrame method getTinaSWFAnimatorPanel.

/**
 * This method initializes tinaAnimatePanel
 *
 * @return javax.swing.JPanel
 */
private JPanel getTinaSWFAnimatorPanel() {
    if (tinaSWFAnimatorPanel == null) {
        tinaSWFAnimatorPanel = new JPanel();
        tinaSWFAnimatorPanel.setLayout(new BorderLayout(0, 0));
        JPanel panel_1 = new JPanel();
        panel_1.setPreferredSize(new Dimension(200, 10));
        panel_1.setMinimumSize(new Dimension(200, 10));
        tinaSWFAnimatorPanel.add(panel_1, BorderLayout.CENTER);
        panel_1.setLayout(new BorderLayout(0, 0));
        panel_1.add(getPanel_5(), BorderLayout.NORTH);
        JPanel panel_2 = new JPanel();
        panel_2.setBorder(null);
        panel_1.add(panel_2, BorderLayout.CENTER);
        panel_2.setLayout(new BorderLayout(0, 0));
        JPanel panel_8 = new JPanel();
        panel_2.add(panel_8, BorderLayout.NORTH);
        panel_8.setLayout(new BorderLayout(0, 0));
        JPanel panel_9 = new JPanel();
        panel_9.setBorder(new TitledBorder(null, "Flames", TitledBorder.LEADING, TitledBorder.TOP, null, null));
        panel_9.setPreferredSize(new Dimension(10, 260));
        panel_2.add(panel_9, BorderLayout.SOUTH);
        panel_9.setLayout(new BorderLayout(0, 0));
        JScrollPane swfAnimatorFlamesScrollPane = new JScrollPane();
        panel_9.add(swfAnimatorFlamesScrollPane, BorderLayout.CENTER);
        swfAnimatorFlamesScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
        swfAnimatorFlamesPanel = new JPanel();
        swfAnimatorFlamesScrollPane.setViewportView(swfAnimatorFlamesPanel);
        swfAnimatorFlamesPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5));
        JPanel panel_3 = new JPanel();
        panel_3.setPreferredSize(new Dimension(160, 10));
        panel_9.add(panel_3, BorderLayout.EAST);
        panel_3.add(getSwfAnimatorLoadFlameFromMainButton());
        panel_3.add(getSwfAnimatorLoadFlameFromClipboardButton());
        panel_3.add(getSwfAnimatorLoadFlameButton());
        panel_3.add(getSwfAnimatorMoveUpButton());
        panel_3.add(getSwfAnimatorMoveDownButton());
        panel_3.add(getSwfAnimatorRemoveFlameButton());
        panel_3.add(getSwfAnimatorRemoveAllFlamesButton());
        swfAnimatorPanel_1 = new JPanel();
        swfAnimatorPanel_1.setBorder(new TitledBorder(null, "Preview", TitledBorder.LEADING, TitledBorder.TOP, null, null));
        panel_2.add(swfAnimatorPanel_1, BorderLayout.CENTER);
        swfAnimatorPanel_1.setLayout(new BorderLayout(0, 0));
        JPanel panel_83 = new JPanel();
        panel_83.setPreferredSize(new Dimension(10, 74));
        swfAnimatorPanel_1.add(panel_83, BorderLayout.SOUTH);
        panel_83.setLayout(new BorderLayout(0, 0));
        swfAnimatorFrameSlider = new JSlider();
        swfAnimatorFrameSlider.setBorder(new EmptyBorder(0, 4, 4, 0));
        panel_83.add(swfAnimatorFrameSlider, BorderLayout.CENTER);
        swfAnimatorFrameSlider.setMinorTickSpacing(5);
        swfAnimatorFrameSlider.setMinimum(1);
        swfAnimatorFrameSlider.setMajorTickSpacing(10);
        swfAnimatorFrameSlider.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().previewFlameImage();
                }
            }
        });
        swfAnimatorFrameSlider.setValue(0);
        swfAnimatorFrameSlider.setPreferredSize(new Dimension(340, 19));
        swfAnimatorFrameSlider.setMaximum(60);
        panel_83.add(getPanel_84(), BorderLayout.SOUTH);
        panel_83.add(getPanel_12(), BorderLayout.NORTH);
        swfAnimatorPreviewRootPanel = new JPanel();
        swfAnimatorPanel_1.add(swfAnimatorPreviewRootPanel, BorderLayout.CENTER);
        swfAnimatorPreviewRootPanel.setLayout(new BorderLayout(0, 0));
        JPanel panel_10 = new JPanel();
        panel_10.setBorder(null);
        panel_10.setPreferredSize(new Dimension(400, 10));
        panel_2.add(panel_10, BorderLayout.EAST);
        panel_10.setLayout(new BoxLayout(panel_10, BoxLayout.Y_AXIS));
        JScrollPane scrollPane_2 = new JScrollPane();
        scrollPane_2.setBorder(new TitledBorder(null, "Global scripts", TitledBorder.LEADING, TitledBorder.TOP, null, null));
        panel_10.add(scrollPane_2);
        JPanel panel_85 = new JPanel();
        panel_85.setPreferredSize(new Dimension(315, 280));
        scrollPane_2.setViewportView(panel_85);
        panel_85.setLayout(null);
        panel_85.add(getSwfAnimatorGlobalScript1Cmb());
        animateGlobalScriptLbl = new JLabel();
        animateGlobalScriptLbl.setBounds(0, 0, 21, 22);
        panel_85.add(animateGlobalScriptLbl);
        animateGlobalScriptLbl.setName("animateGlobalScriptLbl");
        animateGlobalScriptLbl.setPreferredSize(new Dimension(94, 22));
        animateGlobalScriptLbl.setText("01");
        animateGlobalScriptLbl.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript1REd = new JWFNumberField();
        swfAnimatorGlobalScript1REd.setBounds(213, 0, 100, 24);
        panel_85.add(swfAnimatorGlobalScript1REd);
        swfAnimatorGlobalScript1REd.setValue(1.0);
        swfAnimatorGlobalScript1REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript1REd.setValueStep(0.1);
        swfAnimatorGlobalScript1REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript1REd.setMotionPropertyName("globalScript1");
        swfAnimatorGlobalScript1REd.setLinkedLabelControlName("animateGlobalScriptLbl");
        swfAnimatorGlobalScript1REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        JLabel lblGlobalScript = new JLabel();
        lblGlobalScript.setBounds(0, 23, 21, 22);
        panel_85.add(lblGlobalScript);
        lblGlobalScript.setName("lblGlobalScript");
        lblGlobalScript.setText("02");
        lblGlobalScript.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript2Cmb = new JComboBox();
        swfAnimatorGlobalScript2Cmb.setBounds(22, 23, 186, 24);
        panel_85.add(swfAnimatorGlobalScript2Cmb);
        swfAnimatorGlobalScript2Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript2Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript2Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript2REd = new JWFNumberField();
        swfAnimatorGlobalScript2REd.setBounds(213, 23, 100, 24);
        panel_85.add(swfAnimatorGlobalScript2REd);
        swfAnimatorGlobalScript2REd.setValue(1.0);
        swfAnimatorGlobalScript2REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript2REd.setValueStep(0.1);
        swfAnimatorGlobalScript2REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript2REd.setMotionPropertyName("globalScript2");
        swfAnimatorGlobalScript2REd.setLinkedLabelControlName("lblGlobalScript");
        swfAnimatorGlobalScript2REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        JLabel lblGlobalScript_1 = new JLabel();
        lblGlobalScript_1.setBounds(0, 46, 21, 22);
        panel_85.add(lblGlobalScript_1);
        lblGlobalScript_1.setName("lblGlobalScript_1");
        lblGlobalScript_1.setText("03");
        lblGlobalScript_1.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript_1.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript3Cmb = new JComboBox();
        swfAnimatorGlobalScript3Cmb.setBounds(22, 46, 186, 24);
        panel_85.add(swfAnimatorGlobalScript3Cmb);
        swfAnimatorGlobalScript3Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript3Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript3Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript3REd = new JWFNumberField();
        swfAnimatorGlobalScript3REd.setBounds(213, 46, 100, 24);
        panel_85.add(swfAnimatorGlobalScript3REd);
        swfAnimatorGlobalScript3REd.setValue(1.0);
        swfAnimatorGlobalScript3REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript3REd.setValueStep(0.1);
        swfAnimatorGlobalScript3REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript3REd.setMotionPropertyName("globalScript3");
        swfAnimatorGlobalScript3REd.setLinkedLabelControlName("lblGlobalScript_1");
        swfAnimatorGlobalScript3REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        JLabel lblGlobalScript_2 = new JLabel();
        lblGlobalScript_2.setBounds(0, 69, 21, 22);
        panel_85.add(lblGlobalScript_2);
        lblGlobalScript_2.setName("lblGlobalScript_2");
        lblGlobalScript_2.setText("04");
        lblGlobalScript_2.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript_2.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript4Cmb = new JComboBox();
        swfAnimatorGlobalScript4Cmb.setBounds(22, 69, 186, 24);
        panel_85.add(swfAnimatorGlobalScript4Cmb);
        swfAnimatorGlobalScript4Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript4Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript4Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript4REd = new JWFNumberField();
        swfAnimatorGlobalScript4REd.setBounds(213, 69, 100, 24);
        panel_85.add(swfAnimatorGlobalScript4REd);
        swfAnimatorGlobalScript4REd.setValue(1.0);
        swfAnimatorGlobalScript4REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript4REd.setValueStep(0.1);
        swfAnimatorGlobalScript4REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript4REd.setMotionPropertyName("globalScript4");
        swfAnimatorGlobalScript4REd.setLinkedLabelControlName("lblGlobalScript_2");
        swfAnimatorGlobalScript4REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        JLabel lblGlobalScript_3 = new JLabel();
        lblGlobalScript_3.setBounds(0, 92, 21, 22);
        panel_85.add(lblGlobalScript_3);
        lblGlobalScript_3.setName("lblGlobalScript_3");
        lblGlobalScript_3.setText("05");
        lblGlobalScript_3.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript_3.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript5Cmb = new JComboBox();
        swfAnimatorGlobalScript5Cmb.setBounds(22, 92, 186, 24);
        panel_85.add(swfAnimatorGlobalScript5Cmb);
        swfAnimatorGlobalScript5Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript5Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript5Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript5REd = new JWFNumberField();
        swfAnimatorGlobalScript5REd.setBounds(213, 92, 100, 24);
        panel_85.add(swfAnimatorGlobalScript5REd);
        swfAnimatorGlobalScript5REd.setValue(1.0);
        swfAnimatorGlobalScript5REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript5REd.setValueStep(0.1);
        swfAnimatorGlobalScript5REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript5REd.setMotionPropertyName("globalScript5");
        swfAnimatorGlobalScript5REd.setLinkedLabelControlName("lblGlobalScript_3");
        swfAnimatorGlobalScript5REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        lblGlobalScript_4 = new JLabel();
        lblGlobalScript_4.setText("06");
        lblGlobalScript_4.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript_4.setName("lblGlobalScript_4");
        lblGlobalScript_4.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblGlobalScript_4.setBounds(0, 115, 21, 22);
        panel_85.add(lblGlobalScript_4);
        swfAnimatorGlobalScript6Cmb = new JComboBox();
        swfAnimatorGlobalScript6Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript6Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript6Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript6Cmb.setBounds(22, 115, 186, 24);
        swfAnimatorGlobalScript6Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript6Cmb);
        swfAnimatorGlobalScript6REd = new JWFNumberField();
        swfAnimatorGlobalScript6REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript6REd.setValueStep(0.1);
        swfAnimatorGlobalScript6REd.setValue(1.0);
        swfAnimatorGlobalScript6REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript6REd.setMotionPropertyName("globalScript6");
        swfAnimatorGlobalScript6REd.setLinkedLabelControlName("lblGlobalScript_4");
        swfAnimatorGlobalScript6REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        swfAnimatorGlobalScript6REd.setBounds(213, 115, 100, 24);
        swfAnimatorGlobalScript6REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript6REd());
            }
        });
        swfAnimatorGlobalScript6REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript6REd);
        swfAnimatorGlobalScript7Cmb = new JComboBox();
        swfAnimatorGlobalScript7Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript7Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript7Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript7Cmb.setBounds(22, 138, 186, 24);
        swfAnimatorGlobalScript7Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript7Cmb);
        lblGlobalScript_5 = new JLabel();
        lblGlobalScript_5.setText("07");
        lblGlobalScript_5.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript_5.setName("lblGlobalScript_5");
        lblGlobalScript_5.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblGlobalScript_5.setBounds(0, 138, 21, 22);
        panel_85.add(lblGlobalScript_5);
        swfAnimatorGlobalScript7REd = new JWFNumberField();
        swfAnimatorGlobalScript7REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript7REd.setValueStep(0.1);
        swfAnimatorGlobalScript7REd.setValue(1.0);
        swfAnimatorGlobalScript7REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript7REd.setMotionPropertyName("globalScript7");
        swfAnimatorGlobalScript7REd.setLinkedLabelControlName("lblGlobalScript_5");
        swfAnimatorGlobalScript7REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        swfAnimatorGlobalScript7REd.setBounds(213, 138, 100, 24);
        swfAnimatorGlobalScript7REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript7REd());
            }
        });
        swfAnimatorGlobalScript7REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript7REd);
        lblGlobalScript_6 = new JLabel();
        lblGlobalScript_6.setText("08");
        lblGlobalScript_6.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript_6.setName("lblGlobalScript_6");
        lblGlobalScript_6.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblGlobalScript_6.setBounds(0, 161, 21, 22);
        panel_85.add(lblGlobalScript_6);
        swfAnimatorGlobalScript8Cmb = new JComboBox();
        swfAnimatorGlobalScript8Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript8Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript8Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript8Cmb.setBounds(22, 161, 186, 24);
        swfAnimatorGlobalScript8Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript8Cmb);
        swfAnimatorGlobalScript8REd = new JWFNumberField();
        swfAnimatorGlobalScript8REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript8REd.setValueStep(0.1);
        swfAnimatorGlobalScript8REd.setValue(1.0);
        swfAnimatorGlobalScript8REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript8REd.setMotionPropertyName("globalScript8");
        swfAnimatorGlobalScript8REd.setLinkedLabelControlName("lblGlobalScript_6");
        swfAnimatorGlobalScript8REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        swfAnimatorGlobalScript8REd.setBounds(213, 161, 100, 24);
        swfAnimatorGlobalScript8REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript8REd());
            }
        });
        swfAnimatorGlobalScript8REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript8REd);
        lblGlobalScript_7 = new JLabel();
        lblGlobalScript_7.setText("09");
        lblGlobalScript_7.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript_7.setName("lblGlobalScript_7");
        lblGlobalScript_7.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblGlobalScript_7.setBounds(0, 184, 21, 22);
        panel_85.add(lblGlobalScript_7);
        swfAnimatorGlobalScript9Cmb = new JComboBox();
        swfAnimatorGlobalScript9Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript9Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript9Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript9Cmb.setBounds(22, 184, 186, 24);
        swfAnimatorGlobalScript9Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript9Cmb);
        swfAnimatorGlobalScript9REd = new JWFNumberField();
        swfAnimatorGlobalScript9REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript9REd.setValueStep(1.0);
        swfAnimatorGlobalScript9REd.setValue(1.0);
        swfAnimatorGlobalScript9REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript9REd.setMotionPropertyName("globalScript9");
        swfAnimatorGlobalScript9REd.setLinkedLabelControlName("lblGlobalScript_7");
        swfAnimatorGlobalScript9REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        swfAnimatorGlobalScript9REd.setBounds(213, 184, 100, 24);
        swfAnimatorGlobalScript9REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript9REd());
            }
        });
        swfAnimatorGlobalScript9REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript9REd);
        lblGlobalScript_8 = new JLabel();
        lblGlobalScript_8.setText("10");
        lblGlobalScript_8.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript_8.setName("lblGlobalScript_8");
        lblGlobalScript_8.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblGlobalScript_8.setBounds(0, 207, 21, 22);
        panel_85.add(lblGlobalScript_8);
        swfAnimatorGlobalScript10Cmb = new JComboBox();
        swfAnimatorGlobalScript10Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript10Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript10Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript10Cmb.setBounds(22, 207, 186, 24);
        swfAnimatorGlobalScript10Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript10Cmb);
        swfAnimatorGlobalScript10REd = new JWFNumberField();
        swfAnimatorGlobalScript10REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript10REd.setValueStep(0.1);
        swfAnimatorGlobalScript10REd.setValue(1.0);
        swfAnimatorGlobalScript10REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript10REd.setMotionPropertyName("globalScript10");
        swfAnimatorGlobalScript10REd.setLinkedLabelControlName("lblGlobalScript_8");
        swfAnimatorGlobalScript10REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        swfAnimatorGlobalScript10REd.setBounds(213, 207, 100, 24);
        swfAnimatorGlobalScript10REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript10REd());
            }
        });
        swfAnimatorGlobalScript10REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript10REd);
        JLabel lblGlobalScript_9 = new JLabel();
        lblGlobalScript_9.setText("11");
        lblGlobalScript_9.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript_9.setName("lblGlobalScript_9");
        lblGlobalScript_9.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblGlobalScript_9.setBounds(0, 230, 21, 22);
        panel_85.add(lblGlobalScript_9);
        swfAnimatorGlobalScript11Cmb = new JComboBox();
        swfAnimatorGlobalScript11Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript11Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript11Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript11Cmb.setBounds(22, 230, 186, 24);
        swfAnimatorGlobalScript11Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript11Cmb);
        swfAnimatorGlobalScript11REd = new JWFNumberField();
        swfAnimatorGlobalScript11REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript11REd.setValueStep(0.1);
        swfAnimatorGlobalScript11REd.setValue(1.0);
        swfAnimatorGlobalScript11REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript11REd.setMotionPropertyName("globalScript11");
        swfAnimatorGlobalScript11REd.setLinkedLabelControlName("lblGlobalScript_9");
        swfAnimatorGlobalScript11REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        swfAnimatorGlobalScript11REd.setBounds(213, 230, 100, 24);
        swfAnimatorGlobalScript11REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript11REd());
            }
        });
        swfAnimatorGlobalScript11REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript11REd);
        JLabel lblGlobalScript_10 = new JLabel();
        lblGlobalScript_10.setText("12");
        lblGlobalScript_10.setPreferredSize(new Dimension(94, 22));
        lblGlobalScript_10.setName("lblGlobalScript_10");
        lblGlobalScript_10.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        lblGlobalScript_10.setBounds(0, 253, 21, 22);
        panel_85.add(lblGlobalScript_10);
        swfAnimatorGlobalScript12Cmb = new JComboBox();
        swfAnimatorGlobalScript12Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorGlobalScript12Cmb.setMaximumRowCount(16);
        swfAnimatorGlobalScript12Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorGlobalScript12Cmb.setBounds(22, 253, 186, 24);
        swfAnimatorGlobalScript12Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript12Cmb);
        swfAnimatorGlobalScript12REd = new JWFNumberField();
        swfAnimatorGlobalScript12REd.setWithMotionCurve(true);
        swfAnimatorGlobalScript12REd.setValueStep(0.1);
        swfAnimatorGlobalScript12REd.setValue(1.0);
        swfAnimatorGlobalScript12REd.setPreferredSize(new Dimension(100, 24));
        swfAnimatorGlobalScript12REd.setMotionPropertyName("globalScript12");
        swfAnimatorGlobalScript12REd.setLinkedLabelControlName("lblGlobalScript_10");
        swfAnimatorGlobalScript12REd.setFont(Prefs.getPrefs().getFont("Dialog", Font.PLAIN, 10));
        swfAnimatorGlobalScript12REd.setBounds(213, 253, 100, 24);
        swfAnimatorGlobalScript12REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript12REd());
            }
        });
        swfAnimatorGlobalScript12REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        panel_85.add(swfAnimatorGlobalScript12REd);
        panel_10.add(getScrollPane_9());
        panel_10.add(getPanel_87());
        swfAnimatorGlobalScript5REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript5REd());
            }
        });
        swfAnimatorGlobalScript5REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        swfAnimatorGlobalScript5Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        swfAnimatorGlobalScript4REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript4REd());
            }
        });
        swfAnimatorGlobalScript4REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        swfAnimatorGlobalScript4Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        swfAnimatorGlobalScript3REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript3REd());
            }
        });
        swfAnimatorGlobalScript3REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        swfAnimatorGlobalScript3Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        swfAnimatorGlobalScript2REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript2REd());
            }
        });
        swfAnimatorGlobalScript2REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        swfAnimatorGlobalScript2Cmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        swfAnimatorGlobalScript1REd.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                tinaController.getSwfAnimatorCtrl().editGlobalMotionCurve(getSwfAnimatorGlobalScript1REd());
            }
        });
        swfAnimatorGlobalScript1REd.addChangeListener(new ChangeListener() {

            public void stateChanged(ChangeEvent e) {
                if (tinaController != null && tinaController.getSwfAnimatorCtrl() != null) {
                    tinaController.getSwfAnimatorCtrl().moviePropertyChanged();
                }
            }
        });
        JPanel panel_11 = new JPanel();
        panel_11.setBorder(null);
        panel_11.setPreferredSize(new Dimension(400, 10));
        panel_2.add(panel_11, BorderLayout.WEST);
        panel_11.setLayout(new BorderLayout(0, 0));
        panel_11.add(getPanel_14(), BorderLayout.CENTER);
    }
    return tinaSWFAnimatorPanel;
}
Also used : JScrollPane(javax.swing.JScrollPane) JPanel(javax.swing.JPanel) ItemEvent(java.awt.event.ItemEvent) FlowLayout(java.awt.FlowLayout) JComboBox(javax.swing.JComboBox) ActionEvent(java.awt.event.ActionEvent) BoxLayout(javax.swing.BoxLayout) JLabel(javax.swing.JLabel) Dimension(java.awt.Dimension) TitledBorder(javax.swing.border.TitledBorder) BorderLayout(java.awt.BorderLayout) ChangeEvent(javax.swing.event.ChangeEvent) ActionListener(java.awt.event.ActionListener) JSlider(javax.swing.JSlider) ChangeListener(javax.swing.event.ChangeListener) ItemListener(java.awt.event.ItemListener) EmptyBorder(javax.swing.border.EmptyBorder)

Example 79 with ItemEvent

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

the class EasyMovieMakerInternalFrame method getSwfAnimatorXFormScript1Cmb.

/**
 * This method initializes animateXFormScriptCmb
 *
 * @return javax.swing.JComboBox
 */
JComboBox getSwfAnimatorXFormScript1Cmb() {
    if (swfAnimatorXFormScript1Cmb == null) {
        swfAnimatorXFormScript1Cmb = new JComboBox();
        swfAnimatorXFormScript1Cmb.setBounds(22, 0, 186, 24);
        swfAnimatorXFormScript1Cmb.setMaximumRowCount(16);
        swfAnimatorXFormScript1Cmb.setPreferredSize(new Dimension(275, 22));
        swfAnimatorXFormScript1Cmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
        swfAnimatorXFormScript1Cmb.addItemListener(new ItemListener() {

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

Example 80 with ItemEvent

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

the class EasyMovieMakerInternalFrame method getSwfAnimatorResolutionProfileCmb.

JComboBox getSwfAnimatorResolutionProfileCmb() {
    if (swfAnimatorResolutionProfileCmb == null) {
        swfAnimatorResolutionProfileCmb = new JComboBox();
        swfAnimatorResolutionProfileCmb.addItemListener(new ItemListener() {

            public void itemStateChanged(ItemEvent e) {
                if (tinaController != null) {
                    tinaController.getSwfAnimatorCtrl().resolutionProfileCmb_changed();
                }
            }
        });
        swfAnimatorResolutionProfileCmb.setMinimumSize(new Dimension(33, 24));
        swfAnimatorResolutionProfileCmb.setBounds(644, 6, 125, 24);
        swfAnimatorResolutionProfileCmb.setPreferredSize(new Dimension(125, 24));
        swfAnimatorResolutionProfileCmb.setMaximumRowCount(32);
        swfAnimatorResolutionProfileCmb.setFont(Prefs.getPrefs().getFont("Dialog", Font.BOLD, 10));
    }
    return swfAnimatorResolutionProfileCmb;
}
Also used : ItemEvent(java.awt.event.ItemEvent) JComboBox(javax.swing.JComboBox) ItemListener(java.awt.event.ItemListener) Dimension(java.awt.Dimension)

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