//Let the parse file methods analyse the file to get the field values and the field length.
pf.ReadFirstLine(cs.getFileOpen().getSelectedFile());
pf.AnalyseFile(cs.getFileOpen().getSelectedFile());
//Set the db connection for the createtable object
ct = new CreateTable();
ct.setDbCon(cc.getDbCon());
ct.setTableName(cs.getFTableName().getText());
ct.createtable(cc.getDbCon(), pf.getTableLayout(), pf.getFieldLength());
//Create an inserttable object and sets it name.