• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get image on a button using applet

 
Sharath Chandra Nath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
im trying to get image on the button so that i can perform action listener for the particular image.. but im unable to get it.
can you please semd me the complete code how to put image on a button.
Please do it only in awt with out using swing components
Thanks and regards
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some searching would have produced this topic... in which I gave code for a question suprisingly similiar to the one you asked...
http://www.javaranch.com/ubb/Forum2/HTML/000865.html

-Nate
 
Did you just should on me? You should read this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!