Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

how applet getSystemClipboard()

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello every body can some one please tell me how can I make my textfield work for copy and paste
as i am using this code but it says
SecurityException at the below line of code.
Clipboard systemClipBoard = Toolkit.getDefaultToolkit().getSystemClipboard();
is there any way out with out using signed applets
thanks byeee
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you trying to develop a solution where the clipboard contents would need to be available to applications outside of the Applet?
 
sunitha singh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
what I am looking is ctrl+v should work. I mean when i copy some thing from notepad and say ctrl+v on my applet textArea then the content should be pasted.
I found the below link but it throws exception when I tested it.
http://www.eli.sdsu.edu/courses/fall98/cs596/notes/appletExamples/textCutPaste/

Please tell me how can I do it
thanks in advance
[ September 25, 2002: Message edited by: sunitha singh ]
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the user presses Ctrl-C or Ctrl-V, copying and pasting should work without your coding for it.
 
sunitha singh
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks......
Ya its working.
 
Is this the real life? Is this just fantasy? Is this a tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic