The moose likes Java Micro Edition and the fly likes Choice Group fit policy Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "Choice Group fit policy" Watch "Choice Group fit policy" New topic
Author

Choice Group fit policy

Vassili Vladimir
Ranch Hand

Joined: Mar 08, 2007
Posts: 1578
Hello,

I am using the following code:



The first choice appears like this on my mobile:

aaaaaaaaaaaaa...

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?

Thanks,

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."
 
 
subject: Choice Group fit policy
 
Threads others viewed
getSelectedIndex() question
ChoiceGroup getSelectedIndex() returns -1
IllegalAccessException
How to add list to a form
ItemStateListener & Interaction between two choicegroups
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture