Detect a user click on iconize swing application.
I have a swing application,
If a user iconize my program, the user must click on jframe inside the microsotf windows toolbar to maximize it.
I want to detect when a user click on iconize swing application.
i try to use this listener, but it's not listen when youser click on jframe of my application and the jframe is iconize on window microsoft toolbar.
How i can do it?
addMouseListener(new MouseListener(){
publicvoid mouseClicked(MouseEvent e){
System.err.println("mouseClicked:");<- it's not work
}
publicvoid mouseEntered(MouseEvent e){
System.err.println("mouseEntered:"); <- it'swork
}
publicvoid mouseExited(MouseEvent e){
// TODO Auto-generated method stub
}
publicvoid mousePressed(MouseEvent e){
// TODO Auto-generated method stub
}
publicvoid mouseReleased(MouseEvent e){
// TODO Auto-generated method stub
}
});

