addWindowListener « Event « Java Swing Q&A





1. about the addWindowListener()    coderanch.com

The problem is here: I have two frames, one calls another. the child jframe modifies a text file which is displayed in the parent jframe. I want to Update this change when I close the child jframe. How should I do it? I checked some related topics about the getting sub-window handle. seems I need a listener to listener to the ...

2. [SOLVED] addWindowListener problem    java-forums.org

[SOLVED] addWindowListener problem Java Code: import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Container; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.util.Calendar; import java.util.GregorianCalendar; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import javax.swing.JFrame; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JPanel; public class Cal extends JPanel implements ActionListener,WindowListener { /** The currently-interesting year (not modulo 1900!) */ public int ...