res.addComponent(new MyLabel("Server address *"));
res.addComponent(server);
res.addComponent(new MyLabel("Port"));
res.addComponent(port);
res.addComponent(new MyLabel("Connection type"));
ssl_list = new ButtonGroup();
for (int k = 0; k < Contents.sslChoices.length; k++) {
RadioButton rb = new RadioButton(Contents.sslChoices[k]);
Style s = rb.getStyle();
s.setMargin(0, 0, 0, 0);
s.setBgTransparency(0);
ssl_list.add(rb);
res.addComponent(rb);
}
if (Datas.isSSL)
ssl_list.setSelected(1);
else if (Datas.isHTTP)
ssl_list.setSelected(2);
else
ssl_list.setSelected(0);
res.addComponent(new MyLabel("Your Avatar"));
avatar_list = new ButtonGroup(); //choose AVATAR
String[] img = new String [] {"icon", "jmcAvatar"}; //spostare in contents
for (int k = 0; k < 2; k++) {
RadioButton rb = new RadioButton("avatar "+(k+1), Contents.displayImage(img[k]).scaled(16, 16));
Style s = rb.getStyle();
s.setMargin(0, 0, 0, 0);