• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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.
 
Friends help you move. Good friends help you move bodies. This tiny ad will help:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic