public void add(final String key, final TextProperty<T> tp) {
add(key, tp, new PropertyEditor<T>() {
public JComponent getComponent(final T object, Property<T> property) {
final JLabel result = new JLabel();
tp.addListener(new Refreshable() {;
public void refresh() {
result.setText(tp.getText(object));
}
});
return result;