O'Reilly logo

LWUIT 1.1 for Java ME Developers by Biswajit Sarkar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CoordinateLayout

The CoordinateLayout is actually a kind of supplementary class that requires absolute placement coordinates to be pre-specified by some other class. The following snippet shows the code that we will use to see how coordinate layout works.

/**Start of CoordinateLayout statements - first set**/
CoordinateLayoutworkingCoordinateLayout testLayout = new CoordinateLayout(demoForm. getWidth(), demoForm.getHeight());
demoForm.setLayout(testLayout);
demoForm.setTitle("CoordinateLayout I");
//tLabel.setY(180);
//imLabel.setX(50);
//imLabel.setY(50);
demoForm.addComponent(tLabel);
demoForm.addComponent(imLabel);
demoForm.addComponent(bothLabel);
/**End of CoordinateLayout statements - first set**/

The constructor for CoordinateLayout takes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required