• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using JFileChooser

 
sunil oza
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In my application i want to use a JFileChooser to select the file from a particular location. the file can be either a .xls or .csv file.
How can i display the selected file path in a textfield.
Also help me how can i read the excel or csv file and insert the data into the database table.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic