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.


>> REGISTER NOW TO START POSTING


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

Results 1 to 3 of 3

Thread: How to create a JTextField that will show history of what I type on it?

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb How to create a JTextField that will show history of what I type on it?

    I'm new in Java and still learning on it. Is there someone could give me a code or tutorial about JTextField that will record and show the history of what I type. Just like a text field in html.

    Im referring to the way browsers will show you past form data when the field names match.

    Is there any way to do it in java.. Please help me guys


  2. #2
    Junior Member
    Join Date
    May 2013
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to create a JTextField that will show history of what I type on it?

    Try this....Java: JTextField and let me know if it works.

    Reverse

  3. #3
    Super Moderator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,102
    Thanks
    169
    Thanked 779 Times in 725 Posts
    Blog Entries
    5

    Default Re: How to create a JTextField that will show history of what I type on it?

    Capture the user input using a listener, store it into a collection or data structure of some kind (and/or save it to a file), as the user types search the array and display that array in a Swing element, such as a JComboBox or popup menu

Similar Threads

  1. How do i show the filename.type instead of the entire file path? It is JavaFX
    By NickiMonaj in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 22nd, 2012, 08:43 AM
  2. [SOLVED] History of previouse input in JTextField
    By learn_java in forum AWT / Java Swing
    Replies: 1
    Last Post: November 7th, 2012, 08:38 AM
  3. Previous Search history for JtextField in swings
    By kumaruri in forum AWT / Java Swing
    Replies: 2
    Last Post: April 18th, 2012, 08:37 PM
  4. can Java create a user define type of classes?
    By LearningJava in forum Java Theory & Questions
    Replies: 5
    Last Post: September 30th, 2011, 10:49 AM
  5. How to create a pointer type of effect for objects
    By zelalem in forum Object Oriented Programming
    Replies: 6
    Last Post: October 20th, 2010, 02:53 AM

Tags for this Thread