wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 4522
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JCheckBox doesn't come with image
 
Similar Threads
checkbox problem
Display image in a BorderLayout
jpeg in a Jpanel
Checkbox using Swing
JCheckBox behaviour on JDK1.5