Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

First Letter in Uppercase with a KeyListener  RSS feed

 
Damithri Warnakulasuriya
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I want to make first letter of each word to be in Uppercase. So now I'm using a a tokenizer and I tokenized using a space (" ") character.
But the problem is if someone types something and presses enter key it goes to the next line but the first letter is still be in lower case as it is not tokenzed.

How can I handle this situation.

Please help me

Thank you
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forget KeyListener.
What you need is a document listener.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!