Bug 55647 - FloatCellRenderer registered for Double in JTable
Summary: FloatCellRenderer registered for Double in JTable
Status: UNCONFIRMED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: unspecified
: P3 trivial
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-11 15:22 UTC by Claudio
Modified: 2012-12-11 15:22 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Claudio 2012-12-11 15:22:50 UTC
The code in method createDefaultRenderers() in file javax/swing/JTable.java looks like this

/* line 2741 */ setDefaultRenderer(Double.class, new DoubleCellRenderer());
/* line 2742 */ setDefaultRenderer(Double.class, new FloatCellRenderer());


Effectively, this overrides the default cell renderer for Double values with the FloatCellRenderer instance.

Fix:

setDefaultRenderer(Float.class, new FloatCellRenderer());