New API is introduced to add WindowFocusListener - addWindowFocusListener()
But the documentation for WindowFocusListener still recommends to use addWindowListener() , which in turn will give compilation errors. Hence this has to be updated.
"The listener object created from that class is then registered with a Window using the Window's addWindowListener method."
This has to be changed.
If we use addWindowListener to add WindowFocusListener it gives the following compilation error.
addWindowListener(java.awt.event.WindowListener) in java.awt.Window cannot be applied to (WindowFocusListenerTest)
I have refered to the docs available at
file:/usr/local/java/jdk1.4/doc/api/index.html
But the documentation for WindowFocusListener still recommends to use addWindowListener() , which in turn will give compilation errors. Hence this has to be updated.
"The listener object created from that class is then registered with a Window using the Window's addWindowListener method."
This has to be changed.
If we use addWindowListener to add WindowFocusListener it gives the following compilation error.
addWindowListener(java.awt.event.WindowListener) in java.awt.Window cannot be applied to (WindowFocusListenerTest)
I have refered to the docs available at
file:/usr/local/java/jdk1.4/doc/api/index.html