Salve a tutti!
Io avrei bisogno di un aiutino nella creazione di una JTable.
La tabella l'ho creata facilmente ma ora vorrei che la prima colonna della tabella visto, che contiene solo un numero progressivo, sia più stretta di tutte le altre.
come posso fare?
Il codice che ho fatto fin ora è:
codice:TableModel tm = new AbstractTableModel() { String[][] dati = ecc... String[] header = ecc... public int getRowCount() { return dati.length; } public int getColumnCount() { return header.length; } public Object getValueAt(int r, int c) { return dati[r][c]; } public String getColumnName(int c) { return header[c]; } }; JTable jt = new JTable(tm); JScrollPane jsp = new JScrollPane(jt); this.getContentPane().add(jsp, BorderLayout.CENTER); this.pack();

Rispondi quotando
grazieeeeee!!!!!!
