Posted Wednesday, September 7, 2005 @ 10:52:45
First you need to tell quicktable about how to do the conversion from 1234567 to 1.234.567,00 .This can be done by creating your own implementation of DataMap class. Then assign the DataMap instance to the column using getColumn(1).setDataMap( yourMap); Please refer api of DataMap class, a sample implementation is provided there.
Even though you have handled the display format of the number using the DataMap class, if the column is editable, then users may enter data which does not confirm to your numeric format. If you want to further restrict the users in entering the numbers in your format, then you may want to create an instance of javax.swing.text.Document, which can do the validation and then assign to the column using getColumn(1).setDocument( yourDoc); A sample implementation to validate an IP address can be found in the CustomerOrderDemo.java sample.
If possible, after your have implemented the above, please post the code to this thread, so that it will be helpful for others.