JDK-8340656 : Add window closing handler in PassFailJFrame.addTestWindow
  • Type: Bug
  • Component: client-libs
  • Affected Version: 22
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-09-23
  • Updated: 2024-09-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
All the windows created automatically by the PassFailJFrame framework are registered using PassFailJFrame.addTestWindow in `windowList` for disposing of when the test completes.

A test developer also uses PassFailJFrame.addTestWindow to register additional windows which are created independently.

All these windows are part of the test UI, thus the window closing handler could be associated with all the windows. This is already done for the instruction frame and for any windows passed with `testUI` methods.

Instead, `addTestWindow` could set the handler, which will make window closing handler functionality localised.

Then all the test windows added by test developer using `addTestWindow` will benefit from the common handler.