04 noiembrie 2005

Add [...] button to any TableCellEditor

The article published at Javalobby is an iteresting one and helps implementing a nice usability feature.
JTable allows editing with TableCellEditor. Sometimes the table might contain some complex objects, whose editing may not fit it the small area allocated to TableCellEditor. In such case it is good idea to add custom-editor button to TableCellEditor. CustomEditor is a button with icon [...]. On clicking this button, a more sofisticated UI in a dialog will popup. This is very common in PropertySheets.

Try it and enjoy !

Niciun comentariu: