]> git.somenet.org - pub/jan/sbc.git/blob - src/main/java/at/ac/tuwien/sbc/valesriegler/pizzeria/PizzeriaAgent.java
Pizzeria GUI implemented
[pub/jan/sbc.git] / src / main / java / at / ac / tuwien / sbc / valesriegler / pizzeria / PizzeriaAgent.java
1 package at.ac.tuwien.sbc.valesriegler.pizzeria;
2
3 import javax.swing.SwingUtilities;
4
5 import at.ac.tuwien.sbc.valesriegler.pizzeria.gui.PizzeriaFrame;
6 /**
7  * The Main class of the Pizzeria compoment.
8  * <p />
9  * Start the communication and the Pizzeria GUI
10  * 
11  * @author Gregor Riegler <gregor DOT riegler AT gmail DOT com>
12  *
13  */
14 public class PizzeriaAgent {
15
16         public static void main(String[] args) {
17                 // TODO initiate communication
18                 
19                 SwingUtilities.invokeLater(new PizzeriaGUI());
20                 
21         }
22         
23         static class PizzeriaGUI implements Runnable {
24                 @Override
25                 public void run() {
26                         PizzeriaFrame frame = new PizzeriaFrame();
27                         frame.pack();
28                         frame.setVisible(true);
29                 }
30         }
31
32 }