This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
Hi fellow programmers, I'm trying to figure if there is an easy way to add copy & paste with the system clipboard to my Java application, more concrete to a JEditorFrame in a JInternalFrame? Typically users would copy text written in Word and paste it into my application for ease. From what I've read it's not possible to get simple markup along (like bold, italics etc), I don't suppose this have changed? (the JEditorFrame is used for HTML). I'm grateful for all help and hints. Thomas
posted 15 years ago
I found a solution to this problem which works well with my JEditorPane and that is using these actions: cut-to-clipboard copy-to-clipboard paste-from-clipboard Which is among the 83 actions I get when I asked my JEditorPane which actions it supported when I had contenttype set to "text/html". A more general solution would be better so if anyone knows of another way, please speak out. More details are available if someone needs it. Regards, Thomas