//#style mainForm
Form frmMain = new Form("Form");
//#style leftItem
frmMain.append("Left");
//#style rightItem
frmMain.append("Right");
//#style defaultItem
frmMain.append("- I am huypv");
//#style defaultItem
frmMain.append("- I love codjng :x");
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF_uhGCaKDnDjDrAKcBmKSu0YoAuTs10upUQcCUyOke3NU4P7MKUi9TMdMn-PytT_eSv1vb62ojSm4Mun8JJcJh0pdVjEUB6l1-YEfT1lu9Y3tIuaugfoNs9EH7bWKzw53Qa627_haQBKt/s1600/j2me-polish-left-right-style.PNG) |
Style CSS - J2ME Polish - Left, Right Item |
File polish.css
title {
background-color: #ff00ff;
padding: 10;
layout: center | horizontal-expand;
font-style: bold;
}
.mainForm {
view-type: midp2;
padding-vertical: 10;
}
.leftItem {
font-color: red;
}
.rightItem {
layout: right | horizontal-expand;
font-color: blue;
}
.defaultItem {
layout: horizontal-expand;
margin-bottom: 5;
}