• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How can I catch the CTRL_C or CTRL_V event

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear everyone.
How can I catch the Ctrl_C or Ctrl_V event in the StyledText widget.
Which event listener should I use. KeyListener or anyone else.
Thanks.
 
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by yu yong:
How can I catch the Ctrl_C or Ctrl_V event in the StyledText widget.
Which event listener should I use. KeyListener or anyone else.



Hm, sorry for my ignorance, but what is a StyledText widget? If it's part of the Swing standard jcomponents, then your best bet may be to use Key Bindings. There's a decent tutorial on this at the Sun Java tutorials. HTH.
 
yu yong
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I dont describe my question in detail.
My project is a rcp project besides swt widgets. All the swt widgets should be run on the a viewpart ui or a dialog widget which belong among the rcp.
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you're running from the command line, there may be some issues, but here is a link that may help.

http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/msg27323.html
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic