-1

I am totally new to Java and I am working on my assignment that requires to take create a jframe and name the title using the excel cells. Moreover, I do not know how to import the Excel data into my java as well. Thank you for the help. :)

public NewJFrame_1() {
    initComponents();
    Search.setVisible(true);
    this.setTitle(getTitleFromDB());
// which i want to return with the excel cells' info
private String getTitleFromDB() {
    return "ABC Company";
P.Patrick
  • 3
  • 1
  • `I do not know how to import the Excel data into my java as well.` - well you could ask your teacher since it is part of an assignment. Or you can search the web maybe keywords like: "import excel into java". The web is a great source of information, take advantage of it. – camickr Sep 04 '15 at 14:44

1 Answers1

0

You should use Apache POI - the Java API for Microsoft Documents to read the excel file.

Check this tutorial.

Bruno Caceiro
  • 7,035
  • 1
  • 26
  • 45