This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Adding images in JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Adding images in JTable" Watch "Adding images in JTable" New topic

Adding images in JTable

Mousa A. Rafi

Joined: Jan 30, 2005
Posts: 28
How can I show images (gif / jpg) in a JTable fields. I tried with ImageIcon type arrays, but don't work. For example I want to make a JTable that contains person's name and an image of him beside the name field. How can it be done? Code example would be helpful.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
It is sorta covered in the JavaRanch Style Guide.
subject: Adding images in JTable
It's not a secret anymore!