Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 7th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 4  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. how to get a field press event in blackberry [closed]
  2. protected boolean keyDown(int keycode, int time)
  3.        
  4. public ButtonField btn = new ButtonField("Hello");
  5.  protected boolean navigationClick(int status, int time)
  6.  {
  7.      Field f1 = getFieldWithFocus().getLeafFieldwithFocus()
  8.      if(f1 == btn)
  9.      {
  10.         <Perform your business logics>
  11.      }