i'm creating a Java Project using JFrame.
I have created a JFrame A (in the class mainPanel) that that contain a myTable tbl object which extends JTable (public class myTable extends JTable).
I made this because this extension must have a public method that populate the table tbl getting values from DB.
This table is populated every time i launch the project.
The frame A contain also a JButton (JButton b_partita).
This component (b_partita) start a new JFrame B (another "class aggiungiPartita implements ActionListener") using:
b_partita.addActionListener(new aggiungiPartita());
The Frame B is used essentially for populate my database.
If everthing goes well, when i press the save button in B, the JFrame will close automatically.
The question is:
is there a way to "refresh" the table tbl (in A) immediately after the end of B's activity?
Thank you all, Stefano