View Javadoc

1   package at.ac.tuwien.ifs.bpse.basic;
2   
3   import org.apache.log4j.Logger;
4   
5   import at.ac.tuwien.ifs.bpse.basic.gui.MainFrame;
6   
7   
8   /**
9    * Class containing just the main method, nothing more.
10   * 
11   * @author The SE-Team
12   * @version 1.0
13   */
14  public class Basis {
15  
16  	/**
17  	 * Retrieves the logger for this root package
18  	 */
19  	private static Logger log = Logger.getLogger(Basis.class);
20  
21  	/**
22  	 * Entry point for the program. Configures the the Log4j-Logger, 
23  	 * starts the MainFrame and then terminates.
24  	 * 
25  	 * @param args
26  	 *            the command-line arguments
27  	 * @see MainFrame
28  	 */
29  	public static void main(String[] args) {
30  		// configure log4j based on log.properties
31  		log.info("Starting Application");
32         
33  		MainFrame amf = new MainFrame();
34  		amf.setLocation(50, 50);
35  		amf.pack();
36  		amf.setVisible(true);
37  		log.info("Terminating Start Class");
38  	}
39  
40  }