File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: Adding images in JTable
It's not a secret anymore!