0
我已經使用LWUIT創建列表。
但顯示我的項目與索引。
像刪除lwuit列表中的索引
- 項目-1
- 項目-2
- 項目-3
我想刪除左側指數1,2,3我該怎麼辦呢?
代碼:
class mainForm extends Form implements ActionListener{
List list;
String newkey = "";
final String COMPANY[] = {"AIRCEL", "AIRTEL", "BPL", "BSNL", "IDEA", "RELIANCE", "TATA DOCOMO", "TATA INDICOM", "UNINOR", "VIRGIN", "VIDEOCON", "VODAFONE", "AIRCEL1", "AIRTEL2", "BPL1", "BSNL1", "IDEA1", "RELIANCE1", "TATA DOCOMO1", "TATA INDICOM1", "UNINOR1", "VIRGIN1", "VIDEOCON1"};
final int CO_LENGTH = COMPANY.length;
mainForm() {
super("Main Form");
setLayout(new BoxLayout(BoxLayout.Y_AXIS));
list = new List(COMPANY);
list.addActionListener(this);
list.setPreferredW(getWidth());
addComponent(list);
}
}
謝謝。
您可以發佈相關代碼 – 2011-05-17 13:28:24
我已發佈我的代碼。 – Nirav 2011-05-17 13:39:52