dbswing.jdbTable

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rick

dbswing.jdbTable

Post by rick » Thu Feb 08, 2001 9:10 pm

If I already have a two column table loaded from a database into a dbswing.jdbTable, and I would like to use the data from that table to be the data source for JFreeChart (bar chart)what is a good way to do that and keep them in sync. Is there a way to make use of the MVC architecture that Swing has?

Thanks

Rick

David Gilbert

RE: dbswing.jdbTable

Post by David Gilbert » Sun Feb 18, 2001 7:54 am

Hi Rick,

I'm not familiar with the database classes you are using - but if it were a regular JTable then you would need to modify your table model class so that it implements the (JFreeChart) CategoryDataSource interface.

Regards,

DG.

hsliu

JTable

Post by hsliu » Fri Mar 09, 2001 6:44 am

hi,

i am currently developing a spreadsheet by using JTable. how am i going to modify my table model class so that CategoryDataSource interface can be use in the JTable?
thanks.

Locked