This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JCheckBox with Image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JCheckBox with Image" Watch "JCheckBox with Image" New topic

JCheckBox with Image

jamie ong

Joined: Nov 05, 2001
Posts: 24
i have a JTable which shows a list of images in individual cell, how can i allow the user to see the image and select through the checkbox?
many thanks
Shashi Kanta
Ranch Hand

Joined: May 08, 2002
Posts: 89
Icon icon=new ImageIcon("myImage.gif");
JCheckBox cb=new JCheckBox(icon);

jamie ong

Joined: Nov 05, 2001
Posts: 24
i tried out the method, but it doesnt seem to work with JTable with the JCheckBox object.
Any help to include the JCheckBox with the image into the table cell will be great.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JCheckBox with Image
It's not a secret anymore!