• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JCheckBox doesn't come with image

 
Gaurav Gambhir
Ranch Hand
Posts: 256
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5115
11
Java Netbeans IDE Opera
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The usual checkbox square *is* its Icon. Once you set a custom Icon, you lose it.

My Toggle Button Icons may help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic