Frage

I set the TextField max size to 20. Its working fine. And i got the warning alert like Field Full when I reach. There is no issues. And there is no any other components in the Form. Only one TextField placed in the Form.

But issue is After that warning alert, I pressed down key or up key. Its focused TextField itself. And then I pressing delete key for deleting characters in the TextField. That time I'm getting the illegalargumentexception. Why this exception occur?

Update:

  TextField searchTxtField = new TextField(); 
  searchTxtField.setMaxSize(20);
  searchTxtField.addDataChangeListener(new DataChangedListener() {
   public void dataChanged(int type, int index) {
        .....
        .....
      }
    });
War es hilfreich?

Lösung

There was an illegal argument exception issue with the native blackberry port. I think it should be resolved in the current version in SVN. If you still get this exception with the latest SVN code please provide us with a stack trace (from the device log).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top