This week's book giveaway is in the OCP forum. We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line! See this thread for details.
So The current method I'm using Jfreechart is to have an arraylist with getters and setters in the chart class and in the user interface class I'm doing this
So I create an object and I set Arraylists to whatever lists I want. Now my question is that is there any way that instead of having a separated arraylist in chart class and setting it using setters I can directly use my Arraylist in chart class so I make my list instance in the chart class and use it there. I tried it but the chart came up as empty.