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.

Font size
 Post subject: Font size Post rating: 0   New post Posted: Wed 28 Jul, 2010, 09:33 

User rating: 0
Joined: Thu 08 Jul, 2010, 15:55
Posts: 3
I am trying to increase the font size of a label on the chart with the following code
                Font font = new Font("Serif", Font.BOLD, 20);
                test.setFont(font);

but I keep getting error "The method setFont(Font) is undefined for the type IChartObject"
Can anyone help me with this please.

Thanks


 
 Post subject: Re: Font size Post rating: 0   New post Posted: Wed 28 Jul, 2010, 12:49 

User rating: 0
Joined: Tue 27 Jul, 2010, 20:57
Posts: 49
Use the method setText(String text, Font font) when creating the label instead.


 

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