Rev 89 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
87 | luk | 1 | /* |
2 | * Main.java - main LWTT class |
||
3 | * |
||
89 | luk | 4 | * Copyright (c) 2006, 2007, 2008 Lukas Jelinek, http://www.aiken.cz |
87 | luk | 5 | * |
6 | * ========================================================================== |
||
7 | * |
||
8 | * This program is free software; you can redistribute it and/or modify |
||
9 | * it under the terms of the GNU General Public License Version 2 as |
||
10 | * published by the Free Software Foundation. |
||
11 | * |
||
12 | * This program is distributed in the hope that it will be useful, |
||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
15 | * GNU General Public License for more details. |
||
16 | * |
||
17 | * You should have received a copy of the GNU General Public License |
||
18 | * along with this program; if not, write to the Free Software |
||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
20 | * |
||
21 | * ========================================================================== |
||
22 | */ |
||
23 | |||
24 | package cz.aiken.util.lwtt; |
||
25 | |||
89 | luk | 26 | import javax.swing.*; |
87 | luk | 27 | |
28 | /** |
||
29 | * This class represents the application itself. It creates the main |
||
30 | * application frame and makes it visible. |
||
31 | * @author luk |
||
32 | */ |
||
33 | public class Main implements Runnable { |
||
34 | |||
35 | /** |
||
36 | * Main class constructor. |
||
37 | */ |
||
38 | public Main() { |
||
39 | |||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Creates the main frame and makes it visible. Then it hands control |
||
44 | * on the main application loop. |
||
45 | * |
||
89 | luk | 46 | * <I>This method may be called only by the event-dispatching thread.</I> |
87 | luk | 47 | */ |
48 | public void run() { |
||
89 | luk | 49 | TaskFrame tf = new TaskFrame(); |
50 | tf.setVisible(true); |
||
87 | luk | 51 | } |
52 | |||
53 | /** |
||
54 | * The main application method. It starts the application by |
||
55 | * scheduling the initialization for the event-dispatching thread. |
||
56 | * @param args the command line arguments (currently ignored) |
||
57 | */ |
||
58 | public static void main(String[] args) { |
||
59 | SwingUtilities.invokeLater(new Main()); |
||
60 | } |
||
61 | |||
62 | } |