Results 1 to 1 of 1
- 03-31-2014, 08:27 PM #1Member
- Join Date
- Mar 2014
- Rep Power
Connect java swing with JFreeChart
First of all sorry for my English as i am not a native speaker and if something will be not obvious please let me know :)
So it is my main class: http://pastebin.com/5y6unkbT
Generally i class download data form finance.yahoo and create simulation based on the standard deviation. Button "Start simulation" Run whole code, but in lines 300-309 i want to add data to chart so something like this:Java Code:
To create XY chart i based on this link http://www.java2s.com/Code/Java/Char...ChartDemo6.htm but to be honest i don't get it how used it in my main class. So i want to add each component of chart while java creating simulation and calculate the cumulative result and finally user can decide if she/he wants to see chart or no. Of course as you see in my code the button create chart is enabled only after hit the run simulation (java must create data).
Can anyone help me? Thanks in advance.
- By ahmadian in forum Advanced JavaReplies: 7Last Post: 05-15-2013, 04:15 PM
- By ŖàΫ ỏƒ Ңόρę in forum New To JavaReplies: 6Last Post: 12-31-2010, 12:16 PM
- By ranvir in forum JDBCReplies: 2Last Post: 12-11-2010, 09:34 AM
- By javaprogrammerishere in forum AWT / SwingReplies: 2Last Post: 01-27-2010, 09:28 AM
- By saradap80 in forum IntroductionsReplies: 0Last Post: 02-10-2009, 08:25 PM