Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

image actions

 
Shun-Luoi Fong
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to write an applet that is a game of poker. I would like to have it so the user see's images (.gif) of their five cards and can choose what cards to discard by clicking on each image with their mouse. I tried putting the images on buttons, but the image doesn't stretch to the edge of the button. Is there a way to make an image clickable where the user sees only the image, not an image on top of a button?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic