Strings and delimeters

HI people,
I am trying to get user input in a table in the form 00:00
with this in mind, the input has to be returned as a string for it to be in that format. Am thinking of using delimeters to seperate the two values and if the user attempts to input int or double an error shoud be displayed.

Am still a newbie in java and so am just trying things out - trial and error you know..
I tried reading the Pattarn and matcher class but i couldnt understand a thing lol!
All i want is to make sure as the user edits the table, the table can only accept inputs in "00:00" format. Apparently the input is time, and thats why i want it that way.

Hi,
Are you using Java GUI or is it a HTML page?.Because ,if you use swings for user entry then we are having "javax.swing.JFormattedTextField" class in java.This class will allow the user to enter in the required format.Inside this "JFormattedTextField",they have internally used Patterns.

@Ramya - am using Netbeans to build my GUI. Already i have a table that is editable and the user can input some data on it. Your idea seems good. With my little knowledge in java i know that if am to use JFormatTextField i have to listen for editing changes or something..
Just shade somelight by a small example that listens to changes and then uses JFormatTextField.

I hope you dont mind my dumbass questions but am just eager to learn to java.

I did alil bit of research on how i can implement the maskFormatter method in a table and this is what i could come up with. BUT i still get some errors.
Could you please tell me exactly where i am making a mistake in my code

I did a lil bit of research on how i can implement the masFormatter method in a JTable and this is what i came up with. BUT i still get some errors in my code.
Couls you please tell me exactly where i am making a mistake in my code??

I did a research on how i can implement masFormatter method in Jtable and came up with the code below THOUGH i still get some errors in my code.
could you please tell me where i could be making a mistake in my code.