G'day,

One of the features that is lost with this change is the ability to display parameter values using specific formats, e.g. MZmineCore.getIntensityFormat() .getMZFormat() & .getRTFormat().

Would it be possible to add the ability to specify the *display* format in the constructor for DoubleParameter and IntegerParameter?

Regards,
Chris.
Hi all,

I decided to use JTextField instead of JFormattedTextField for NumberParameter. The reason is that JFormattedTextField has some very odd properties:
- value reported by getValue() may be different than the value actually typed in the text box, because it has not been "committed" yet by pressing enter or changing the focus
- listeners are not notified about value change until that value is committed 
- when format is set to e.g. 1 decimal digit ("0.0"), it becomes impossible to enter 2 decimals, which is frustrating for the user

So, I split the NumberParameter into 2: DoubleParameter and IntegerParameter. Both of them use JTextField as an editing component.

Cheers,

Tomas

 
Syngenta Limited, Registered in England No 2710846
Registered Office : Syngenta Limited, European Regional Centre, Priestley Road, Surrey Research Park, Guildford, Surrey, GU2 7YH, United Kingdom



This message may contain confidential information. If you are not the designated recipient, please notify the sender immediately, and delete the original and any copies. Any use of the message by you is prohibited.
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

Reply via email to