this(Mode.OPEN);
}
public FileBrowserWithCharsetTest(Mode mode) {
super(mode);
TerraFileBrowserSheetSkin skin = (TerraFileBrowserSheetSkin)getSkin();
BoxPane box = new BoxPane();
box.getStyles().put("verticalAlignment", VerticalAlignment.CENTER);
box.add(new Label("Character set:"));
Charset defaultCS = Charset.defaultCharset();
choices.add("US-ASCII");
choices.add(defaultCS.name());
choices.add("ISO-8859-1");
if (!"UTF-8".equals(defaultCS.name()))
choices.add("UTF-8");
lb.setListData(choices);
lb.setSelectedIndex(1);
box.add(lb);
skin.addComponent(box);
}