Hello,
I am creating checkbox to open RichText, and somehow my application hang up when I checked the checkbox.
Would someone please give me an advice what is wrong in my code?
private CheckboxField text = new CheckboxField("open text", false);
text.setChangeListener(this);
screen.add(text);
screen.add(new SeparatorField());
public void fieldChanged(Field field, int context)
{
if(field == text)
{
LabelField title = new LabelField("Sample", LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
setTitle(title);
add(new RichTextField(""));
}
}
Thanks for in advance