hbox.add(new JLabel(resources.getStringValue("asciiOptionCharset")));
hbox.add(Box.createHorizontalGlue());
hbox.add(cbxCharset = new JComboBox());
cbxCharset.addItem(resources.getStringValue("asciiOptionNoCharset"));
SortedMap map = Charset.availableCharsets();
for (Iterator it = map.keySet().iterator(); it.hasNext();) {
cbxCharset.addItem(it.next());
}
// TODO: Use preferences to set a default charset if desired by user
cbxCharset.setSelectedIndex(0); // None by default
box.add(hbox);