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.

Add JButton to a chart
 Post subject: Add JButton to a chart Post rating: 0   New post Posted: Tue 14 May, 2013, 11:24 
User avatar

User rating: 7
Joined: Fri 13 Jan, 2012, 20:49
Posts: 94
Location: Poland, Warsaw
Hello Dukascopy Team,

I would like to add a JButton to left top corner of a chart.

Is it feasible with current API? For example by implementing IChartObject interface and using create(Class<T> paramClass) method of ChartObjectFactory?

If yes can you please provide more hints or exmaple.

Thanks & best regards,
Kurak


 
 Post subject: Re: Add JButton to a chart Post rating: 0   New post Posted: Tue 14 May, 2013, 11:26 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
You can't add java swing elements to the chart, however you can add events to chart objects see:
https://www.dukascopy.com/wiki/#Handle_chart_object_events
https://www.dukascopy.com/wiki/#Strategy_interacting_with_a_chart_object


 

Jump to:  

cron
  © 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