Sunil,
Did you go through
this tutorial on using file choosers?
What have you got so far, and where are you stuck?
Also help me how can i read the excel or csv file and insert the data into the database table.
Again,
What have you got so far, and where are you stuck?
http://faq.javaranch.com/java/UseOneThreadPerQuestion I suggest you start a different
thread for this question.
Check out the
various options available on reading different file types.