So I'm trying to make this program that allows the user to tag photos using java (kinda like Facebook tagging). I have already done loading the image, and making mouselistener when the user clicks an area of the image.
How do I make a JTextField appear when the user clicks a certain area of the photo?
I'm thinking that the JTextField can somewhat be the box where the user can enter his/her name as a tag for the photo.
Also, where do you think I should put the JTextField code? In main?