I have a JFrame
(1, the main frame) which continues a JPanel
and JTable
with data. The user can edit the data. Therefore a new JFrame
(2) opens and the user can input the new data. If they click "OK" in the 2nd frame, I want the 1st frame to refresh itself.
I have each frame in a different class. Frame 1 knows Frame 2, but not the other way.
I couldn't find a way to make it possible.