This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 4523
    
    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 using Swing
jpeg in a Jpanel
JCheckBox behaviour on JDK1.5
Display image in a BorderLayout
checkbox problem