2 Topics
|
|
Please take a look in my code as below: Vector<Vector<String>> AllSubjects = new Vector<>() ; // PROBLEM IS HERE if ((AllSubjects = EMSSubjectDAO.SelectAllSubjectsByCourse(this.ActiveCourse.getCourseID())) != null) { SubjectTableModel = new DefaultTableModel(AllSubjects, SubjectTableHeader); SubjectTable.setModel(SubjectTableModel); //this.SubjectTable = new JTable(AllSubjects, SubjectTableHeader) ; } On the `// PROBLEM IS HERE` line, if I init `Vector<Vector<String>> … |
|
I understood (or I thought I understood) that a constructor has the name as the class. Then why do I get a "membernames cannot have the same name as their enclosing type here": namespace p0080 { class p0050Access:fwSQL { void p0050Access() { this.cConnString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=v:\\data\\p0050\\p0050.accdb"; } } } |
The End.