On Fri, 29 Jul 2022 20:12:47 GMT, Phil Race <[email protected]> wrote:
> I can confirm that on Linux / Gnome with menu bar at the top and > toolbar on the left, that the requested location of 0,0 is not where > the window is placed but if called immediately both getLocation() @prrace Thank you for checking it on Linux. Adding a delay would be the best option to get the updated location values in this scenario then. Another approach that I had in mind was to change PassFailJFrame to use a JSplitPane (single window) for instructions and test window. This way there is no hassle of managing the positioning of 2 windows as described above https://github.com/openjdk/jdk/pull/9525#issuecomment-1198453250 Please let me know your suggestions on JSplitPane approach. ------------- PR: https://git.openjdk.org/jdk/pull/9525
