This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Choice Group fit policy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Choice Group fit policy" Watch "Choice Group fit policy" New topic

Choice Group fit policy

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1585

I am using the following code:

The first choice appears like this on my mobile:


So that the whole content does not appear! Why is that? I have used the fit policy to make it wrap but it's not! What must I do?


Vassili ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Walter Gabrielsen Iii
Ranch Hand

Joined: Apr 09, 2011
Posts: 158
I ran your code through the Java ME SDK 3.0, and it wrapped in the emulator but it took three lines.

The Implementation may limit the maximum number of lines that it will actually present.

Perhaps your phone scrolls the text in ChoiceGroup horizontally when it is selected instead of wrapping it? It may be hard to tell with the characters all being "a."
I agree. Here's the link:
subject: Choice Group fit policy
jQuery in Action, 3rd edition