J2ME Insert a list element into a new form TextField
I want to insert an element of a list into one new form's Textfield and change its value. Is it possibe? If not, i开发者_如何学Gos it possible to change an element of a list at all by selecting it and type a new value?
Thanks!
If I correctly understand you, you are looking for a way to manipulate javax.microedition.lcdui.List. In order to "edit" value you need to use getSelectedIndex() (list option selected by user for editing) to getString(int elementNum).
You can then display this in TextField for editing.
Before "adding" to list you need to delete old element delete(int elementNum) and then you can insert in this position new value insert(int elementNum, String stringPart, Image imagePart)
精彩评论