This article sows a complete code example on creating a Text Box in j2me. Text box is a very basic UI element j2m2. The main class used is "TextBox" then its constructor takes height and width of the text box with optional pre-loaded text.
Given code is perfect as per j2me code standards and conventions. It runs and display text box as described in this article. A snapshot is given of code example for better understanding of reader.
--Kalki 09:33, 29 September 2009 (UTC)