Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Hello Java

  1. #1
    Join Date
    Jun 2012
    Thanked 1 Time in 1 Post

    Default Hello Java

    Hey JavaWorld!!

    Trying to determine if it is even possible to have a JTextfield remember a userinput. For example, my wife uses my program and she is tried of typing the same repetitive data, and she would like to know as I would is it at all possible to have like an Auto Fill option in the field itself?For instance, after she enters the data in she can press the first letter of a word she has already typed, and she then get click it and have it auto filled in. Or does anyone have any other practical solutions?

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Eastern Florida
    Thanked 2,273 Times in 2,244 Posts

    Default Re: Hello Java

    have a JTextfield remember a userinput.
    One way would be to write the data to a disk file. When the program starts, it could read the disk file and fill in the textfield. The Properties class could be used.

    Don't know about an AutoFill / "guess what the input could be" feature. Try asking Google.
    If you don't understand my answer, don't ignore it, ask a question.