Thread View: borland.public.jbuilder.java.swing
1 messages
1 total messages
Started by Vladimir
Wed, 12 May 2004 13:43
JFormattedTextField and DecimalFormat
Author: Vladimir
Date: Wed, 12 May 2004 13:43
Date: Wed, 12 May 2004 13:43
15 lines
1470 bytes
1470 bytes
I having problems with JFormattedTextField. The field behaves odd with DecimalFormat. The values doesn't the I'm expecting: 1. If I input the value 1.12 the field has a 1.1199999999999 or something like 2. When I set the allowsInvalid=false in NumberFormatter the field doesn't allow me to empty it by selection of all the text and press on delete or backspace key 3. If the mask for the field set to "#,##0.0# %,-#,##0.0# %" the field doesn't allow to insert any digit if it doesn't initialized before with any value e.g. has a null initial value. The debug through the SUN code not possible - can't see local variables. Please, Help! Vladimir
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads