Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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.
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic