Package javax.swing

Examples of javax.swing.Timer.stop()


        final double oIle = (float) ((alpha - this.getBackground().getAlpha())/ileCykli);
        timer.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                if (label.fadebackgroundInStop == true) {
                    timer.stop();
                    label.fadebackgroundInStop = false;
                }
                if (label.getBackground().getAlpha() < alpha) {
                    Color c = label.getBackground();
                    int r = c.getRed();
View Full Code Here


                    int b = c.getBlue();
                    int a = (int) (label.getBackground().getAlpha()+oIle);
                    if (a > 255) a = 255;
                    label.setBackground(new Color(r,g,b,a));
                } else {
                    timer.stop();
                    if (fBID != null) fBID.actionPerformed(e);
                    fBID = null;
                }
            }
        });
View Full Code Here

        final Timer pTimer = new Timer(ileCzekac, null);
        pTimer.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                fadeBackgroundIn(alpha, howLong);
                pTimer.stop();
            }
        });
        pTimer.start();
    }
   
View Full Code Here

        final double oIle = (float) ((alpha - this.getBackground().getAlpha())/ileCykli);
        timer.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                if (label.fadebackgroundOutStop == true) {
                    timer.stop();
                    label.fadebackgroundOutStop = false;
                }
                if (label.getBackground().getAlpha() > alpha) {
                    Color c = label.getBackground();
                    int r = c.getRed();
View Full Code Here

                    int b = c.getBlue();
                    int a = (int) (label.getBackground().getAlpha()+oIle);
                    if (a < 0) a = 0;
                    label.setBackground(new Color(r,g,b,a));
                } else {
                    timer.stop();
                    if (fBOD != null) fBOD.actionPerformed(e);
                    fBOD = null;
                }
            }
        });
View Full Code Here

        final Timer pTimer = new Timer(ileCzekac, null);
        pTimer.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                fadeBackgroundOut(alpha, howLong);
                pTimer.stop();
            }
        });
        pTimer.start();
    }
   
View Full Code Here

        final Timer pTimer = new Timer(200, null);
        pTimer.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                fadebackgroundOutStop = false;
                pTimer.stop();
            }
        });
        pTimer.start();
    }
   
View Full Code Here

        final Timer pTimer = new Timer(200, null);
        pTimer.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                fadebackgroundInStop = false;
                pTimer.stop();
            }
        });
        pTimer.start();
    }
   
View Full Code Here

        final Timer pTimer = new Timer(ileCzekac, null);
        pTimer.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                appear(doIlu, jakiCzas);
                pTimer.stop();
            }
        });
        pTimer.start();
    }
   
View Full Code Here

        final Timer pTimer = new Timer(ileCzekac, null);
        pTimer.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                disappear(doIlu, jakiCzas);
                pTimer.stop();
            }
        });
        pTimer.start();
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.