Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2005

Tip: Looking for answers? Try searching our database.

JFormattedTextField editing problem

Thread view: 
Mucca Barucca - 16 May 2005 01:52 GMT
Sorry for the newbie question.
I have a JFormattedTextField, created like this:

    ftf = new JFormattedTextField(new Double(value));

When I try to edit it's value, all numbers after the comma disappear.
They come back when the textfield lose focus. I already tried some
alchemy with custom formatters, but this only seem to change the format
when not editing. Thanks in advance, Mucca
Fred L. Kleinschmidt - 16 May 2005 15:44 GMT
> Sorry for the newbie question.
> I have a JFormattedTextField, created like this:
>
>         ftf = new JFormattedTextField(new Double(value));
>
> When I try to edit it's value, all numbers after the comma disappear.

Comma? What comma?

> They come back when the textfield lose focus. I already tried some
> alchemy with custom formatters, but this only seem to change the format
> when not editing. Thanks in advance, Mucca

Signature

Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94  (206)544-5225
#! rnews 817
Xref: xyzzy rec.motorcycles.dirt:475360
Newsgroups: rec.motorcycles.dirt
Path: xyzzy!nntp
From: Jerry Puckett <jerry.a.puckett@boeing.deletethis.com>
Subject: Re: Idustry Insider Alert!
X-Nntp-Posting-Host: pc285835.mw.nos.boeing.com
Content-Type: text/plain; charset=us-ascii
Message-ID: <4288B2CB.94C2F2C5@boeing.deletethis.com>
Sender: nntp@news.boeing.com (Boeing NNTP News Access)
Content-Transfer-Encoding: 7bit
Organization: The Boeing Company
X-Accept-Language: en
References: <Pine.BSF.4.33.0505160959120.62232-100000@alaska.magpage.com>
Mime-Version: 1.0
Date: Mon, 16 May 2005 14:48:43 GMT
X-Mailer: Mozilla 4.79 [en]C-CCK-MCD Boeing Kit  (Windows NT 5.0; U)

Craig Faison wrote:

>
> Congratulations to the RMDer who is the new associate editor for the
> American Motorcyclist Magazine.

I give up - who?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.