Dec 20, 2005 #1 swaroop Programmer Feb 4, 2001 100 US Hi All, I would like to map my key board so that when I type a char 'a' it should type '\u0C05' in text area the list is as shown 'a' '\u0C05' 'A' '\u0C06' 'i' '\u0C07' 'I' '\u0C08' How should i do it in java swing. Thanks in advance, Swaroop.
Hi All, I would like to map my key board so that when I type a char 'a' it should type '\u0C05' in text area the list is as shown 'a' '\u0C05' 'A' '\u0C06' 'i' '\u0C07' 'I' '\u0C08' How should i do it in java swing. Thanks in advance, Swaroop.
Dec 20, 2005 #2 sedj Programmer Aug 6, 2002 5,610 You need to implement a KeyListener object - and then update the text field as appropriate. See the API : http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/KeyListener.html -------------------------------------------------- Free Java/J2EE Database Connection Pooling Software http://www.primrose.org.uk Upvote 0 Downvote
You need to implement a KeyListener object - and then update the text field as appropriate. See the API : http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/KeyListener.html -------------------------------------------------- Free Java/J2EE Database Connection Pooling Software http://www.primrose.org.uk