In this JYPropertyTable example the property HorizontalAlignment is a regular int value. For keeping your app user friendly it's helpful to let the user choose from a set of meaningful terms instead of directly editing meaningless integer values. We solve the issue with a customized JYComboBoxTableCellEditor and a customized ComboBoxModel, which makes use of an enumeration for valid alignment values.

All relevant lines are highlighted. Press the "Run..." button to start the demo.