Solved

jProgressBar color

Posted on 2011-02-28
44
892 Views
Last Modified: 2012-05-11
Please advice how to set different colors for stage of loads.
Let's say up to 50% green, 51-75% orange, over 75% red.
0
Comment
Question by:gbcbr
  • 22
  • 22
44 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 35003046

Perhaps this will help (jhas a little bit different colors)

http://www.experts-exchange.com/Programming/Editors_IDEs/AWT_Swing/Q_23887895.html
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35003101
I guess in your case it should be like that:
(I modified their code, but didn't test; hope it should work
please, give it a try):

import javax.swing.*;
import java.awt.*;
import java.util.Random;
import java.util.concurrent.TimeUnit;
 
public class Test extends JFrame {
 
    private JProgressBar bar;
 
    public static void main(String[] args) throws Exception {
        Test test = new Test();
        test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        test.pack();
        test.setLocationRelativeTo(null);
        test.setVisible(true);
 
        Task task = new Task(test);
        new Thread(task).start();
    }
 
    @Override
    protected void frameInit() {
        super.frameInit();
 
        bar = new JProgressBar(0, 100);
        bar.setForeground(Color.GREEN);
 
        add(bar);
    }
 
    public void setProgress(int value) {
        bar.setValue(value);
if(value < 50) bar.setForeground(Color.GREEN);
else if(value >=50 && vallue <=75) bar.setForeground(Color.ORANGE);
else  bar.setForeground(Color.RED);




    }
 
    public void setFinished() {
        bar.setForeground(Color.RED);
    }
}
 
class Task implements Runnable {
 
    private Test feedback;
 
    public Task(Test test) {
        this.feedback = test;
    }
 
    public void run() {
        try {
            Random rnd = new Random();
            int value = 0;
            while (value < 100) {
                TimeUnit.MILLISECONDS.sleep(rnd.nextInt(400) + 300);
                value += rnd.nextInt(25) + 5;
                value = Math.min(value, 100);
                feedback.setProgress(value);
            }
            feedback.setFinished();
        } catch (InterruptedException e) {
            Thread.interrupted();
        }
    }
}

Open in new window

0
 

Author Comment

by:gbcbr
ID: 35006273
Why it doesn't work?
private JProgressBar marginBar = new JProgressBar();
..............
        this.getContentPane().add(marginBar, null);
..............
        marginBar.setBounds(new Rectangle(30, 495, 205, 20));
        marginBar.setStringPainted(true);
        marginBar.setMinimum(0);
        marginBar.setMaximum(15);
        marginBar.setForeground(Color.GREEN);
...............
    public void setProgress(int margin) {
        if (margin != 0)
            try {
                marginBar.setValue(margin);
                System.out.println("  DCC  margin   " + margin);
                if (margin < 8)
                    marginBar.setForeground(Color.GREEN);
                else if (margin >= 12 && margin <= 15)
                    marginBar.setForeground(Color.ORANGE);
                else
                    marginBar.setForeground(Color.RED);
            } catch (Exception p) {
                p.printStackTrace();
            }
    }

Open in new window

public class MarginControl {

    CollateralReport aCollateralReport;
    private double cashOutstanding;
    private double usedMargin;
    private double marginUse;
    private int margin;

    public MarginControl() {
    }

    public void marginControl(ITransportable message) {

        if (message instanceof CollateralReport)
            System.out.println("    MC  " + message);

        aCollateralReport = (CollateralReport)message;

        cashOutstanding = aCollateralReport.getCashOutstanding();
        System.out.println("    cashOutstanding   " + cashOutstanding);
        usedMargin = aCollateralReport.getFXCMUsedMargin();
        marginUse = usedMargin / cashOutstanding * 100;
        System.out.println("    marginUse   " + marginUse);
        margin = (int)(marginUse + 0.5);
        System.out.println("    margin   " + margin);

        DCC.getInstance().setProgress(margin);
    }
}

Open in new window

in terminal window in shows all outprint messages
cashOutstanding   21904.46
 marginUse   15.0654250321624
 margin   15
 DCC  margin   15

Open in new window

but bar looks like this:  marginbar.tiff
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35007985
Does it work in its original version - the one from the old EE question?
0
 

Author Comment

by:gbcbr
ID: 35008018
maybe I need to set some additional parameters?
Because logically everything clear.
0
 

Author Comment

by:gbcbr
ID: 35008170
I didn't check it in original version because it's too complicated for my case.
I don't have permanent loads to measure, it's just indicator which show margin use and it works  in two sides, as soon margin released by closing position it will go back to 0
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35009649
I tested the code I posted above (original - with some changes of color that I made)
and it works perfectly (after I corrected my spelling mistake in one place vallue--> value).
So the problem with your code is, I guess, again something in the way you are passing the values
with those getInstances.
In what part of the code do you create this progress bar ?
I am afraid that the one you are mainpulating on is not the one you are seeing.
 
0
 

Author Comment

by:gbcbr
ID: 35009837
no, you wrong now. You can see that margin value == 15 pass and stay inside of the method
DCC  margin   15

Open in new window

but even I set directly
marginBar.setForeground(Color.GREEN);

Open in new window

it still blue, and doesn't react on any directive like:
 
if (margin < 8)
                    marginBar.setForeground(Color.GREEN);
                else if (margin >= 12 && margin <= 15)
                    marginBar.setForeground(Color.ORANGE);
                else
                    marginBar.setForeground(Color.RED);

Open in new window

by any way it should not to be blue! At least green permanently.
This code is very simple and clear, but why this bar doesn't accept any settings.
I suppose that solution in some specific settings which has to allow to change color.
It's very strange that in your code  not any settings for the size, border and other visible parameters.
When I comment in my code    
//        marginBar.setBounds(new Rectangle(30, 495, 205, 20));
//        marginBar.setStringPainted(true);       
        marginBar.setMinimum(0);
        marginBar.setMaximum(20);
        marginBar.setForeground(Color.GREEN);

Open in new window

bar disappear at all.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35009893
Margin value passes there - there is no doubt about it, I'm suspecting that the instance of the progress bar which you see
and the instance on which you are manipuilating in this method somehow happen to be different.
That's why I'm suggesting to look where you are instantiating this bar realtive to the code in the method.
And also better to remove these setBounds, etc. - first be as close as you can
to the code which does work. When it starts working you can then adjust later.
As you see in the code that works there are no specific settings which you mention  -  so they are probably not necessary.
 
0
 

Author Comment

by:gbcbr
ID: 35009979
So, let's compare your code and mine:
Your  bar = new JProgressBar(0, 100);
Mine  private JProgressBar marginBar = new JProgressBar();

Your  bar.setForeground(Color.GREEN);
Mine  marginBar.setMinimum(0);
      marginBar.setMaximum(15);
      marginBar.setForeground(Color.GREEN);

Your  add(bar);
Mine  this.getContentPane().add(marginBar, null); What is null?

Open in new window

I dont see any differences, except localization into jFrame.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35010258
why would not you use the same type of constructor with arguments ? JProgressBar(0, 100)

What I'm most concerned I don't see at waht point your bar is created - I see in their code everything,
but I don't understand when you create it, and when then you access it - how we are sure that this
is the same instance. Try to change the color immediately after you create it - just in the saame place - woul you see
it in different color
0
 

Author Comment

by:gbcbr
ID: 35010294
I change for  
private JProgressBar marginBar = new JProgressBar(0, 100);
............
//        marginBar.setBounds(new Rectangle(30, 495, 205, 20));
//        marginBar.setStringPainted(true);       
//        marginBar.setMinimum(0);
//        marginBar.setMaximum(20);
        marginBar.setForeground(Color.GREEN);

Open in new window

but nothing arrear on the screen
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35010334
So right now you are seeing it blue all the time.
At the moment when you create it - right after that creation
statement, change it to color green - would it change?
0
 

Author Comment

by:gbcbr
ID: 35010405
To see it at all and in blue I have to uncomment
marginBar.setBounds(new Rectangle(30, 495, 205, 20));

Open in new window

otherwise nothing visible.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35010415
Then uncomment - and see it and also check if it changes when you change color right away
0
 

Author Comment

by:gbcbr
ID: 35010516
I don't understand why, when I set directly to the object marginBar green foreground:
 
marginBar.setForeground(Color.GREEN);

Open in new window

in doesn't accept this setting.
My opinion that this is the root of the problem.
As soon we'll find the way to change foreground color to green it will change colors according to all other directives.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35010540
Are you doing it immediately after the line when you create it?
Show the whole code.
0
 

Author Comment

by:gbcbr
ID: 35010565
whole code 2393 lines, what exactly you would like to see?
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35010636
I want to see two lines like that one following immediately another:

private JProgressBar marginBar = new JProgressBar(0,100);
marginBar.setForeground(Color.GREEN);

and i want you to tell me that with these two lines it does or does not change color.

even better like that:

private JProgressBar marginBar = new JProgressBar(0,100);
Thread.currentThread().sleep(5000);
marginBar.setForeground(Color.GREEN);

and then if you see that it creates in the default color and then changes to green






0
 

Author Comment

by:gbcbr
ID: 35011378
private JProgressBar marginBar = new JProgressBar(0,100);
is into declaration area.
When I move it from there I disturb whole code:
I try many options
marginBar.setBounds(new Rectangle(30, 495, 205, 20));
        marginBar.setModel(new DefaultBoundedRangeModel(0, 0, 0, 100));
        marginBar.setPreferredSize(new Dimension(205, 20));
        marginBar.setMinimumSize(new Dimension(205, 20));
        marginBar.setMaximumSize(new Dimension(205, 20));
        marginBar.setOpaque(false);       // nothing changed
        marginBar.setStringPainted(true); // show %
        marginBar.setEnabled(false);      // if true shows blue color 
        marginBar.setDoubleBuffered(false); // nothing changed
        marginBar.setBorderPainted(true);
        marginBar.setForeground(Color.GREEN);
        marginBar.setBackground(Color.WHITE);

Open in new window

but nothing I can change from default settings: light grey background and medium grey bar (foreground) if marginBar.setEnabled(false)  and if true it's changed to blue.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35011502
That's what I am talking about - it should not be in declaration area - it should be in executable part -
otherwise we cannot check and by the idea it is not declation - it is creation of this bar.
Change this system  - and all your debugging will e much easier
And multplying options does not make situation easier - as you saw it worked in an example
without all these options
0
 

Author Comment

by:gbcbr
ID: 35011579
but the main my question: why I can't set marginBar.setForeground(Color.GREEN); to the object margin.
It's looks like some mystification. It's direct instruction for this object, why it's ignore it? DCC.java
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 47

Expert Comment

by:for_yan
ID: 35011734
My guess is that the one you see on the screen is one instance of the porgress bar,
and the one you try to manipulate is a  separate instance but you don't see that one.
well maybe I'm wrong, that's why I wanted to test it stepwise - first to see
that it does change on the instance when we can be absolute sure that it is the same.

Another option that on your system say this setForeground does not work at all (on what system are you - I thought it is Apple?) -
not probable but could happen
How can we distinguish bewteen these two possibilities?

I suggest how to do it, but for that you want to have normal understandable
organization.

This part "private JProgressBar marginBar;"  should be in delaration area
and this part
marginBar = new JProgressBar(0,100);
should be in executable area - then you can more or less follow the life
of this element and eventually understand what  is going on.

There is never mystification, there is always stupid mistake - and the way to deal with
it is go search for it step-by-step, and for that you need to be absolutely clear
which step comes after which.

0
 

Author Comment

by:gbcbr
ID: 35011812
I'll try tomorrow, I'm already spent 8 hours for learning this decoration facility, but I left behind many real practical questions. I hope that finally we will win this bar.
Thank you for your efforts.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35011853
OK, have a good night.
0
 

Author Comment

by:gbcbr
ID: 35120905
OK, let's finish this question also, most of critical points are closed, so now the time for decoration.
As you advice I make now like this:
private JProgressBar marginBar;// = new JProgressBar();


    private void jbInit() throws Exception {

...................
        
         marginBar = new JProgressBar(0, 100);
        this.getContentPane().add(marginBar, null);

...................

        marginBar.setBounds(new Rectangle(155, 495, 205, 20));
        marginBar.setModel(new DefaultBoundedRangeModel(0, 0, 0, 100));
        marginBar.setPreferredSize(new Dimension(205, 20));
        marginBar.setMinimumSize(new Dimension(205, 20));
        marginBar.setMaximumSize(new Dimension(205, 20));
        marginBar.setOpaque(false); // nothing changed
        marginBar.setStringPainted(true); // show %
        marginBar.setEnabled(true); // if true shows blue color
        marginBar.setDoubleBuffered(false); // nothing changed
        marginBar.setBorderPainted(true);
        marginBar.setForeground(Color.GREEN);

....................

    public void setProgress(int margin) {
        if (margin != 0)
            try {
                marginBar.setValue(margin);
                System.out.println("  DCC  margin   " + margin);
                if (margin < 8)
                    marginBar.setForeground(Color.GREEN);
                else if (margin >= 12 && margin <= 15)
                    marginBar.setForeground(Color.ORANGE);
                else
                    marginBar.setForeground(Color.RED);
            } catch (Exception p) {
                p.printStackTrace();
            }
    }
        marginBar.setBackground(Color.WHITE);

Open in new window

0
 
LVL 47

Expert Comment

by:for_yan
ID: 35120938
So deos it change color now?
0
 

Author Comment

by:gbcbr
ID: 35120944
The same
0
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 35120975
Waht means the same?
SO it still does not change color?

private JProgressBar marginBar;// = new JProgressBar();  <--- this comment is wrong - declaration is by no means
equivlaent to creation.
You should declare it at the opening of the class and then create it in constructor.
Then immediately after you create try something like that

private JProgressBar marginBar = new JProgressBar(0,100);
Thread.currentThread().sleep(5000);
marginBar.setForeground(Color.GREEN);

and then we could at least see if it in general capable of  changing  the color
 

0
 

Author Comment

by:gbcbr
ID: 35121036
If I create it in constructor it's completely paralyze the system:
private JProgressBar marginBar;

    public DCC() {
        try {
            jbInit();
            this.mFxcmGateway = DBFXConnect.getGateway();
            marginBar = new JProgressBar(0, 100);
//            Thread.currentThread().sleep(5000);
//            marginBar.setForeground(Color.GREEN);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

Open in new window

13.03.2011 12:29:30 EURUSD.StopLimitEntryOrderPR_EURUSD stopLimitEntryOrder
SEVERE: null
java.lang.NumberFormatException: empty String
	at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:992)

Open in new window

When I comment it in constructor, everything work OK
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35121058
where do you create it?
0
 

Author Comment

by:gbcbr
ID: 35126010
I'm not quiet understood what yo mean
>>You should declare it at the opening of the class and then create it in constructor.
>>Then immediately after you create try something like that
>>private JProgressBar marginBar = new JProgressBar(0,100);

This  creation .......= new JProgressBar(0,100); where I have to do?
If I do it in the constructor, app doesn't work at all.
If out, app works normally, but bar has original colors.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35126031
Well, why wouldn't it work when you create it in the constructor?

If not in the contructor, are you sure that you create it just once? So where os it where you create it?
0
 

Author Comment

by:gbcbr
ID: 35126668
In the previous post 35120905, I show all places where is mentioned this bar.
1.Declaration area;
2.jbInit method;
3.setProgress method.
only in these three places.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35129381
When you do it in jbInit - do you see it created and then changing color after 5 sec ?
0
 

Author Comment

by:gbcbr
ID: 35129585
No, nothing changed
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35129859
Do you at least see it at the moment when it is created?
Put prntouts of something before and after  marginBar = new JProgressBar(0, 100);
0
 

Author Comment

by:gbcbr
ID: 35130003
System.out.println(" OpenPositionControl marginBar1 = " + marginBar);
        marginBar = new JProgressBar(0, 100);
        System.out.println(" OpenPositionControl marginBar2 = " + marginBar);
        Thread.currentThread().sleep(5000);
        marginBar.setForeground(Color.GREEN);

Open in new window

client: reply = TradingSessionStatus{mFXCMServerTimeZone=0,mFXCMServerTimeZoneName=Coordinated Universal Time,mParameters={BASE_UNIT_SIZE=Parameter{mName='BASE_UNIT_SIZE', mValue='10000'}, QUERYDEPTH_h2=Parameter{mName='QUERYDEPTH_h2', mValue='300'}, SupportBatchRequest=Parameter{mName='SupportBatchRequest', mValue='true'}, QUERYDEPTH_h3=Parameter{mName='QUERYDEPTH_h3', mValue='300'}, FixSupport=Parameter{mName='FixSupport', mValue='DASHMD'}, QUERYDEPTH_4=Parameter{mName='QUERYDEPTH_4', mValue='300'}, TRAILING_STOP_USED=Parameter{mName='TRAILING_STOP_USED', mValue='Y'}, QUERYDEPTH_5=Parameter{mName='QUERYDEPTH_5', mValue='300'}, BASE_CRNCY_SYMBOL=Parameter{mName='BASE_CRNCY_SYMBOL', mValue='¿'}, QUERYDEPTH_6=Parameter{mName='QUERYDEPTH_6', mValue='300'}, QUERYDEPTH_7=Parameter{mName='QUERYDEPTH_7', mValue='300'}, QUERYDEPTH_8=Parameter{mName='QUERYDEPTH_8', mValue='300'}, SupportTickVolume=Parameter{mName='SupportTickVolume', mValue='true'}, QUERYDEPTH_1=Parameter{mName='QUERYDEPTH_1', mValue='300'}, SupportMDHistoryRequest=Parameter{mName='SupportMDHistoryRequest', mValue='true'}, QUERYDEPTH_0=Parameter{mName='QUERYDEPTH_0', mValue='600'}, QUERYDEPTH_3=Parameter{mName='QUERYDEPTH_3', mValue='300'}, REPORTS_URL=Parameter{mName='REPORTS_URL', mValue='http://dbpa.fxcorporate.com/fxpa/getreport.app/'}, CROSS_CURRENCY=Parameter{mName='CROSS_CURRENCY', mValue='USD'}, QUERYDEPTH_2=Parameter{mName='QUERYDEPTH_2', mValue='300'}, END_TRADING_DAY=Parameter{mName='END_TRADING_DAY', mValue='16:00:00'}, QUERYDEPTH_h8=Parameter{mName='QUERYDEPTH_h8', mValue='300'}, TP_172=Parameter{mName='TP_172', mValue='Y'}, BASE_CRNCY=Parameter{mName='BASE_CRNCY', mValue='EUR'}, QUERYDEPTH_h4=Parameter{mName='QUERYDEPTH_h4', mValue='300'}, COND_DIST=Parameter{mName='COND_DIST', mValue='0.1'}, QUERYDEPTH_h6=Parameter{mName='QUERYDEPTH_h6', mValue='300'}, BASE_CRNCY_PRECISION=Parameter{mName='BASE_CRNCY_PRECISION', mValue='2'}, COND_DIST_ENTRY=Parameter{mName='COND_DIST_ENTRY', mValue='0.1'}, SINLGESESSN=Parameter{mName='SINLGESESSN', mValue='Y'}, BatchMarketDataSnapshot=Parameter{mName='BatchMarketDataSnapshot', mValue='true'}, TRAILING_STOP_DYNAMIC=Parameter{mName='TRAILING_STOP_DYNAMIC', mValue='Y'}, SupportOffersFilter=Parameter{mName='SupportOffersFilter', mValue='true'}, BASE_TIME_ZONE=Parameter{mName='BASE_TIME_ZONE', mValue='Europe/London'}, FORCE_PASSWORD_CHANGE=Parameter{mName='FORCE_PASSWORD_CHANGE', mValue='N'}, TP_94=Parameter{mName='TP_94', mValue='Y'}, SERVER_TIME_UTC=Parameter{mName='SERVER_TIME_UTC', mValue='UTC'}},mSecurities={EUR/NOK=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=36, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=36, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='EUR/NOK', mTouchTime=0} --- end superclass toString {mCurrency='EUR', mRoundLot=1.0, mFXCMSymInterestBuy=-0.62, mFXCMSymInterestSell=0.17, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, AUD/NZD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=28, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=28, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='AUD/NZD', mTouchTime=0} --- end superclass toString {mCurrency='AUD', mRoundLot=1.0, mFXCMSymInterestBuy=0.25, mFXCMSymInterestSell=-0.56, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, GBP/CHF=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=13, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=13, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='GBP/CHF', mTouchTime=0} --- end superclass toString {mCurrency='GBP', mRoundLot=1.0, mFXCMSymInterestBuy=0.11, mFXCMSymInterestSell=-0.27, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, EUR/CHF=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=5, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=5, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='EUR/CHF', mTouchTime=0} --- end superclass toString {mCurrency='EUR', mRoundLot=1.0, mFXCMSymInterestBuy=0.14, mFXCMSymInterestSell=-0.32, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, GBP/CAD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=20, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=20, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='GBP/CAD', mTouchTime=0} --- end superclass toString {mCurrency='GBP', mRoundLot=1.0, mFXCMSymInterestBuy=-0.17, mFXCMSymInterestSell=0.06, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, EUR/CAD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=15, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=15, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='EUR/CAD', mTouchTime=0} --- end superclass toString {mCurrency='EUR', mRoundLot=1.0, mFXCMSymInterestBuy=-0.06, mFXCMSymInterestSell=0.01, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, GBP/JPY=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=11, mFXCMSymPointSize=0.01, mFXCMSymPrecision=3, mFXCMSymSortOrder=11, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='GBP/JPY', mTouchTime=0} --- end superclass toString {mCurrency='GBP', mRoundLot=1.0, mFXCMSymInterestBuy=-0.09, mFXCMSymInterestSell=-0.12, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, EUR/SEK=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=32, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=32, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='EUR/SEK', mTouchTime=0} --- end superclass toString {mCurrency='EUR', mRoundLot=1.0, mFXCMSymInterestBuy=-0.57, mFXCMSymInterestSell=0.18, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, NZD/USD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=8, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=8, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='NZD/USD', mTouchTime=0} --- end superclass toString {mCurrency='NZD', mRoundLot=1.0, mFXCMSymInterestBuy=0.23, mFXCMSymInterestSell=-0.51, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, EUR/GBP=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=9, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=9, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='EUR/GBP', mTouchTime=0} --- end superclass toString {mCurrency='EUR', mRoundLot=1.0, mFXCMSymInterestBuy=0.03, mFXCMSymInterestSell=-0.11, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, CHF/JPY=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=12, mFXCMSymPointSize=0.01, mFXCMSymPrecision=3, mFXCMSymSortOrder=12, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='CHF/JPY', mTouchTime=0} --- end superclass toString {mCurrency='CHF', mRoundLot=1.0, mFXCMSymInterestBuy=-0.22, mFXCMSymInterestSell=0.07, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, AUD/USD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=6, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=6, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='AUD/USD', mTouchTime=0} --- end superclass toString {mCurrency='AUD', mRoundLot=1.0, mFXCMSymInterestBuy=0.6, mFXCMSymInterestSell=-1.26, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, USD/CAD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=7, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=7, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='USD/CAD', mTouchTime=0} --- end superclass toString {mCurrency='USD', mRoundLot=1.0, mFXCMSymInterestBuy=-0.18, mFXCMSymInterestSell=0.07, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, EUR/JPY=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=10, mFXCMSymPointSize=0.01, mFXCMSymPrecision=3, mFXCMSymSortOrder=10, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='EUR/JPY', mTouchTime=0} --- end superclass toString {mCurrency='EUR', mRoundLot=1.0, mFXCMSymInterestBuy=-0.01, mFXCMSymInterestSell=-0.15, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, AUD/CHF=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=39, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=39, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='AUD/CHF', mTouchTime=0} --- end superclass toString {mCurrency='AUD', mRoundLot=1.0, mFXCMSymInterestBuy=0.65, mFXCMSymInterestSell=-1.4, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, GBP/NZD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=21, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=21, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='GBP/NZD', mTouchTime=0} --- end superclass toString {mCurrency='GBP', mRoundLot=1.0, mFXCMSymInterestBuy=-0.97, mFXCMSymInterestSell=0.44, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, EUR/AUD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=14, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=14, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='EUR/AUD', mTouchTime=0} --- end superclass toString {mCurrency='EUR', mRoundLot=1.0, mFXCMSymInterestBuy=-1.54, mFXCMSymInterestSell=0.73, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, EUR/NZD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=40, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=40, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='EUR/NZD', mTouchTime=0} --- end superclass toString {mCurrency='EUR', mRoundLot=1.0, mFXCMSymInterestBuy=-0.78, mFXCMSymInterestSell=0.35, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, GBP/USD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=3, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=3, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='GBP/USD', mTouchTime=0} --- end superclass toString {mCurrency='GBP', mRoundLot=1.0, mFXCMSymInterestBuy=0.05, mFXCMSymInterestSell=-0.13, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, USD/HKD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=50, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=50, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='USD/HKD', mTouchTime=0} --- end superclass toString {mCurrency='USD', mRoundLot=1.0, mFXCMSymInterestBuy=0.03, mFXCMSymInterestSell=-0.16, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, AUD/CAD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=16, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=16, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='AUD/CAD', mTouchTime=0} --- end superclass toString {mCurrency='AUD', mRoundLot=1.0, mFXCMSymInterestBuy=0.48, mFXCMSymInterestSell=-1.03, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, USD/NOK=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=37, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=37, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='USD/NOK', mTouchTime=0} --- end superclass toString {mCurrency='USD', mRoundLot=1.0, mFXCMSymInterestBuy=-0.59, mFXCMSymInterestSell=0.17, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, USD/CHF=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=4, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=4, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='USD/CHF', mTouchTime=0} --- end superclass toString {mCurrency='USD', mRoundLot=1.0, mFXCMSymInterestBuy=0.03, mFXCMSymInterestSell=-0.11, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, USD/JPY=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=2, mFXCMSymPointSize=0.01, mFXCMSymPrecision=3, mFXCMSymSortOrder=2, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='USD/JPY', mTouchTime=0} --- end superclass toString {mCurrency='USD', mRoundLot=1.0, mFXCMSymInterestBuy=-0.13, mFXCMSymInterestSell=0.03, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, USD/SEK=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=30, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=30, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='USD/SEK', mTouchTime=0} --- end superclass toString {mCurrency='USD', mRoundLot=1.0, mFXCMSymInterestBuy=-0.52, mFXCMSymInterestSell=0.16, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, USD/DKK=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=31, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=31, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='USD/DKK', mTouchTime=0} --- end superclass toString {mCurrency='USD', mRoundLot=1.0, mFXCMSymInterestBuy=-0.18, mFXCMSymInterestSell=0.03, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, NZD/JPY=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=19, mFXCMSymPointSize=0.01, mFXCMSymPrecision=3, mFXCMSymSortOrder=19, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='NZD/JPY', mTouchTime=0} --- end superclass toString {mCurrency='NZD', mRoundLot=1.0, mFXCMSymInterestBuy=0.19, mFXCMSymInterestSell=-0.44, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, CAD/JPY=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=18, mFXCMSymPointSize=0.01, mFXCMSymPrecision=3, mFXCMSymSortOrder=18, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='CAD/JPY', mTouchTime=0} --- end superclass toString {mCurrency='CAD', mRoundLot=1.0, mFXCMSymInterestBuy=0.03, mFXCMSymInterestSell=-0.14, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, GBP/AUD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=22, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=22, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='GBP/AUD', mTouchTime=0} --- end superclass toString {mCurrency='GBP', mRoundLot=1.0, mFXCMSymInterestBuy=-1.77, mFXCMSymInterestSell=0.84, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, AUD/JPY=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=17, mFXCMSymPointSize=0.01, mFXCMSymPrecision=3, mFXCMSymSortOrder=17, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='AUD/JPY', mTouchTime=0} --- end superclass toString {mCurrency='AUD', mRoundLot=1.0, mFXCMSymInterestBuy=0.51, mFXCMSymInterestSell=-1.15, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, EUR/USD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=1, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=1, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='EUR/USD', mTouchTime=0} --- end superclass toString {mCurrency='EUR', mRoundLot=1.0, mFXCMSymInterestBuy=0.11, mFXCMSymInterestSell=-0.25, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, USD/ZAR=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=47, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=47, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='USD/ZAR', mTouchTime=0} --- end superclass toString {mCurrency='USD', mRoundLot=1.0, mFXCMSymInterestBuy=-1.38, mFXCMSymInterestSell=0.64, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, USD/SGD=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=48, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=48, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='USD/SGD', mTouchTime=0} --- end superclass toString {mCurrency='USD', mRoundLot=1.0, mFXCMSymInterestBuy=-0.04, mFXCMSymInterestSell=-0.04, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}, EUR/DKK=TradingSecurityAdj --- begin superclass toString TradingSecurity --- begin superclass toString Instrument{mCFICode='null', mContractMultiplier=1, mFactor=1, mFXCMCondDistEntryLimit=0.0, mFXCMCondDistEntryStop=0.0, mFXCMCondDistLimit=0.0, mFXCMCondDistStop=0.0, mFXCMMaxQuantity=5.0E7, mFXCMMinQuantity=1.0, mFXCMProductID=1, mFXCMSymID=51, mFXCMSymPointSize=1.0E-4, mFXCMSymPrecision=5, mFXCMSymSortOrder=51, mFXCMTradingStatus='O', mProduct=4, mSecurityType='null', mSymbol='EUR/DKK', mTouchTime=0} --- end superclass toString {mCurrency='EUR', mRoundLot=1.0, mFXCMSymInterestBuy=0.03, mFXCMSymInterestSell=-0.14, mFXCMSubscriptionStatus='T'} --- end superclass toString {mAskAdjustment=0.0, mBidAdjustment=0.0, mPriceStream=PriceStream{mName='BBO', mID=2}}},mPriceStreams={},mText=Market is closed. Any trading functionality is not available.,mTradSesCloseTime=null,mTradSesMode=TradSesMode:Production (3),mTradSesOpenTime=null,mTradSesReqID=DB_E100R1_8IIJRgyzSJtAOgwngaxqviPQmD1suglHA7yb5Q93hMPw0RJSHSByBC-8,mTradSesStartTime=null,mTradSesStatus=TradSesStatus:Open (2),mTradSesStatusRejReason=null,mTradingSessionID=FXCM,mTradingSessionSubID=DBFXEURR1,mTransactTime=20110314-16:16:36,mUnsolicitedIndicator=N}
 OpenPositionControl marginBar1 = null
 OpenPositionControl marginBar2 = javax.swing.JProgressBar[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.BorderUIResource@16ea7549,flags=16777216,maximumSize=,minimumSize=,preferredSize=,orientation=HORIZONTAL,paintBorder=true,paintString=false,progressString=,indeterminateString=false]
client: reply = CollateralInquiryAck mAccount=all,mCollInquiryID=DB_E100R1_8IIJRgyzSJtAOgwngaxqviPQmD1suglHA7yb5Q93hMPw0RJSHSByBC-9,mCollInquiryResult=CollInquiryResult:Successful (0),mCollInquiryStatus=CollInquiryStatus:Completed (2),mFXCMErrorDetails=null,mFXCMRequestRejectReason=-1,mParties=Parties [Party:3:D:FXCM ID();],mText=null,mTotNumReports=1,mTradingSessionID=FXCM,mTradingSessionSubID=DBFXEURR1

Open in new window

0
 
LVL 47

Expert Comment

by:for_yan
ID: 35130031
But I'm asking do you see progressbar appearing on the screen at the time between these tow messages printing?
0
 

Author Comment

by:gbcbr
ID: 35130066
I can't do this because JFrame appears 5 seconds later after these messages. So, I see only completed working panel with all elements, including this bar.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35130449
well, that's a problem - with that we cannot understand if that change of color works.
Perhaps you can create it in the method itself, after yoyr application frame is on,
but then check if(marginBar == null)marginBer = new...
so that creation happens only on the first call and skipped afterwards?
0
 

Author Comment

by:gbcbr
ID: 35130493
OK, I'll do it in separate frame and we can analyze details.
But now I have bigger problem with the counter reading, so please check first this question now "Only last value"
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35130555
Yes, waht I want is to have the creation with changing of the properties as close to each other in the code
as possible - then it should give us more clues...

I'll llok at that last value...
0
 

Author Closing Comment

by:gbcbr
ID: 35324739
I will come to this question later on.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now