Can I turn images into buttons?
Hey, for my AP Computer Science project I am trying to create a game. I made the background for it in Photoshop and imported the image BUT I have no idea how (if I can at all) to turn the .jpg buttons I made in Photoshop seperately into buttons that I can click on and do things with. It is really annoying me because I can't get the buttons the awt thing provides me with to get in the right spots. Someone PLEASE help me. Thanks, .
You can add an ImageIcon to a JButton as a parameter in one of its constructors. Check the API for JButton, and also ImageIcon.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center