从BlackBerry中的数据库设置ObjectChoiceField值

时间:2011-10-13 12:04:12

标签: blackberry java-me

如何在BlackBerry中的数据库中将值设置为ObjectChoiceField?

1 个答案:

答案 0 :(得分:1)

String[] days={"Mon","Tue","Wed","Thu","Fri","Sat","Sun"};
ObjectChoicdField ocf = new ObjectChoiceField("Days.",days,days.length-1) {
    public void paint(Graphics g) {
        g.setColor(Color.WHITE);
        super.paint(g);     
    }
};
ocf.setChangeListener(this);
add(ocf);