Drag and drop an URL

V

Vojta

Hello,

can you give an advice please? I learned how to drag and drop an URL from my
web browser to my Java application. But it does not work as I would like.
For example if I drop URL http://java.sun.com/ my application receives
http://java.sun.com/Java Technology where "Java Technology" is not the part
of URL but page title. Is there any way how to receive pure URL without the
page title? I worry that by cutting off everything after the last slash I
can damage some URLs. I use DataFlavor.stringFlavor.

Thank you! Vojta
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,237
Latest member
AvivMNS

Latest Threads

Top