Hi,

I want to make a JLAbel clickable. For example if a user click on the jlabel he is directed to some url like www.google.com.

Any help would be appreciated.

Thanks.

Recommended Answers

All 2 Replies

Research deeply on Focus Listeners and mouse Listeners.

check sun oracle.com for tutorials

add a MouseListener to your JLabel. Do what @cretaros said for details

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.