I have uploaded a new release of JOpenComponents.
Release 0.2.2
A file was missing in the 0.2.0 release.
There are more then 10 000 candles.
Download : JOpenComponents-0.2.2.zip
Import it in Eclipse.
Launch :
jopencomponents.startup.StartChart


You can change how candle to show with :
        private int itemsWin = 40;

You can use the Left key, Right key, Home key, End key.

        @Override
        public void keyPressed(KeyEvent e) {
                int touche = e.getKeyCode();
                switch (touche) {
                case KeyEvent.VK_HOME:
                        mainPlot.setDataset(quotesChart.getToHome());
                        chartPanel.repaint();
                        break;
                case KeyEvent.VK_END:
                        mainPlot.setDataset(quotesChart.getToEnd());
                        chartPanel.repaint();
                        break;
                case KeyEvent.VK_RIGHT:
                        mainPlot.setDataset(quotesChart.getToRight());
                        chartPanel.repaint();
                        break;
                case KeyEvent.VK_LEFT:
                        mainPlot.setDataset(quotesChart.getToLeft());
                        chartPanel.repaint();
                        break;
                }

        }




Pierre8r
http://sourceforge.net/projects/jopencomponents/

--

You received this message because you are subscribed to the Google Groups 
"JBookTrader" group.
To post to this group, send email to [email protected].
For more options, visit this group at 
http://groups.google.com/group/jbooktrader?hl=.


Reply via email to