String[] columnNames = {"1.", "2.", .... "n."};
Object[][] data = {{"eins", "zwei", ... "n"},
{"one", "two", .... "n"},
...
};
JTable table = new JTable(data, ColumNames);
JScrollPane scrollPane = new JScrollPane(table);
table.setFillsViewportHeight(true);
Keine Kommentare:
Kommentar veröffentlichen