title: How do I manually invoke an Action in swing?
body: <p>For the life of me I cannot seem to find details on Java Swing Actions :'( When I came across them I immediately realised their usefulness. So far it's all been easy to work with. Now I'm stuck with one little thing: How do I run them manually? I mean by code? Note that I am building the GUI using Netbeans (if that makes any difference). I've come as far as:</p>
  
  <pre><code>Application a = Application.getInstance(JPADemoApp.class);
  ApplicationContext ctx = a.getContext();
  ActionMap am = ctx.getActionMap(JPADemoView.class, this.app);
  Action act = am.get("fetchOrders");
  </code></pre>
  
  <p>( I wrote all on separate lines to simplify debugging )</p>
  
  <p>So now I have a valid reference to the Action. Now how do I run it?</p>