Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » FormattedText not allowing 0 to be entered
FormattedText not allowing 0 to be entered [message #538646] Tue, 08 June 2010 10:12 Go to next message
Geejay is currently offline Geejay
Messages: 160
Registered: February 2010
Senior Member
Is there any way to allow a 0 to be entered in an empty FormattedText (with
a NumericFormatter) ?

Thanks

Greg
Re: FormattedText not allowing 0 to be entered [message #538647 is a reply to message #538646] Tue, 08 June 2010 10:16 Go to previous message
Geejay is currently offline Geejay
Messages: 160
Registered: February 2010
Senior Member
Sorry for the spam.

I figured out this was to do with the mask.

Changing from this: "-########.####" to this: "-########0.####" solved my
problem. It is actually better showing 0's by default anyway.

Greg

"geejay" <gjmcknight@schlagundrahm.ch> wrote in message
news:hul526$ljb$1@build.eclipse.org...
> Is there any way to allow a 0 to be entered in an empty FormattedText
> (with a NumericFormatter) ?
>
> Thanks
>
> Greg
Re: FormattedText not allowing 0 to be entered [message #599734 is a reply to message #538646] Tue, 08 June 2010 10:16 Go to previous message
Geejay is currently offline Geejay
Messages: 160
Registered: February 2010
Senior Member
Sorry for the spam.

I figured out this was to do with the mask.

Changing from this: "-########.####" to this: "-########0.####" solved my
problem. It is actually better showing 0's by default anyway.

Greg

"geejay" <gjmcknight@schlagundrahm.ch> wrote in message
news:hul526$ljb$1@build.eclipse.org...
> Is there any way to allow a 0 to be entered in an empty FormattedText
> (with a NumericFormatter) ?
>
> Thanks
>
> Greg
Previous Topic:FormattedText not allowing 0 to be entered
Next Topic:Textfield-GridEditor not usable when heigher than grid
Goto Forum:
  


Current Time: Sun Sep 21 08:07:53 GMT 2014

Powered by FUDForum. Page generated in 0.02249 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software