Fix [ 1759771 ] Parse exception when you enter ".." in a numeric field
Accepted solution from arboleda
This commit is contained in:
parent
5e02efd9cb
commit
1cde9a356a
|
@ -360,6 +360,11 @@ public final class VNumber extends JComponent
|
||||||
}
|
}
|
||||||
if (value.equals(".") || value.equals(",") || value.equals("-"))
|
if (value.equals(".") || value.equals(",") || value.equals("-"))
|
||||||
value = "0";
|
value = "0";
|
||||||
|
// arboleda - solve bug [ 1759771 ] Parse exception when you enter ".." in a numeric field
|
||||||
|
if (value.equals("..")) {
|
||||||
|
value = "0";
|
||||||
|
m_text.setText(".");
|
||||||
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Number number = m_format.parse(value);
|
Number number = m_format.parse(value);
|
||||||
|
|
Loading…
Reference in New Issue