JComponent () { final class PropertiesCharsetValue implements Value<Charset> { @Override public void commit() {} @Override public Charset get() { return myPropsCharset; } @Override public void set(Charset value) { myPropsCharset = adjustChosenValue(null, value); } } final String nullTextValue = IdeBundle.message("encoding.name.properties.default", StandardCharsets.ISO_8859_1.displayName()); JComponent tablePanel = super.createComponent(); Dimension size = tablePanel.getPreferredSize(); tablePanel.setPreferredSize(new Dimension(400, size.height)); return ui.createContent(tablePanel, createActionPanel(new PerFileConfigurableComboBoxAction(new PropertiesCharsetValue(), null, nullTextValue))); }