Search code examples
imagelistjava-memidplcdui

j2me how to put image into List?


I have a menu as a class which extends List. There's a native method append(String txt, Image image) which adds a new menu item. The thing is that I want to append a 100% width image as one menu item in the very beginning but if I do this:

append("", image);

it sets the image size as small as the other's. How can I set its width 100% or at least the size of the image?


Solution

  • Unfortunately, there are no documented controls over how list items are drawn. Drawing of the list items is very dependent on the implementation.