JTable cell format

Posted on 2005-04-10
Last Modified: 2012-06-22
How can i force a user to enter data in JTable cell in a specific format
e.g: for a date: 04/10/05 or for phone number: 315 265-4200
Question by:komlaaa
    LVL 86

    Accepted Solution

    LVL 92

    Expert Comment

    Use a JFormattedTextField as your table cell editor.
    LVL 92

    Assisted Solution


    Expert Comment

    Search on google news search

    you will find many examples there.

    Author Comment

    >Search on google news search you will find many examples there.
    I know i can search is easy), but i am asking you experts because
    it is not all the examples up there on web that good learning tools.
    If you have already used an example that you find as google example for
    someone one who is still in "tutorial" stage, you gave me instead of referring me to


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now