Salut,
je veux faire trier un tableModel par le tri bulle en utilisant la methode de setValueAt mais cette dernière ne fonctionne pas.
voilà mon code:
voilà si vous avez des suggestions ou des propositions je serais reconnaissant.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 this.s = this.list.getValueAt(this.i, this.columnIndex); this.list.setValueAt(this.list.getValueAt(this.i + 1, this.columnIndex), this.i, this.columnIndex); this.list.setValueAt(this.list.getValueAt(this.i + 1, this.columnIndex), this.i + 1, this.columnIndex); this.inversion = true; Declarations: private boolean inversion; privateinti; private int columnIndex; private Object s; private TableModel list;
Merci d'avance
Partager