~ubuntu-branches/ubuntu/quantal/freeguide/quantal

« back to all changes in this revision

Viewing changes to src/program/lib/fgspecific/MessageDialogCloseTimerTask.java

  • Committer: Bazaar Package Importer
  • Author(s): Shaun Jackman
  • Date: 2006-09-30 10:14:18 UTC
  • mfrom: (1.2.3 upstream) (3.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060930101418-pkilk36yy22nbt3r
Tags: 0.10.4-2
Update the watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  FreeGuide J2
3
 
 *
4
 
 *  Copyright (c) 2001-2004 by Andy Balaam and the FreeGuide contributors
5
 
 *
6
 
 *  freeguide-tv.sourceforge.net
7
 
 *
8
 
 *  Released under the GNU General Public License
9
 
 *  with ABSOLUTELY NO WARRANTY.
10
 
 *
11
 
 *  See the file COPYING for more information.
12
 
 */
13
 
 
14
 
package freeguide.lib.fgspecific;
15
 
 
16
 
import java.util.Date;
17
 
import java.util.TimerTask;
18
 
import javax.swing.JOptionPane;  
19
 
 
20
 
/**
21
 
 *  Closes a dialog box that the user hasn't closed.
22
 
 *
23
 
 *@author     Andy Balaam
24
 
 *@created    05 Novemver 2003
25
 
 *@version    1
26
 
 */
27
 
public class MessageDialogCloseTimerTask extends TimerTask {
28
 
 
29
 
        public MessageDialogCloseTimerTask( MessageDialogTimerTask taskToClose ) {
30
 
                
31
 
                this.taskToClose = taskToClose;
32
 
                
33
 
        }
34
 
        
35
 
        /**
36
 
         * Displays a message dialog.
37
 
         */
38
 
        public void run() {
39
 
                
40
 
                taskToClose.stop();
41
 
                
42
 
        }
43
 
        
44
 
        /**
45
 
         * The MessageDialogTimerTask we want to cancel when we are triggered
46
 
         */
47
 
        private MessageDialogTimerTask taskToClose;
48
 
        
49
 
}
50
 
 
51