So Im building a DOM ladder style interface for JForex and I have everything working perfectly data wise.
The ladder updates fast, and displays how I want.

Now Im just trying to get the orders to fire off and am finding it extremely challenging.
I can fire an order from inside the onStart, onTick, onBar methods just fine.
But I have buttons, and JTables, that when I click, I want to fire certain methods.
I have all the methods wired up, and they are firing just fine.
However...when I put an IOrder submit order inside any of the methods, I just get unhandled exceptions. No explanations.
I made the IOrder and IContext public, thinking that it was because I didn't have access to them inside other methods.
But still no luck.
Any idea how to put the IOrder inside my own buyMarket(), or closeAll() methods?