This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes loading content to clipboard Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "loading content to clipboard" Watch "loading content to clipboard" New topic

loading content to clipboard

nikil shar
Ranch Hand

Joined: May 25, 2008
Posts: 116
hi all,
i have a java app sitting on a solaris box and am using a windows machine to use the application i.e from a web browser. i wanetd to know if there is a way to load any content displayed in the browser to the local windows machines clipboard ??

have looked at the awt package and the "getSystemClipboard" doesnt seem to be working since it returns the solaris boxes clipboard.

thanks in advance.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

You would have to do this using JavaScript since it would have to execute in the client's browser - not Java.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
nikil shar
Ranch Hand

Joined: May 25, 2008
Posts: 116
how would i do that in javascript ?? sorry am not very good with scripting.

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: loading content to clipboard
jQuery in Action, 3rd edition