Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Archived:LCDUI CustomItem content remains blank when appended to a Form before setting the Form as current Displayable (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Created: User:Technical writer 1 (14 Sep 2007)
Last edited: hamishwillee (13 Aug 2013)



A Form containing a CustomItem object is set to be the current Displayable. CustomItem’s content remains blank although it should be visible.


The CustomItem.paint() method is not called when the Form becomes current the Displayable. However, the method will be called when any other paint event will be triggered after the Form gets displayed.

How to reproduce

  Form form = new Form("CustomItem");
MyCustomItem myItem = new MyCustomItem();


There is currently no solution. However, the issue can be avoided if Display.getDisplay() is called at least once during the MIDlet’s lifecycle before creating the CustomItem object, e.g. in the beginning of the MIDlet’s constructor.

  Form form = new Form("CustomItem");
MyCustomItem myItem = new MyCustomItem();
This page was last modified on 13 August 2013, at 06:03.
22 page views in the last 30 days.