1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package triptracker.client.gps.ui;
21
22 import java.util.Enumeration;
23 import java.util.SortedSet;
24 import java.util.TreeSet;
25
26 import triptracker.client.gps.core.GPSClientModel;
27
28 /***
29 * This is the launcher class for the GPS client.
30 */
31 public class GPSClient {
32 public static void main(String[] args) {
33 System.out.println("Java Properties");
34 System.out.println("----------");
35
36 SortedSet<String> props = new TreeSet<String>();
37
38 for (Enumeration e = System.getProperties().propertyNames();
39 e.hasMoreElements() ;) {
40 String prop = e.nextElement().toString();
41 props.add(prop + "=" + System.getProperty(prop));
42 }
43 for (String prop : props) {
44 System.out.println(prop);
45 }
46
47
48 GPSClientModel model = new GPSClientModel();
49 GPSGui view = new GPSGui(model);
50 new GPSController(model, view);
51 view.setVisible(true);
52 }
53
54 }