• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Arraylist for xyseries in Jfreechart

 
saeid jamali
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!