Can somebody help with first step to draw chart with Java. I studied IB's TestJavaClient Demo and was able to condense the code just to extract ES (e-mini) market data to a JList. The question is: how can I extract ES (e-mini) "LAST PRICE" and put a dot on the JFrame, JPanel or whatever it needs. I don't want to burden anyone with full charting code. Just the initial extraction of "Last Price" will be much appreciated. Thanks in advance tamvik
??? you said that you already extracted all the data into a listbox, just read the correct column then? you could use http://www.jfree.org/jfreechart/index.html to make the actual display you can peek around at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/ott/ to see related code
trader42 Thanks for your reply and the links. I am new to Java trying to learn. (2-3 month so far) I looked at JFreeCharts web page, the way I see it I need to integrate JFreeCharts with Java somehow, as is I have full hands just trying to understand Java. The other link, he is using xml. You suggested "just read the column" thats my problem I do not know how to read the column and create a chart from it. If somebody could just show me how to take "LAStT PRICE" data and put it on the frame in form of a dot, I will try to figure out thd rest. Thanks tamvik
http://sourceforge.net/projects/thundergraph Download it and look for TestFrame.java Maybe use that as a starting point for your code. It also has demo.bat or something you can run to see a sample.
JFreeChart is the most popular open source java charting package. Check out the forums on the website. It is very active. I would try them first, because there are many more examples and community. http://www.jfree.org/jfreechart/index.html