hi guys, first time posting here. so i have this menu for a game i am making and the image that i have for the menu background has text and things already loaded onto it.
what would be the best way to have the text clickable? would it be to delete the text and re add it or is there a way to add some sort of action listener that can deal with this in the form that it is currently in. thanks :)
1 Year Ago
Related Article:Best way to add SFX that repeat often?
is a solved Java discussion thread by kedxu that has 3 replies, was last updated 6 months ago and has been tagged with the keywords: sound, effects, how, to, add, best, way, repeat, bullets.
You could use a mouseListener on the component holding the image and get the x,y location of the mouse click and compare it to the location of the text on the image. Use a photo editor to map out the rectangles around the parts you want to be able to click on.