Help needed with JTable
1 posts in topic
Flat View  Flat View

Posted By:   vani_hemmige
Posted On:   Wednesday, April 4, 2001 12:19 PM

I am having some problem while displaying data in a JTable. I am reading the data to be displayed from SQL server database into a vector of objects of type DBObject.

public class DBObject
private String m_ImageName;
private byte[] m_ImageType;

Now I want to put this data into a table so that it displays
"Image Name" and "Actual Image" as column names and the image name and an icon containing the actual image in every row.
Please can anybody suggest me a way to do this?

Re: Help needed with JTable

Posted By:   Casey_Perkins  
Posted On:   Friday, April 6, 2001 11:27 AM

I'm certainly not an expert on how to do this, but I know that it can be done, because I've seen it done.
My suggestion is that you pick up a copy of Core Swing Advanced Programming by Kim Topley. It has two chapters on JTable rendering and layout, and tells you how to render images in cells, among other things.

Casey Perkins
About | Sitemap | Contact