Hi Jide friends,
I want to change the alignment of my numeric data in a propertypane generally to left align.
Is this possible?
I have the following code (copied from JIDE Demo)
SimpleProperty prop = new SimpleProperty("Double", "The row is intended to show how to create a cell to input a double.", Double.class);
pane.getPropertyList().add(prop);
CellEditorManager.registerEditor(Double.class, new CellEditorFactory()
@Override
public CellEditor create()
{
DoubleCellEditor editor = new DoubleCellEditor();
DecimalFormat format = new DecimalFormat();
format.setMinimumFractionDigits(2);
format.setMaximumFractionDigits(10);
DoubleConverter editorConverter = new DoubleConverter(format);
editor.setConverter(editorConverter);
return editor;
}
});
Thanks
Norbert