1
2
3
4
5 package org.directdemocracyportal.democracy.web.main;
6
7 import org.directdemocracyportal.democracy.web.BeanLocator;
8 import org.directdemocracyportal.democracy.web.action.NewApplicationInstanceAction;
9
10 import thinwire.ui.Application;
11 import thinwire.ui.Component;
12 import thinwire.ui.Frame;
13 import thinwire.ui.event.ActionEvent;
14
15
16 /***
17 * The Class Main.
18 */
19 public class Main
20 {
21
22 /***
23 * The main method.
24 *
25 * @param args the arguments
26 */
27 public static void main(String[] args) {
28 Frame frame = Application.current().getFrame();
29
30 frame.addActionListener(Component.ACTION_CLICK, BeanLocator
31 .getApplicationActionListener());
32 frame.setUserObject(new NewApplicationInstanceAction(frame,args));
33 frame.fireAction(new ActionEvent(Component.ACTION_CLICK,frame));
34 }
35 }