how to override existing key event of JTextPane (i.e. ctr-x/c/v) with my own event.its very very important
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   dipal_shah
Posted On:   Thursday, October 11, 2001 10:57 PM

i want to do some work when pressed ctr-c/v/x. but i m using JTextPane,and which already have ctr-x/c/v.so what happens is when i used my own keylistener...to store some data..when ctr-c or x is pressed.and when i retrive it with ctr-v..it gives me both...i mean my own manipulated data.and system data.
now i don't want system data..so what to do????how can i override inbuilt function with my own????or is there any way to do?????thanks a lot....

plz..try to give quick reply...

Re: how to override existing key event of JTextPane (i.e. ctr-x/c/v) with my own event.its very very important

Posted By:   Jonathan_Feakes  
Posted On:   Monday, October 15, 2001 03:29 AM


Don't use a key listener, change the KeyMap see



http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#keymaps

About | Sitemap | Contact