View Javadoc

1   /*
2    * Trip Tracker, a real-time position tracking system for the Internet.
3    * Copyright (C) 2006  Team Trip Tracker
4    *
5    * This program is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU General Public License as published by the
7    * Free Software Foundation; either version 2 of the License, or (at your
8    * option) any later version.
9    *
10   * This program is distributed in the hope that it will be useful, but
11   * WITHOUT ANY WARRANTY; without even the implied warranty of
12   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13   * General Public License for more details.
14   *
15   * You should have received a copy of the GNU General Public License along
16   * with this program; if not, write to the Free Software Foundation, Inc.,
17   * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
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  		// Tie together the model, view and controller.
48  		GPSClientModel model = new GPSClientModel();
49  		GPSGui view = new GPSGui(model);
50  		new GPSController(model, view);
51  		view.setVisible(true);
52  	}
53  	
54  }