Hi folks, I have a display only field in a form that id like to be able to associate some formatting with, along the lines of SimpleDate format.
Im sure theres an accepted way of doing this that Imm not getting just yet!
So, in the code beneath, Id like the displayed string associated with the "timestamp" property to be formattable.
Any hints?
Thanks
Alan
Code:protected JComponent createFormControl() { TableFormBuilder formBuilder = new TableFormBuilder(getFormModel()); formBuilder.add("tagId")[1].setEnabled(false); formBuilder.add("timestamp")[1].setEnabled(false); formBuilder.row(); formBuilder.addTextArea("tagEvent.description"); return formBuilder.getForm(); }


Reply With Quote