• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add cut and paste to my light weight text editor

 
Henry Addo
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have writing a very light weight text editor and i
want to add cut and paste functionality to it.
To tell the truth i don't have any idea of how to go
about it.Any guidelines on how to do i do it will be much
appreciated. I'm a newbie to java language. Please help me
do it. Thanks

++henry
 
Lionel Badiou
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Henry,

1 - First, text components you use, should support copy/paste facilities by default (check the ctrl+c/ctrl+v keys combination).

2 - If you want to provide copy/paste facilities through buttons/menus, you may try this

Hope that helps,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!