aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JCheckBox doesn Watch "JCheckBox doesn New topic
Author

JCheckBox doesn't come with image

Gaurav Gambhir
Ranch Hand

Joined: Mar 04, 2006
Posts: 254
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
Bartender

Joined: May 03, 2008
Posts: 4642
    
    5

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.
 
 
subject: JCheckBox doesn't come with image