Re: Prioritized event handlers

2024-11-08 Thread Michael Strauß
Hi Andy, 1. What happened to this proposal? I've come to the conclusion that we need something like that, but probably in a different form. My current thinking is that we don't need prioritized handlers, but merely a way for interested listeners to say "I'll take this event, but only if no one el

Re: Prioritized event handlers

2024-11-08 Thread Michael Strauß
I agree with this analysis, and I've taken the liberty to steal parts of your code for this PR: https://github.com/openjdk/jfx/pull/1632 On Thu, Nov 7, 2024 at 3:06 PM John Hendrikx wrote: > [...] > I now think Behaviors should always be doing their event handling in filters, > for the simple re

Focus delegation API

2024-11-08 Thread Michael Strauß
Hi everyone, here is a proposal to finally solve the focus delegation problem that has recently been discussed in the "Prioritized event handlers" thread. Proposal: https://gist.github.com/mstr2/44d94f0bd5b5c030e26a47103063aa29 Draft PR: https://github.com/openjdk/jfx/pull/1632

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread Martin Fox
On Sat, 9 Nov 2024 00:22:42 GMT, John Hendrikx wrote: > I checked the events that are copied, and it is basically making the copy to > adjust the source (target remains constant). That's really odd; I'd expect > the source to remain the same as well (ie. the Scene or Window, not the > "previou

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread John Hendrikx
On Fri, 8 Nov 2024 22:05:15 GMT, Martin Fox wrote: > FWIW, checking the isConsumed flag will only work if the action is consumed > by a handler registered directly with the TextField. If there's a filter or > handler attached to some other part of the scene graph a copy of the event > will be

Re: RFR: 8342997: Remove use of System::getSecurityManager and SecurityManager

2024-11-08 Thread Andy Goryachev
On Fri, 8 Nov 2024 21:46:38 GMT, Kevin Rushforth wrote: > Ths PR removes all remaining calls to `System::getSecurityManager` and the > `SecurityManager` class along with the `System.getGecurityManager() != null` > code paths. > > As part of doing this, the last uses of `PermissionHelper` and

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread Martin Fox
On Fri, 8 Nov 2024 20:44:17 GMT, John Hendrikx wrote: >> @kleopatra Your explanation makes sense to me. Thank you for taking the time >> to write it up. >> >> If so, the proposed fix, including adjusting the comment, would be: >> >> >> --- >> a/modules/javafx.controls/src/main/java/com/sun/j

RFR: 8342997: Remove use of System::getSecurityManager and SecurityManager

2024-11-08 Thread Kevin Rushforth
Ths PR removes all remaining calls to `System::getSecurityManager` and the `SecurityManager` class along with the `System.getGecurityManager() != null` code paths. As part of doing this, the last uses of `PermissionHelper` and `FXPermissions` were eliminated, so I deleted those two classes. Sin

Re: RFR: 8091673: Public focus traversal API for use in custom controls [v5]

2024-11-08 Thread John Hendrikx
On Thu, 7 Nov 2024 18:44:23 GMT, Andy Goryachev wrote: >> Public focus traversal API for use in custom controls. >> >> https://github.com/andy-goryachev-oracle/Test/blob/main/doc/FocusTraversal/FocusTraversal-v3.md >> >> This is a lightweight change that only adds the public API for focus >> t

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v18]

2024-11-08 Thread Michael Strauß
On Fri, 8 Nov 2024 18:44:22 GMT, Kevin Rushforth wrote: >> Michael Strauß has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - move automatically added imports >> - rename test...javax -> test...java2d > > modules/javafx.graphics/src/main/

Re: RFR: 8306707: Support pluggable image loading via javax.imageio [v18]

2024-11-08 Thread Kevin Rushforth
On Thu, 7 Nov 2024 19:04:07 GMT, Michael Strauß wrote: >> This PR is an improved version of #1093. >> >> JavaFX can load BMP, GIF, PNG, and JPEG images with its built-in image >> loaders. It has been a long-standing request to support more image formats, >> most notably (but not limited to) SV

Re: Prioritized event handlers

2024-11-08 Thread Andy Goryachev
Thanks, very interesting! The first thing that popped up is that FX does expose the Skin's implementation via Node.lookup() and CSS. -andy From: openjfx-dev on behalf of Tobias Oelgarte Date: Friday, November 8, 2024 at 12:47 To: openjfx-dev@openjdk.org Subject: Re: Prioritized event handl

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread John Hendrikx
On Fri, 8 Nov 2024 16:28:17 GMT, Kevin Rushforth wrote: >> @hjohn @kevinrushforth @aghaisas >> >> hmm .. it's been a while but you might be on to something. >> >> Let's recap: >> >> - the first issue to get fixed was JDK-8207774: the problem was that the >> isConsumed always was false (due

Re: Prioritized event handlers

2024-11-08 Thread Tobias Oelgarte
This whole situation reminds me very much of Shadow DOM [1], an approach for components (controls/skins) with a complex internal structure that should not be visible from the outside. The handling of events could serve as a template here. [2] [1] https://developer.mozilla.org/en-US/docs/Web/A

Integrated: 8343760: GHA: macOS / aarch64 builds depend on Xcode 14 which will be removed

2024-11-08 Thread Kevin Rushforth
On Thu, 7 Nov 2024 19:29:38 GMT, Kevin Rushforth wrote: > Fix the GHA build on macOS / aarch64, which uses a macOS 14 GitHub Actions > runner, by using the default Xcode 15 rather than explicitly selecting Xcode > 14. > > GitHub has announced the removal of Xcode 14 from their macOS 14 images.

Re: RFR: 8091673: Public focus traversal API for use in custom controls [v5]

2024-11-08 Thread Kevin Rushforth
On Thu, 7 Nov 2024 18:44:23 GMT, Andy Goryachev wrote: >> Public focus traversal API for use in custom controls. >> >> https://github.com/andy-goryachev-oracle/Test/blob/main/doc/FocusTraversal/FocusTraversal-v3.md >> >> This is a lightweight change that only adds the public API for focus >> t

Integrated: 8343630: Pass AccessControlContext to/from WebKit as opaque object

2024-11-08 Thread Kevin Rushforth
On Tue, 5 Nov 2024 17:57:19 GMT, Kevin Rushforth wrote: > This PR modifies the signature of four methods -- 3 `native` JNI methods and > 1 Java method that is called from native code using JNI -- changing the type > of one of the arguments from `AccessControlContext` to `Object`. > > As a foll

Integrated: 8342992: Security manager check should not use deprecated methods

2024-11-08 Thread Kevin Rushforth
On Tue, 5 Nov 2024 19:37:05 GMT, Kevin Rushforth wrote: > As specified in the security manager removal CSR, > [JDK-8341858](https://bugs.openjdk.org/browse/JDK-8341858), JavaFX now checks > at startup whether the security manager is enabled and fails fast with an > `UnsupportedOperationExcepti

Re: RFR: 8343630: Pass AccessControlContext to/from WebKit as opaque object

2024-11-08 Thread Jay Bhaskar
On Tue, 5 Nov 2024 17:57:19 GMT, Kevin Rushforth wrote: > This PR modifies the signature of four methods -- 3 `native` JNI methods and > 1 Java method that is called from native code using JNI -- changing the type > of one of the arguments from `AccessControlContext` to `Object`. > > As a foll

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread Kevin Rushforth
On Fri, 8 Nov 2024 15:39:57 GMT, Jeanette Winzenburg wrote: >> modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/behavior/TextFieldBehavior.java >> line 190: >> >>> 188: if (onAction != null || actionEvent.isConsumed()) { >>> 189: event.consume(); >>> 190:

Re: RFR: 8342992: Security manager check should not use deprecated methods [v2]

2024-11-08 Thread Andy Goryachev
On Thu, 7 Nov 2024 13:17:33 GMT, Kevin Rushforth wrote: >> As specified in the security manager removal CSR, >> [JDK-8341858](https://bugs.openjdk.org/browse/JDK-8341858), JavaFX now >> checks at startup whether the security manager is enabled and fails fast >> with an `UnsupportedOperationExc

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread Jeanette Winzenburg
On Fri, 8 Nov 2024 15:31:04 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/behavior/TextFieldBehavior.java >> line 190: >> >>> 188: if (onAction != null || actionEvent.isConsumed()) { >>> 189: event.consume(); >>> 190:

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread Andy Goryachev
On Fri, 8 Nov 2024 12:48:45 GMT, John Hendrikx wrote: >> Jeanette Winzenburg has updated the pull request incrementally with one >> additional commit since the last revision: >> >> added tests to guard against JDK-8145515 > > modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/

Re: CFV: New OpenJFX Committer: Jayathirth D V

2024-11-08 Thread Lukasz Kostyra
 Vote: YES Lukasz On 11/8/2024 5:46 AM, Kevin Rushforth wrote: > I hereby nominate Jayathirth D V [1] to OpenJFX Committer.

Re: CFV: New OpenJFX Committer: Jayathirth D V

2024-11-08 Thread Andy Goryachev
Vote: YES -andy From: openjfx-dev on behalf of Kevin Rushforth Date: Friday, November 8, 2024 at 05:47 To: openjfx-dev , Jayathirth Rao Daarapuram Venkatesh Murthy Subject: CFV: New OpenJFX Committer: Jayathirth D V I hereby nominate Jayathirth D V [1] to OpenJFX Committer. Jay is a member

Re: CFV: New OpenJFX Committer: Jayathirth D V

2024-11-08 Thread John Neffenger
Vote: YES John On 11/8/24 5:46 AM, Kevin Rushforth wrote: I hereby nominate Jayathirth D V [1] to OpenJFX Committer.

Re: CFV: New OpenJFX Committer: Jayathirth D V

2024-11-08 Thread Nir Lisker
Vote: YES On Fri, Nov 8, 2024 at 3:48 PM Kevin Rushforth wrote: > Vote: YES > > -- Kevin > > On 11/8/2024 5:46 AM, Kevin Rushforth wrote: > > I hereby nominate Jayathirth D V [1] to OpenJFX Committer. > >

Re: RFR: JDK-8199216: Quadratic layout time with nested nodes and pseudo-class in style sheet [v10]

2024-11-08 Thread Daniel Godino
On Tue, 12 Sep 2023 23:28:37 GMT, John Hendrikx wrote: >> This fix introduces immutable sets of `PseudoClass` almost everywhere, as >> they are rarely modified. These are re-used by caching them in a new class >> `ImmutablePseudoClassSetsCache`. >> >> In order to make this work, `BitSet` had

CFV: New OpenJFX Committer: Jayathirth D V

2024-11-08 Thread Kevin Rushforth
I hereby nominate Jayathirth D V [1] to OpenJFX Committer. Jay is a member of the JavaFX team at Oracle who has contributed 12 commits [2] to OpenJFX. He has contributed an additional 5 commits to the OpenJFX jfx-tests repo [3]. Votes are due by November 22, 2024 at 14:00 UTC. Only current O

Re: CFV: New OpenJFX Committer: Jayathirth D V

2024-11-08 Thread Kevin Rushforth
Vote: YES -- Kevin On 11/8/2024 5:46 AM, Kevin Rushforth wrote: I hereby nominate Jayathirth D V [1] to OpenJFX Committer.

Re: RFR: 8207759: VK_ENTER not consumed by TextField when default Button exists [v3]

2024-11-08 Thread John Hendrikx
On Wed, 11 Dec 2019 12:26:27 GMT, Jeanette Winzenburg wrote: >> This is a fix for https://bugs.openjdk.java.net/browse/JDK-8207759 >> >> The issue is that default/cancel button on a scene are triggered even though >> a onKeyPressed handler for ENTER/CANCEL consumes the keyEvent. See the bug >

Integrated: 8342454: Remove calls to doPrivileged in javafx.graphics/com.sun.glass

2024-11-08 Thread Jayathirth D V
On Tue, 5 Nov 2024 06:12:20 GMT, Jayathirth D V wrote: > This PR removes AccessController.doPrivileged() calls in > javafx.graphics/com.sun.glass. It is part of umbrella task > [JDK-8342441](https://bugs.openjdk.org/browse/JDK-8342441). > > Also wherever classes are implementing PrivilegedActi

Re: RFR: 8342992: Security manager check should not use deprecated methods [v2]

2024-11-08 Thread Ambarish Rapte
On Thu, 7 Nov 2024 13:17:33 GMT, Kevin Rushforth wrote: >> As specified in the security manager removal CSR, >> [JDK-8341858](https://bugs.openjdk.org/browse/JDK-8341858), JavaFX now >> checks at startup whether the security manager is enabled and fails fast >> with an `UnsupportedOperationExc

Re: RFR: 8342992: Security manager check should not use deprecated methods [v2]

2024-11-08 Thread Ambarish Rapte
On Thu, 7 Nov 2024 14:13:16 GMT, Kevin Rushforth wrote: >> modules/javafx.base/src/main/java/com/sun/javafx/SecurityUtil.java line 48: >> >>> 46: * @throws UnsupportedOperationException if the security manager is >>> enabled >>> 47: */ >>> 48: public static void checkSecurityManag