Java - Modify a JTable by means of an external Jframe

1

Hi, I have a question about a JTable . The program works by saving data of a product and then the list, but when wanting to modify by means of an external JFrame (that appears when pressing the EDIT button) I can not modify this data of the JTable

asked by FransMB 23.06.2017 в 11:14
source

1 answer

1

What I understand what you want to do is that when you save the JFrame edit, I list the data again, because all you have to do is click on it

private void btnGuardarActionPerformed(java.awt.event.ActionEvent evt) {
    guardatoseditados();//Por ejemplo método que realiza la modificación de los datos                                           
    this.dispose(); //Cerrar JFrame
    classJTable listTable = new classJTable();
    listTable.listar(); //volver a listar los datos
}

And ready ..

    
answered by 23.06.2017 в 15:22