문제

I am working on j2me project and i want to implement the list with search option same like contacts like when we press p then it filters all the contacts start with p. I want to implement same thing on list please help me regarding this problem.

도움이 되었습니까?

해결책 2

Sorry to say that some people devoted my question, but its okay and i have found the answer of my question that is:

in j2me Polish we have Filtered list by that we can add the functionality of searching as

import de.enough.polish.ui.FilteredList;
FilteredList record = null;
this.record = new FilteredList("Records", List.IMPLICIT);


and this list can not implement action listener directly like,

// addCommandListener(record); // error but you can implement command listener as

 record.setCommandListener(this);

Thanks to all.

다른 팁

if you can use lwuit to develop such task , its already implemented and easy to use for multiple purposes .

please check this example (LWUIT)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top