pass = new TextField("Password:", j.getPass(), 40, 0);
pass.setConstraints(TextField.PASSWORD);
status = new TextField("Status text:", j.getStatus(), 40, 0);
String[] s = {"Yes"};
ssl = new ChoiceGroup("SSL?", ChoiceGroup.MULTIPLE, s, null);
ssl.setSelectedIndex(0, j.getSsl()!=0);
auto = new ChoiceGroup("Auto connect", ChoiceGroup.MULTIPLE, s, null);
auto.setSelectedIndex(0, j.getAuto()!=0);
String[] empty = {};
sortBy = new ChoiceGroup("Sort by list", ChoiceGroup.EXCLUSIVE, empty, null);
sortBy.append("Status, Name", null);
sortBy.append("Name", null);
sortBy.setSelectedIndex(0, j.getSortBy()==0);
sortBy.setSelectedIndex(1, j.getSortBy()!=0);
statusID = new ChoiceGroup("Initial status", ChoiceGroup.EXCLUSIVE, empty, null);
statusID.append("Online", null);
statusID.append("Away", null);
statusID.append("XA", null);
statusID.append("Busy", null);
statusID.setSelectedIndex(0, j.getStatusID()==0);
statusID.setSelectedIndex(1, j.getStatusID()==1);
statusID.setSelectedIndex(2, j.getStatusID()==2);
statusID.setSelectedIndex(3, j.getStatusID()==3);
offline = new ChoiceGroup("Show offline users?", ChoiceGroup.MULTIPLE, s, null);
offline.setSelectedIndex(0, j.getOffline()!=0);
isGoogle = new ChoiceGroup("GTalk features?", ChoiceGroup.MULTIPLE, s, null);
isGoogle.setSelectedIndex(0, j.getIsGoogle()!=0);
lockStatus = new ChoiceGroup("GTalk - disable status change by other clients?", ChoiceGroup.MULTIPLE, s, null);
lockStatus.setSelectedIndex(0, j.getLockStatus()!=0);
lockStatusStr = new ChoiceGroup("GTalk - set status text after login?", ChoiceGroup.MULTIPLE, s, null);
lockStatusStr.setSelectedIndex(0, j.getLockStatusStr()!=0);
autoReconnect = new ChoiceGroup("Enable auto reconnect?", ChoiceGroup.MULTIPLE, s, null);
autoReconnect.setSelectedIndex(0, j.getAutoReconnect()!=0);
smiles = new ChoiceGroup("Show smiles?", ChoiceGroup.MULTIPLE, s, null);
smiles.setSelectedIndex(0, j.getSmiles()!=0);
useMyServer = new ChoiceGroup("GTalk - Use alternative server for Google authorization", ChoiceGroup.MULTIPLE, s, null);
useMyServer.setSelectedIndex(0, j.getUseMyServer()!=0);
volume = new Gauge("Set initial volume", true, 10, j.getVolume()/10);
f.append(name);