我用的单选的
ChoiceGroup cg=new ChoiceGroup("111111", ChoiceGroup.EXCLUSIVE);
cg.append("a", null);
cg.append("b", null);
cg.append("c", null);
cg.append("d", null);
怎样返回选中了那个啊?我用的cg.getSelectedIndex()==0,但是好像一直等于0,选别的也是0
大家帮帮忙
因为我要判断他选的对不对。
ChoiceGroup cg=new ChoiceGroup("111111", ChoiceGroup.EXCLUSIVE);
cg.append("a", null);
cg.append("b", null);
cg.append("c", null);
cg.append("d", null);
怎样返回选中了那个啊?我用的cg.getSelectedIndex()==0,但是好像一直等于0,选别的也是0
大家帮帮忙
因为我要判断他选的对不对。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货