marlichimi / beast-mcmc

Automatically exported from code.google.com/p/beast-mcmc
0 stars 0 forks source link

BEAUti RealNumberField should not throw Exception all the time #419

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
RealNumberField : 
getValue() in FocusEvent throws Exception all the time, when RealNumberField is 
empty, or when input letter or sign (e.g. 1E-2), or even 0 for stedv text 
field. 

The RealNumberField supposes to be only validated after focus is changed to 
other component. It seems focusLost not to act as expected.

Suggest to find correct Event to replace focusLost. 

Original issue reported on code.google.com by dong.w.xie@gmail.com on 13 Oct 2010 at 5:34

GoogleCodeExporter commented 8 years ago
not focusLost problem. It is caused by getValue() in setupChart().

Add constraint: 
if (!(number.equals("") || number.endsWith("e") || number.endsWith("E") || 
number.startsWith("-") || number.endsWith("-"))) {

Original comment by dong.w.xie@gmail.com on 14 Oct 2010 at 2:51