Hello, i have a class which extends from jdialog it implements WindowListener and i've implemented all methods of that interface, just adding System.out.println("something") to see the events catched, but nothing happened .
any idea.
thanks.
public class FilterDialog extends JDialog implements ActionListener, WindowListener {
public FilterDialog() {
//of course there are jpanels jbuttons and other components
//the jdialog appear correctly and close correctly but nothing to display in the console
}
public void actionPerformed(ActionEvent ae) {}
public void windowActivated(WindowEvent e) {
// TODO Auto-generated method stub
System.out.println("windowActivated");
}
public void windowClosed(WindowEvent e) {
// TODO Auto-generated method stub
System.out.println("windowClosed");
}
public void windowClosing(WindowEvent e) {
// TODO Auto-generated method stub
System.out.println("windowClosing");
}
public void windowDeactivated(WindowEvent e) {
// TODO Auto-generated method stub
System.out.println("windowDeactivated");
}
public void windowDeiconified(WindowEvent e) {
// TODO Auto-generated method stub
System.out.println("windowDeiconified");
}
public void windowIconified(WindowEvent e) {
// TODO Auto-generated method stub
System.out.println("windowIconified");
}
public void windowOpened(WindowEvent e) {
// TODO Auto-generated method stub
System.out.println("windowOpened");
}
}