How can I change the size of a CustomItem
inside a form in J2ME? I created a CustomItem
(derived class of javax.microedition.lcdui.CustomItem
) and placed it inside a form (of derived class of javax.microedition.lcdui.Form
). After some event triggers, I want to change the CustomItem
's height and width. How should I change my code?
I got the solution. We should create a new object for the new CustomItem with new properties.Then delete the existing CustomItem from the form and add the new CustomItem inside the form.