I'm working on a Bibliography Generator Application and I want the values from my JTable to display in a textarea in Hardvard Referencing Format.
This is my code to get and print the values:
for (int row = 0; row < CitationTable.getRowCount(); row++) {
            JournalCitation js = new JournalCitation();
            js.setAuthorFirstName((String) CitationTable.getValueAt(row, 1));
            js.setAuthorLastName((String) CitationTable.getValueAt(row, 2));
            js.setYearPublished((int) CitationTable.getValueAt(row, 3));
            js.setTitle((String) CitationTable.getValueAt(row, 4));
            js.setVolumeNo((int) CitationTable.getValueAt(row, 5));
            js.setIssueNo((int) CitationTable.getValueAt(row, 6));
            js.setPagesUsed((int) CitationTable.getValueAt(row, 7));
            js.setDoi((String) CitationTable.getValueAt(row, 8));
            js.setDatabaseLocation((String) CitationTable.getValueAt(row, 9));
            js.setUrl((String) CitationTable.getValueAt(row, 10));
            js.setAccessDate((String) CitationTable.getValueAt(row, 11));
            System.out.println(js.getAuthorFirstName() + js.getAuthorLastName() + js.getYearPublished() + js.getTitle() + js.getVolumeNo() + js.getIssueNo() + js.getPagesUsed() + js.getDoi() + js.getDatabaseLocation() + js.getUrl() + js.getAccessDate());
        }
 
     
    