Alguém ai poderia me ajudar?
http://www.portaljava.com/home/modules.php?name=Forums&file=viewtopic&t=32016
Alguém ai poderia me ajudar?
http://www.portaljava.com/home/modules.php?name=Forums&file=viewtopic&t=32016
Eu fiz o seguinte
class Consultar extends JInternalFrame implements CellEditorListener {
...
JTable jtDados;
DefaultCellEditor editor;
...
public Consultar () {
...
jtDados = new JTable();
editor = new DefaultCellEditor(new JTextField());
editor.addCellEditorListener(this);
jtDados.setCellEditor(editor);
...
}
...
public void editingCanceled(ChangeEvent e) {
System.out.println("editingCanceled");
}
public void editingStopped(ChangeEvent e) {
System.out.println("editingStopped");
}
}
Bom, o System.out era pra testar se estava executando, mas nada, porque?