🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #931

JFormattedTextField and DecimalFormat

#931
From: Vladimir
Date: Wed, 12 May 2004 13:35
15 lines
1481 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: <40a21c16@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.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

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,cc767261a65fb046
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:35:00 +0200
Lines: 17
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: <40a21c16@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1084365846 212.25.105.36 (12 May 2004 05:44:06 -0700)
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.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