January 7th, 2010 by mbahsomo

Berikut source nya


ListSelectionModel rowSM = tabel1.getSelectionModel();
rowSM.addListSelectionListener(new ListSelectionListener(){
 public void valueChanged(ListSelectionEvent e) {
 tabelValueChanged(e);
 }
});

public void tabelValueChanged(ListSelectionEvent e) {
 if (e.getValueIsAdjusting()) {
 return;
 }
 ListSelectionModel rowSM = (ListSelectionModel) e.getSource();
 int selectedIndex = rowSM.getMinSelectionIndex();
 //isi event kamu
 }

Silakan di coba

One Response to “Add Event change on JTable”

I still don’t feel the affects on the web… real life – 100% affected

Leave a Reply