jQuery in Action, 3rd edition
The moose likes Swing / AWT / SWT and the fly likes JCheckBox doesn't come 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 doesn Watch "JCheckBox doesn New topic

JCheckBox doesn't come with image

Gaurav Gambhir
Ranch Hand

Joined: Mar 04, 2006
Posts: 256
For the following code, I am not getting a checkbox

I have Login.png in same folder , when I execute it I get only image without a checkbox. Please help
Darryl Burke

Joined: May 03, 2008
Posts: 5115

The usual checkbox square *is* its Icon. Once you set a custom Icon, you lose it.

My Toggle Button Icons may help.

luck, db
There are no new questions, but there may be new answers.
I agree. Here's the link: http://aspose.com/file-tools
subject: JCheckBox doesn't come with image
It's not a secret anymore!