hi'
i'm building a simple application that contain 30 checkbox but unfortunately the scrolling is failed
here is may code
public class HelloLWUITMidlet extends MIDlet implements ActionListener {
Command mBackCommand;
HttpCon http= new HttpCon();
Form f;
public void startApp() {
Display.init(this);
try {
Resources r = Resources.open("/javaTheme.res");
UIManager.getInstance().setThemeProps(r.getTheme("javaTheme"));
} catch (IOException ioe) {
System.out.println("Couldn't load theme.");
}
Display.init(this);
f = new Form(" ");
for (int i=0; i<130; i++)
{
cb1 = new CheckBox("Daily horoscopes");
f.addComponent(cb1);}
f.setScrollAnimationSpeed(400);
f.setScrollable(true);
f.setScrollableY(true);
f.setScrollableX(false);
f.show();
}
.....

Reply With Quote

