3

TextField最大サイズを 20に設定しました。問題なく動作しています。Field Fullそして、到達したときのように警告アラートが表示されました。問題はありません。には他のコンポーネントはありませんForm。に1つだけTextField配置されますForm

しかし、問題は、その警告アラートの後、キーまたはキーを押しました。その焦点TextField自体。そして、 の文字を削除するために削除キーを押しましたTextField。その時、私はillegalargumentexception. なぜこの例外が発生するのですか?

アップデート:

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

1 に答える 1

2

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).

于 2012-01-26T11:56:29.703 に答える