Article View: borland.public.jbuilder.java.swing
Article #1076JFormattedTextField and DecimalFormat
From: 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
Technical Details
Message-ID:
<40a21c17@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,cc767261a65fb046,start X-Google-Attributes: gid111d45,public From: "Vladimir" <vldpatt@netscape.net> Newsgroups: borland.public.jbuilder.java.swing Subject: JFormattedTextField and DecimalFormat Date: Wed, 12 May 2004 15:43:05 +0200 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 212.25.105.36 Message-ID: <40a21c17@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1084365847 212.25.105.36 (12 May 2004 05:44:07 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail