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?
soham.m17
0
Newbie Poster
Recommended Answers
Jump to PostLook at MouseListener and MouseMotionListener.
Check if a mouse button has been pressed, and where the cursor is.
Jump to PostYes, you can use your image to make an ImageIcon and put that in your JLabel. Documentation is in the usual places.
All 5 Replies
hfx642
soham.m17
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
soham.m17
0
Newbie Poster
soham.m17
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.