Format
-backed StringValue
. Has static defaults for Date and Number which use the locale-dependent default Format
s as returned from xxFormat.getInstance(). This class is intended to ease the handling of formatted cell content. F.i. to show a list of Date
s in the default Locale
's FULL version and right align the text:
StringValue stringValue = new FormatStringValue( DateFormat.getInstance(DateFormat.FULL)); list.setCellRenderer( new DefaultListRenderer(stringValue, JLabel.RIGHT);
PENDING: need to update on Locale change? How to detect? When?
@author Jeanette Winzenburg
|
|
|
|
|
|
|
|