Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Display image in specified position  RSS feed

 
Leticia Barbalho
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone

I wanna know how I can display an image at an specified (x,y) position. I'm totally lost in how doing it.

I have a bmp image of an arrow (which I could convert into bitmap or gif if needed) and I want to display it in an specified place. I have no idea how to do it.

Can someone show me the beginnings?

thanks
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should look into extending one of the Component subclasses and then overriding its paint method. You can then use one of the methods of the Graphics class to draw your image.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!