• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

KeyPressed Method for High Level GUI

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic