On extending Toolkit or GE public API

Philip Race philip.race at oracle.com
Fri Jul 7 17:39:15 UTC 2023


So long as it stays in the sandbox and isn't pushed to jdk then you can 
do anything you want.
[BTW I'm sure it would be on TK not GE].

And it would be my preference to let such things bake in wakefield until 
we understand if they are really
needed and what they should look like.

So in other words, nothing in main line yet since there's no point yet.

Apart from anything else, cases where we say "this won't work without 
new API" means apps need
to change and that is highly undesirable, so I'd like to see us try 
everything under the sun to
minimise the number and severity of such cases.

-phil

On 7/7/23 6:16 AM, Maxim Kartashev wrote:
> Unlike all the other windowing systems that JDK supports, Wayland does 
> not let you position windows on the screen directly. I have just 
> finished implementing support for popup-style windows (popups, 
> tooltips, menus) using xdg_positioner and had to plug in many 
> instances of "if (can-position-windows)" in the common code (i.e. 
> Swing). I wonder if this warrants an amendment to the public API so 
> those checks can be less ad-hoc? What would be the procedure for 
> introducing a new method to Toolkit of GraphicsEnvironment?
>
> References:
> * 
> https://github.com/JetBrains/JetBrainsRuntime/commit/470c36bbd802bcf18c098c8d90502a6fb72099e3
> * https://wayland.app/protocols/xdg-shell#xdg_positioner



More information about the wakefield-dev mailing list