Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display image in specified position

Status
Not open for further replies.

SuperMoonster

Programmer
Aug 11, 2005
59
BR
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
 
Obtain a Graphics2D object from your component, and then use the drawImage() method I guess ...

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
drawImage() is right.
Please use photo software to change your bmp into gif or jpg.
It is easier to display jpg or gif in Java without using outsider library. You may need another library to display bmp.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top