I have a JFrame that contains dynamic content and
my_frame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
The frame is show only when the user press a JButton and my_frame class contains only a constructor (for fist time invocation) and a refresh method for refreshing its content. Now i would that when the JFrame become visibile again, my_frame intercept the event and call automatically the refresh method. How can i do it?