• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

KeyPressed Method for High Level GUI

 
Maddi Ranjan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Please give me a solution how I can fire an event when user pressed CLEAR button, from a screen the screen not be a canvas it is a form which contain some text box. I am not able to fire any event on pressing clear button from this screen... If any one know this please help me as soon as possible it is very very urgent

Thanks & Regards
Maddi

There is some one who control us is it true?
 
James Hodgkiss
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might be able to detect it with the ItemStateListener API, but it might not work on all phones...

Depending on what exactly you are wanting to detect, maybe you could have a seperate monitor thread that checks textField.getString() every, say, 250 milliseconds to see if the TextField's String has been shortened or cleared entirely. But having said that, I'm sure if this would work ok if the TextField maximises to full screen when it is being edited...

...but just some ideas anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic