Can you tell if your jframe is behind an OS window, or minimized but requesting focus?
I am writing a multi frame java program and trying to keep track of what new info the user hasn't seen yet in.
Can you tell if your jframe is behind an OS window, or minimized but requesting focus?
I am writing a multi frame java program and trying to keep track of what new info the user hasn't seen yet in.
You can use methods like:
frame.isActive()
to determine if the frame currently has focus frame.getExtendedState()
to determine if the frame is minimizedOf course you would to continually poll the frame for this information, so I'm not sure how helpful it will be.