Results 1 to 2 of 2
  1. #1
    D.Calladine is offline Member
    Join Date
    Nov 2010
    Posts
    11
    Rep Power
    0

    Default JFormattedTextField, Document Filter, Document Listener

    He everyone I have been looking around for a long time to answer this quesiton.
    I have looked at a lot of website and fourms , the API and Oracle tutorials but still to no avail
    My question is :

    I'm looking for a way to change something that is entered into a textfield
    in a lot of point of sale terminals when you enter an amount of cash it places the . for you.
    i also want to do this
    i want it start in the text field as 0.00
    if the user enters 7 it will become 0.07
    if the use next enters 6 it will become 0.76
    the if they next enter 3 it will become 7.63
    and so on and so forth

    any help or coding on this would be very helpful it is the last piece of the puzzle for my piece of software

    Thank you in advance

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,236
    Rep Power
    19

    Default Re: JFormattedTextField, Document Filter, Document Listener

    Moved from New to Java.

    Might be possible with a DocumentFilter and some fancy coding. Take a try and post your best efforts, in the form of a SSCCE (Short, Self Contained, Compilable and Executable) example.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. How to Convert Excel document to word document?
    By sudheer.v47 in forum Advanced Java
    Replies: 3
    Last Post: 05-09-2014, 09:26 AM
  2. How to set Document Filter
    By nimishalex in forum New To Java
    Replies: 2
    Last Post: 12-27-2010, 01:08 PM
  3. Building a document from a DOM
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-03-2008, 09:22 AM
  4. Parsed Document
    By nick211001 in forum New To Java
    Replies: 1
    Last Post: 07-29-2007, 01:53 AM
  5. add a xml document
    By Jack in forum XML
    Replies: 2
    Last Post: 07-04-2007, 09:21 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •