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";
You should use Apache POI - the Java API for Microsoft Documents to read the excel file.
Check this tutorial.