Dukascopy
 
 
Wiki JStore Search Login

Strategy parameter of String type with readOnly attribute is invisible on Linux
 Post subject: Strategy parameter of String type with readOnly attribute is invisible on Linux Post rating: 0   New post Posted: Mon 28 Oct, 2013, 07:26 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
Hi,
on Linux this code
@Configurable(value = "String Parameter", readOnly = true)
public String string = "string parameter";
draws the string value with WHITE font on WHITE background in 'Define Parameters' window. So, string value is invisible.


 
 Post subject: Re: Strategy parameter of String type with readOnly attribute is invisible on Linux Post rating: 0   New post Posted: Mon 28 Oct, 2013, 10:54 
User avatar

User rating: 164
Joined: Mon 08 Oct, 2012, 10:35
Posts: 676
Location: NetherlandsNetherlands
Just from curiosity, why do you want to have a parameter that is read-only? What is the purpose of that?


 
 Post subject: Re: Strategy parameter of String type with readOnly attribute is invisible on Linux Post rating: 0   New post Posted: Mon 28 Oct, 2013, 13:16 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
tcsabina wrote:
Just from curiosity, why do you want to have a parameter that is read-only? What is the purpose of that?
The purpose is: (a) to check the strategy's version number before running and (b) to log the strategy's version number as the strategy's parameter when running the strategy on the Remote Server.


 
 Post subject: Re: Strategy parameter of String type with readOnly attribute is invisible on Linux Post rating: 0   New post Posted: Mon 16 Dec, 2013, 01:09 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
Have you tried to change the look and feel? This could help.


 
 Post subject: Re: Strategy parameter of String type with readOnly attribute is invisible on Linux Post rating: 0   New post Posted: Mon 16 Dec, 2013, 07:51 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
SFXbernhard wrote:
Have you tried to change the look and feel? This could help.
It seems the platform does not support customizing of L&F. And there is no info in the jforex wiki.


 
 Post subject: Re: Strategy parameter of String type with readOnly attribute is invisible on Linux Post rating: 1   New post Posted: Mon 16 Dec, 2013, 19:29 
User avatar

User rating: 21
Joined: Thu 19 May, 2011, 20:50
Posts: 413
Location: Germany, Munich
You have to write a little Java program (strategy) and run it in JForex.
It can set the look and feel for the full platform. I did that before and it was working.

How to set look and feel in Java, see here
https://docs.oracle.com/javase/tutorial/ ... /plaf.html


 
 Post subject: Re: Strategy parameter of String type with readOnly attribute is invisible on Linux Post rating: 0   New post Posted: Mon 16 Dec, 2013, 22:25 
User avatar

User rating: 96
Joined: Mon 09 Sep, 2013, 07:09
Posts: 287
Location: Ukraine, SHostka
SFXbernhard wrote:
You have to write a little Java program (strategy) and run it in JForex.
Great!

SFXbernhard,
how did you get the list of top-level containers to invoke the SwingUtilities updateComponentTreeUI method on each container?


 

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