final JCheckBox withNotationCheckbox = new NonFocusableCheckBox("Use 'with...' notation");
withNotationCheckbox.setMnemonic('w');
withNotationCheckbox.setToolTipText("Generate builder methods that start with 'with', for example: builder.withName(String name)");
withNotationCheckbox.setSelected(propertiesComponent.isTrueValue(PROP_WITHNOTATION));
withNotationCheckbox.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
propertiesComponent.setValue(PROP_WITHNOTATION, Boolean.toString(withNotationCheckbox.isSelected()));
}
});