I want to add a selectable image to a PadDraw() of a JFrame container.
So how can I do it?
I've got a idea that it can be done by JLabel, but I think it's not selectable. So, how can I add that?
Answered by hfx642 164 in a post from
Jump to Post
Look at MouseListener and MouseMotionListener.
Check if a mouse button has been pressed, and where the cursor is.
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.