Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

How to invoke IEngine from custom controls (custom pane)?
 Post subject: How to invoke IEngine from custom controls (custom pane)? Post rating: 0   New post Posted: Mon 02 Aug, 2010, 13:27 

User rating: 0
Joined: Tue 27 Jul, 2010, 20:57
Posts: 49
Objective: I have created a custom pane (context.getUserInterface().getBottomTab()), and placed some buttons onto it. When a button is pressed, an order (IEngine.submitOrder) has to be sent.

Problem: When I try to invoke IEngine from within the button's actionPerformed function, I get an "incorrect thread" exception.


 
 Post subject: Re: How to invoke IEngine from custom controls (custom pane) Post rating: 0   New post Posted: Tue 03 Aug, 2010, 07:36 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
use an IContext.executeTask(). Please consider this https://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=5&t=268


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com