Revision 42079 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.ui/src/main/java/org/gvsig/gui/beans/swing/cellrenderers/NumberTableCellRenderer.java
NumberTableCellRenderer.java | ||
---|---|---|
86 | 86 |
|
87 | 87 |
JPanel content = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0)); |
88 | 88 |
content.setBackground(table.getBackground()); |
89 |
|
|
89 |
|
|
90 | 90 |
int decimals = 0; |
91 | 91 |
if( this.acceptsDoubles ) { |
92 | 92 |
decimals = 3; |
93 |
}
|
|
94 |
txt = new JNumberSpinner("",6, 0.0,80.0,1.0,decimals);
|
|
93 |
} |
|
94 |
txt = new JNumberSpinner(0.0,6, 0.0,80.0,1.0,decimals);
|
|
95 | 95 |
// Validator valid = acceptsDoubles ? ValidatingTextField.DOUBLE_VALIDATOR : ValidatingTextField.INTEGER_VALIDATOR; |
96 | 96 |
// txt = new JIncrementalNumberField("", 6,valid, ValidatingTextField.NUMBER_CLEANER, 0, 80, 1); |
97 | 97 |
// if (acceptsDoubles) { |
Also available in: Unified diff