internal_state = STATUS;
Image[] unselectedImages = new Image[] { Contents.displayImage("offline"), Contents.displayImage("online"), Contents.displayImage("away"), Contents.displayImage("busy")/*, Contents.displayImage("unsubscribed")*/ };
//status_list = new ChoiceGroup(Contents.choose_status, ChoiceGroup.EXCLUSIVE, Contents.mystring_presence, image);
status_list = new ButtonGroup();
for (int k = 0; k < Contents.mystring_presence.length; k++) {
RadioButton rb = new RadioButton(Contents.mystring_presence[k], unselectedImages[k]);
Style s = rb.getStyle();
s.setMargin(0, 0, 0, 0);
rb.setPressedIcon(unselectedImages[k].scaled( (int) (unselectedImages[k].getWidth()* 0.8),
(int)(unselectedImages[k].getHeight() *0.8) ));
rb.setAlignment(Label.LEFT);
rb.setTextPosition(Label.RIGHT);
s.setBgTransparency(70);
status_list.add(rb);
status_form.addComponent(rb);
if (Contents.mystring_presence[k].equals(Datas.jid.getPresence())) {
status_list.setSelected(k);