Re: CFV: New OpenJFX Committer: Alexander Zuev

2025-05-30 Thread Nir Lisker
Vote: YES On Fri, May 30, 2025, 09:46 José Pereda wrote: > Vote: Yes > > Jose > > On Fri, May 30, 2025 at 9:11 AM Jayathirth Rao Daarapuram Venkatesh Murthy > wrote: > >> Vote : Yes >> >> >> >> Thanks, >> >> Jay >> >> >> >> *From: *openjfx-dev on behalf of Kevin >> Rushforth >> *Date: *Thursd

Re: RFR: 8354986: Update to Visual Studio 2022 version 17.13.2 on Windows

2025-05-20 Thread Nir Lisker
The instructions could be outdated. They need another pass in any case. On Tue, May 20, 2025, 09:03 Peter Hull wrote: > On Mon, 19 May 2025 at 17:14, Kevin Rushforth wrote: > > > > This PR updates the compiler on Windows to Visual Studio 2022 17.13.2 > (from 17.6.5) to match JDK 25. > > Related

JavaFX Presentation at JavaOne

2025-05-10 Thread Nir Lisker
Just saw Kevin's JavaFX talk released on YT. Thanks Kevin! https://www.youtube.com/watch?v=FxHbXY34iFQ

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v16]

2025-04-23 Thread Nir Lisker
On Wed, 12 Mar 2025 14:40:01 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> See also #837 for a previous attempt which instead of triggering nested >> emissions immediately (like this PR

Re: ExpressionHelper thread-safety

2025-04-23 Thread Nir Lisker
John is replacing some of the ExpressionHelper uses (properties and bindings) through https://github.com/openjdk/jfx/pull/1081. It's still single threaded, but I think the new implementation there should be the center point of this discussion. On Wed, Apr 23, 2025 at 9:41 PM Kevin Rushforth wrote

Re: Unnecessary layouts; TLDR; new method "requestLocalLayout"

2025-04-16 Thread Nir Lisker
Sounds good. Have you tried a prototype implementation for a built-in JavaFX control/Pane, just to see how well it works? On Wed, Apr 16, 2025 at 5:50 PM Andy Goryachev wrote: > This might be a good idea from an API perspective, but please be careful - > this optimization might break the behavio

Re: RFR: 8354478: Improve StageStyle documentation

2025-04-14 Thread Nir Lisker
On Sun, 13 Apr 2025 15:24:43 GMT, Thiago Milczarek Sayao wrote: > Improve StageStyle Documentation > > - Update `StageStyle.UTILITY`: > Clarified that UTILITY stages may impose platform-specific restrictions on > window states, such as preventing maximize, minimize (iconify), and > fullscreen

Re: RFR: 8354478: Improve StageStyle documentation [v2]

2025-04-14 Thread Nir Lisker
On Mon, 14 Apr 2025 15:13:19 GMT, Thiago Milczarek Sayao wrote: >> Improve StageStyle Documentation >> >> - Update `StageStyle.UTILITY`: >> Clarified that UTILITY stages may impose platform-specific restrictions on >> window states, such as preventing maximize, minimize (iconify), and >> full

Re: Help test the behavior of a multi-screen setup with both Mac and Windows

2025-04-09 Thread Nir Lisker
I followed John's 'peek' addition. I have 2 monitors, the second one has a 125% magnification. Windows 10. Rectangle2D [minX=0.0, minY=0.0, maxX=1920.0, maxY=1080.0, width=1920.0, height=1080.0] Rectangle2D [minX=1920.0, minY=0.0, maxX=3456.0, maxY=864.0, width=1536.0, height=864.0] The buttons

Re: RFR: 8353845: com.sun.javafx.css.BitSet.equals(null) throws NPE

2025-04-09 Thread Nir Lisker
On Wed, 9 Apr 2025 07:06:29 GMT, Michael Strauß wrote: > Fixes the bug that `BitSet.equals(null)` throws NPE. > > A single reviewer should be sufficient. modules/javafx.graphics/src/main/java/com/sun/javafx/css/BitSet.java line 536: > 534: return true; > 535: } > 536:

Re: RFR: 8351276: Prevent redundant computeValue calls when a chain of mappings becomes observed [v2]

2025-04-02 Thread Nir Lisker
On Wed, 2 Apr 2025 08:36:22 GMT, John Hendrikx wrote: >> 8351276: Prevent redundant computeValue calls when a chain of mappings >> becomes observed > > John Hendrikx has updated the pull request incrementally with one additional > commit since the last revision: > > Fix review comments Mark

Re: RFR: 8350136: Create release notes for JavaFX 24 [v5]

2025-03-13 Thread Nir Lisker
On Thu, 13 Mar 2025 22:43:24 GMT, Kevin Rushforth wrote: >> This PR adds the release notes for the JavaFX 24 release. This will first go >> into master, and then be backported to the jfx24 branch so it will be >> available in that branch when JavaFX 24 is published (and from there also >> sync

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v13]

2025-03-11 Thread Nir Lisker
On Wed, 12 Mar 2025 01:40:02 GMT, John Hendrikx wrote: >> modules/javafx.base/src/main/java/com/sun/javafx/binding/ListenerListBase.java >> line 422: >> >>> 420: >>> 421: private void assertInvalidationListenerIndex(int index) { >>> 422: assert index < invalidationListenersCount :

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v5]

2025-03-11 Thread Nir Lisker
On Fri, 21 Feb 2025 21:42:03 GMT, John Hendrikx wrote: >> modules/javafx.base/src/main/java/com/sun/javafx/binding/ListenerManagerBase.java >> line 41: >> >>> 39: * @param the type of the instance providing listener data >>> 40: */ >>> 41: public abstract class ListenerManagerBase>> Observab

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v11]

2025-03-11 Thread Nir Lisker
On Tue, 11 Mar 2025 07:09:48 GMT, John Hendrikx wrote: > I think the docs (in `OldValueCachingListenerManager`) are quite clear > already though why you'd use one or the other. Alright, no need to add a note about where it's used. > The design flaw is the use of a protected `fireValueChangedEv

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v11]

2025-03-11 Thread Nir Lisker
On Wed, 12 Mar 2025 01:29:26 GMT, John Hendrikx wrote: >> Is a switch expression on `listenerData` not suitable here? > > This is a really hot code path, and the current version came out best in the > benchmarks. I didn't try modify this one for that reason. I did try for the > `removeListener

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v13]

2025-03-11 Thread Nir Lisker
On Tue, 11 Mar 2025 06:45:58 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> See also #837 for a previous attempt which instead of triggering nested >> emissions immediately (like this PR

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v11]

2025-03-11 Thread Nir Lisker
On Sun, 9 Mar 2025 23:05:02 GMT, Nir Lisker wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix non-convergence logic one more time... > > modules/javafx.base/src/ma

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v12]

2025-03-11 Thread Nir Lisker
On Tue, 11 Mar 2025 06:34:06 GMT, John Hendrikx wrote: > I'm unsure what you are saying here. The common divisor example would not log > a warning if I place the warning log in the same location as the SOE. If you replace the thrown error/exception with logging then the code path will continue

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v12]

2025-03-11 Thread Nir Lisker
On Mon, 10 Mar 2025 08:48:53 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> See also #837 for a previous attempt which instead of triggering nested >> emissions immediately (like this PR

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v11]

2025-03-10 Thread Nir Lisker
On Mon, 10 Mar 2025 07:37:27 GMT, John Hendrikx wrote: > > First part of the review. > > There are several class (and their methods) that are `public`, but are only > > used in their package and can just have package-access: > > `OldValueCachingListenerList` `ListenerManagerBase` `ListenerListB

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v11]

2025-03-10 Thread Nir Lisker
On Mon, 10 Mar 2025 08:42:07 GMT, John Hendrikx wrote: >> modules/javafx.base/src/main/java/com/sun/javafx/binding/OldValueCachingListenerManager.java >> line 53: >> >>> 51: * within listener list. If possible use {@link ListenerManager}, as it >>> has less >>> 52: * storage requirements and

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v11]

2025-03-09 Thread Nir Lisker
On Thu, 6 Mar 2025 16:21:33 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> See also #837 for a previous attempt which instead of triggering nested >> emissions immediately (like this PR

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v11]

2025-03-09 Thread Nir Lisker
On Sat, 8 Mar 2025 10:41:29 GMT, John Hendrikx wrote: > Anything I should add as test-cases? When I do the review of the tests I'll compare with my scenarios and see if there's anything worth adding. - PR Comment: https://git.openjdk.org/jfx/pull/1081#issuecomment-2709090436

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v11]

2025-03-07 Thread Nir Lisker
On Thu, 6 Mar 2025 16:21:33 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> # Behavior >> >> |Listener...|ExpressionHelper|ListenerManager| >> |---|---|---| >> |Invocation Order|In order

Re: RFR: 8351276: Prevent redundant computeValue calls when a chain of mappings becomes observed

2025-03-07 Thread Nir Lisker
On Thu, 6 Mar 2025 15:22:58 GMT, John Hendrikx wrote: > 8351276: Prevent redundant computeValue calls when a chain of mappings > becomes observed modules/javafx.base/src/main/java/com/sun/javafx/binding/LazyObjectBinding.java line 62: > 60: updateSubscriptionBeforeAdd(); > 61: > 62:

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v7]

2025-03-05 Thread Nir Lisker
On Wed, 5 Mar 2025 18:27:29 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> # Behavior >> >> |Listener...|ExpressionHelper|ListenerManager| >> |---|---|---| >> |Invocation Order|In order

Re: RFR: 8345261: Refactor the Dimension2D classes

2025-03-05 Thread Nir Lisker
On Mon, 2 Dec 2024 14:34:08 GMT, Alexander Zvegintsev wrote: >> Thanks @azvegint. If the `int`-based dimensions are coupled with >> `com.sun.javafx.geom.Rectangle` (and from the code, that's the only place >> they are used at), would you object to making `Dimension` an inner class of >> `Rect

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v5]

2025-03-04 Thread Nir Lisker
On Thu, 20 Feb 2025 14:08:26 GMT, John Hendrikx wrote: > > Z 0->1 > > A 0->1; set 2 > > Z 1->2; > > A 1->2; no change > > B 0->2 > > C 0->2; sets 3 > > Z 2->3 > > A 2->3; if A sets 2 we will get a SOE because of recursive changes; > > let's say A wants value>=2 and not ==2 > >

Re: RFR: 8350136: Create release notes for JavaFX 24 [v3]

2025-03-04 Thread Nir Lisker
On Fri, 28 Feb 2025 15:56:19 GMT, Kevin Rushforth wrote: >> This PR adds the release notes for the JavaFX 24 release. This will first go >> into master, and then be backported to the jfx24 branch so it will be >> available in that branch when JavaFX 24 is published (and from there also >> sync

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v5]

2025-02-21 Thread Nir Lisker
On Mon, 17 Feb 2025 15:37:56 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> # Behavior >> >> |Listener...|ExpressionHelper|ListenerManager| >> |---|---|---| >> |Invocation Order|In order

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v5]

2025-02-19 Thread Nir Lisker
On Mon, 17 Feb 2025 15:37:56 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> # Behavior >> >> |Listener...|ExpressionHelper|ListenerManager| >> |---|---|---| >> |Invocation Order|In order

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v5]

2025-02-18 Thread Nir Lisker
On Wed, 19 Feb 2025 01:09:59 GMT, John Hendrikx wrote: > I'm going to assume that A and B are aware of each other, and are somehow > working together, as this scenario makes little sense otherwise. The code > that is using these two listeners is then likely coming from the same > implementatio

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v5]

2025-02-18 Thread Nir Lisker
On Mon, 17 Feb 2025 15:37:56 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> # Behavior >> >> |Listener...|ExpressionHelper|ListenerManager| >> |---|---|---| >> |Invocation Order|In order

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v5]

2025-02-18 Thread Nir Lisker
On Tue, 18 Feb 2025 01:35:17 GMT, John Hendrikx wrote: > I'm not sure what to think of this, and whether it needs a fix, and if so, > what that fix should be... Again I'm ill-equipped to answer this because I don't have experience using these nested changes. I'd say that controls that do vetoi

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v5]

2025-02-17 Thread Nir Lisker
On Mon, 17 Feb 2025 15:37:56 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> # Behavior >> >> |Listener...|ExpressionHelper|ListenerManager| >> |---|---|---| >> |Invocation Order|In order

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v3]

2025-02-17 Thread Nir Lisker
On Mon, 17 Feb 2025 23:47:57 GMT, John Hendrikx wrote: > With that I mean that when you add a listener to a property during its own > notification, that listener will not be called until a change occurs after > the notification completes (ie. the change must be triggered by some 3rd > party, n

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v3]

2025-02-17 Thread Nir Lisker
On Mon, 17 Feb 2025 04:53:41 GMT, John Hendrikx wrote: > What part in the PR section? I found this: > > > Added listeners are only called when a new non-nested (top level) > > notification starts Maybe I misunderstood what that section says. When I look at the list of differences it's written

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v3]

2025-02-16 Thread Nir Lisker
On Sat, 1 Feb 2025 12:57:34 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> # Behavior >> >> |Listener...|ExpressionHelper|ListenerManager| >> |---|---|---| >> |Invocation Order|In order

Re: RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v3]

2025-02-16 Thread Nir Lisker
On Sat, 1 Feb 2025 12:57:34 GMT, John Hendrikx wrote: >> This provides and uses a new implementation of `ExpressionHelper`, called >> `ListenerManager` with improved semantics. >> >> # Behavior >> >> |Listener...|ExpressionHelper|ListenerManager| >> |---|---|---| >> |Invocation Order|In order

[jfx24] Integrated: 8344367: Fix mistakes in FX API docs

2025-02-10 Thread Nir Lisker
On Mon, 10 Feb 2025 18:42:31 GMT, Nir Lisker wrote: > 8344367: Fix mistakes in FX API docs This pull request has now been integrated. Changeset: 0424b8b1 Author: Nir Lisker URL: https://git.openjdk.org/jfx/commit/0424b8b1705252ded4ffc4a681a1ba67124ddb12 Stats: 78 lines in

[jfx24] RFR: 8344367: Fix mistakes in FX API docs

2025-02-10 Thread Nir Lisker
8344367: Fix mistakes in FX API docs - Commit messages: - Backport 8818ccf8ca883cda49c296ebf6d960c6929a9644 Changes: https://git.openjdk.org/jfx/pull/1704/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1704&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8344367 St

Re: RFR: 8344367: Fix mistakes in FX API docs [v4]

2025-02-10 Thread Nir Lisker
On Sat, 8 Feb 2025 19:19:56 GMT, Nir Lisker wrote: >> A batch of typo and grammar fixes that were found by the spellchecker. >> >> Integration can wait until RDP 1/2. > > Nir Lisker has updated the pull request with a new target base due to a merge > or a rebase. Th

Integrated: 8344367: Fix mistakes in FX API docs

2025-02-10 Thread Nir Lisker
On Sun, 17 Nov 2024 21:35:44 GMT, Nir Lisker wrote: > A batch of typo and grammar fixes that were found by the spellchecker. > > Integration can wait until RDP 1/2. This pull request has now been integrated. Changeset: 8818ccf8 Author:Nir Lisker URL: https://git.openjd

Re: RFR: 8344367: Fix mistakes in FX API docs [v4]

2025-02-08 Thread Nir Lisker
> A batch of typo and grammar fixes that were found by the spellchecker. > > Integration can wait until RDP 1/2. Nir Lisker has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains seven commits: - Fixed javadoc for internal Nod

Re: RFR: 8345261: Refactor the Dimension2D classes [v2]

2025-01-27 Thread Nir Lisker
On Mon, 27 Jan 2025 17:28:14 GMT, Andy Goryachev wrote: >> I'm not familiar with these methods, but I did wonder why we need extra >> implementations in the initial comment. > > looks like dead code left over from the original implementation. > > I removed the class along with the two methods a

Re: RFR: 8345261: Refactor the Dimension2D classes [v2]

2025-01-27 Thread Nir Lisker
On Mon, 27 Jan 2025 16:36:28 GMT, Andy Goryachev wrote: >> Nir Lisker has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Address review comments > > modules/javafx.graphics/src/main/java/com/sun/javafx/geo

Re: RFR: 8344367: Fix mistakes in FX API docs [v2]

2025-01-24 Thread Nir Lisker
> A batch of typo and grammar fixes that were found by the spellchecker. > > Integration can wait until RDP 1/2. Nir Lisker has updated the pull request incrementally with one additional commit since the last revision: Addressed review comment - Changes: - a

Re: RFR: 8344367: Fix mistakes in FX API docs

2025-01-24 Thread Nir Lisker
On Fri, 6 Dec 2024 13:09:35 GMT, Michael Strauß wrote: > cssref.html L2038: ` apples when the mnemonic affordance (typically an > underscore)` Didn't notice that this was fixed in a bigger patch. - PR Comment: https://git.openjdk.org/jfx/pull/1642#issuecomment-2613823400

Re: RFR: 8344367: Fix mistakes in FX API docs [v2]

2025-01-24 Thread Nir Lisker
On Sat, 25 Jan 2025 07:22:33 GMT, Nir Lisker wrote: >> A batch of typo and grammar fixes that were found by the spellchecker. >> >> Integration can wait until RDP 1/2. > > Nir Lisker has updated the pull request incrementally with one additional > com

Re: RFR: 8344367: Fix mistakes in FX API docs [v3]

2025-01-24 Thread Nir Lisker
> A batch of typo and grammar fixes that were found by the spellchecker. > > Integration can wait until RDP 1/2. Nir Lisker has updated the pull request incrementally with one additional commit since the last revision: Revert "Addressed review comment"

Re: RFR: 8345261: Refactor the Dimension2D classes [v2]

2025-01-24 Thread Nir Lisker
On Mon, 2 Dec 2024 19:45:47 GMT, Kevin Rushforth wrote: >> modules/javafx.graphics/src/main/java/com/sun/javafx/geom/Dimension2D.java >> line 31: >> >>> 29: * A 2D dimension object that contains a width and a height. >>> 30: */ >>> 31: public record Dimension2D(float width, float height) {} >

Re: RFR: 8345261: Refactor the Dimension2D classes [v2]

2025-01-24 Thread Nir Lisker
On Mon, 2 Dec 2024 19:13:20 GMT, Andy Goryachev wrote: >> Nir Lisker has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Address review comments > > modules/javafx.graphics/src/main/java/com/sun/glass/ui/gt

Re: RFR: 8345261: Refactor the Dimension2D classes [v2]

2025-01-24 Thread Nir Lisker
> > I'm not sure we need the implementation class at all considering we are free > to use the public one. Nir Lisker has updated the pull request incrementally with one additional commit since the last revision: Address review comments - Changes: - all: https

Re: RFR: 8345261: Refactor the Dimension2D classes

2025-01-24 Thread Nir Lisker
On Mon, 2 Dec 2024 14:34:08 GMT, Alexander Zvegintsev wrote: >> Thanks @azvegint. If the `int`-based dimensions are coupled with >> `com.sun.javafx.geom.Rectangle` (and from the code, that's the only place >> they are used at), would you object to making `Dimension` an inner class of >> `Rect

Re: RFR: 8346227: Seal Paint and Material [v2]

2024-12-17 Thread Nir Lisker
On Sat, 14 Dec 2024 17:16:20 GMT, Michael Strauß wrote: >> The `Paint` and `Material` classes can't be extended by user code, because >> their implementations require special support in internal JavaFX code. The >> classes should be sealed. > > Michael Strauß has updated the pull request increm

Re: RFR: 8345261: Refactor the Dimension2D classes

2024-12-02 Thread Nir Lisker
On Fri, 29 Nov 2024 17:00:42 GMT, Nir Lisker wrote: > A small refactoring of the Dimension classes. > > * `com.sun.javafx.geom.Dimension` was removed and its uses were replaced by > `com.sun.javafx.geom.Dimension2D`. > * `com.sun.javafx.geom.Dimension2D`

Re: RFR: 8345261: Refactor the Dimension2D classes

2024-12-02 Thread Nir Lisker
On Fri, 29 Nov 2024 17:00:42 GMT, Nir Lisker wrote: > A small refactoring of the Dimension classes. > > * `com.sun.javafx.geom.Dimension` was removed and its uses were replaced by > `com.sun.javafx.geom.Dimension2D`. > * `com.sun.javafx.geom.Dimension2D`

Re: RFR: 8345261: Refactor the Dimension2D classes

2024-12-02 Thread Nir Lisker
On Mon, 2 Dec 2024 02:19:46 GMT, Alexander Zvegintsev wrote: >> A small refactoring of the Dimension classes. >> >> * `com.sun.javafx.geom.Dimension` was removed and its uses were replaced by >> `com.sun.javafx.geom.Dimension2D`. >> * `com.sun.javafx.geom.Dimension2D` became a record. >> * `ja

Re: Possible mistakes in com.sun.javafx.geom.AreaOp

2024-11-30 Thread Nir Lisker
7;numedges' check. I wonder why they kept Vector though. On Sat, Nov 30, 2024 at 7:43 PM Laurent Bourgès wrote: > Probably derived from java.awt.Area: > > https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/java/awt/geom/Area.java > > Le sam. 30 nov. 20

Re: Possible mistakes in com.sun.javafx.geom.AreaOp

2024-11-30 Thread Nir Lisker
ssume that it is writable and > doesn't need copying. The ugly double cast of edges is relatively > contained -- it is only casted when empty (to avoid creating another vector > instance), and it was created by this class so its under control. Always > returning `new

Re: RFR: 8345261: Refactor the Dimension2D classes

2024-11-30 Thread Nir Lisker
On Fri, 29 Nov 2024 17:00:42 GMT, Nir Lisker wrote: > A small refactoring of the Dimension classes. > > * `com.sun.javafx.geom.Dimension` was removed and its uses were replaced by > `com.sun.javafx.geom.Dimension2D`. > * `com.sun.javafx.geom.Dimension2D`

Possible mistakes in com.sun.javafx.geom.AreaOp

2024-11-29 Thread Nir Lisker
I came across a potential mistake in the class com.sun.javafx.geom.AreaOp. It uses raw Vector types and while trying to add generic parameters there for type safety, I got some conflicts. In the method AreaOp::calculate, the arguments should be Vector and the return type should also be Vector, but

RFR: 8345261: Refactor the Dimension2D classes

2024-11-29 Thread Nir Lisker
A small refactoring of the Dimension classes. * `com.sun.javafx.geom.Dimension` was removed and its uses were replaced by `com.sun.javafx.geom.Dimension2D`. * `com.sun.javafx.geom.Dimension2D` became a record. * `javafx.geometry.Dimension2D`: fields became `final`. I'm not sure we need the imple

Integrated: 8345063: Centralize version number of the Gradle build file

2024-11-27 Thread Nir Lisker
On Tue, 26 Nov 2024 16:03:38 GMT, Nir Lisker wrote: > Centralizes version numbers in a single place. This is not the best way of > doing it in Gradle, but it's an improvement that will simplify other changes. > I used the `build.properties` file because other versions are a

Re: RFR: 8309381: Support JavaFX incubator modules [v2]

2024-11-27 Thread Nir Lisker
On Fri, 22 Nov 2024 16:36:02 GMT, Kevin Rushforth wrote: >> This PR add the necessary support for [JavaFX Incubator >> Modules](https://github.com/kevinrushforth/jfx/blob/jfx.incubator/INCUBATOR-MODULES.md). >> It includes the following: >> >> 1. Changes to the build scripts `build.gradle` and

Integrated: 8344906: Simplify Java version parsing in the build file

2024-11-27 Thread Nir Lisker
On Sat, 23 Nov 2024 09:22:36 GMT, Nir Lisker wrote: > Replaces the manual versions handling with > [Version](https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/lang/Runtime.Version.html). > > Changes: > * Removed the methods `parseJavaVersion(String)`, `parseJd

Re: RFR: 8344906: Simplify Java version parsing in the build file [v2]

2024-11-27 Thread Nir Lisker
hole build JDK manual > invocation hack should be replaced with the Java Toolchain. > * Simplified the `verifyJava` task, which could also be replaced with > built-in Gradle tools. Nir Lisker has updated the pull request incrementally with one additional commit since the last revision:

Re: RFR: 8345063: Centralize version number of the Gradle build file [v2]

2024-11-26 Thread Nir Lisker
on numbers in the build file, but they are not attached > directly to a dependency. Mostly libav ones. I decided not to touch them. Nir Lisker has updated the pull request incrementally with one additional commit since the last revision: Added EOF line - Changes: - all: h

RFR: 8345063: Centralize version number of the Gradle build file

2024-11-26 Thread Nir Lisker
Centralizes version numbers in a single place. This is not the best way of doing it in Gradle, but it's an improvement that will simplify other changes. I used the `build.properties` file because other versions are already written there. There are other version numbers in the build file, but th

Re: RFR: 8344906: Simplify Java version parsing in the build file

2024-11-25 Thread Nir Lisker
On Sat, 23 Nov 2024 09:22:36 GMT, Nir Lisker wrote: > Replaces the manual versions handling with > [Version](https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/lang/Runtime.Version.html). > > Changes: > * Removed the methods `parseJavaVersion(String)`, `parseJd

RFR: 8344906: Simplify Java version parsing in the build file

2024-11-23 Thread Nir Lisker
Replaces the manual versions handling with [Version](https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/lang/Runtime.Version.html). Changes: * Removed the methods `parseJavaVersion(String)`, `parseJdkVersion(String)` and `compareJdkVersion(String, String)`, and replaced them with

Re: RFR: 8344906: Simplify Java version parsing in the build file

2024-11-23 Thread Nir Lisker
On Sat, 23 Nov 2024 09:22:36 GMT, Nir Lisker wrote: > Replaces the manual versions handling with > [Version](https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/lang/Runtime.Version.html). > > Changes: > * Removed the methods `parseJavaVersion(String)`, `parseJd

Re: RFR: 8309381: Support JavaFX incubator modules [v2]

2024-11-22 Thread Nir Lisker
On Fri, 22 Nov 2024 16:36:02 GMT, Kevin Rushforth wrote: >> This PR add the necessary support for [JavaFX Incubator >> Modules](https://github.com/kevinrushforth/jfx/blob/jfx.incubator/INCUBATOR-MODULES.md). >> It includes the following: >> >> 1. Changes to the build scripts `build.gradle` and

Re: RFR: 8344367: Fix mistakes in FX API docs

2024-11-20 Thread Nir Lisker
On Sun, 17 Nov 2024 21:35:44 GMT, Nir Lisker wrote: > A batch of typo and grammar fixes that were found by the spellchecker. > > Integration can wait until RDP 1/2. I found some spellchecker to which you give a URL and it finds the mistakes. I needed it for something else, but then t

Re: RFR: 8343196: Add build property to identify experimental builds of JavaFX [v2]

2024-11-18 Thread Nir Lisker
On Fri, 15 Nov 2024 05:48:15 GMT, Ambarish Rapte wrote: >> Introduce a new build property `jfx.experimental.release.suffix` to be used >> for the early access builds of an under development feature in JavaFX. >> This property would be set to a value ONLY in a branch specific to an >> experiment

Re: RFR: 8344367: Fix mistakes in FX API docs

2024-11-18 Thread Nir Lisker
On Sun, 17 Nov 2024 21:35:44 GMT, Nir Lisker wrote: > A batch of typo and grammar fixes that were found by the spellchecker. > > Integration can wait until RDP 1/2. I will wait with integration to see what else can be accumulated until the RDPs. - PR Comme

Re: jextract on JavaFx

2024-11-17 Thread Nir Lisker
ion task as part of the build. > But you're right, I can make a simpler task that generates it by running > jextract only on demand rather than being part of the build. > > > > > > > > > Em dom., 17 de nov. de 2024 às 13:18, Nir Lisker > escreveu: > >>

RFR: 8344367: Fix mistakes in FX API docs

2024-11-17 Thread Nir Lisker
A batch of typo and grammar fixes that were found by the spellchecker. Integration can wait until RDP 1/2. - Commit messages: - More corrections - Batch typo fixes - Fix mistakes in OpenJFX docs Changes: https://git.openjdk.org/jfx/pull/1642/files Webrev: https://webrevs.openjd

Re: jextract on JavaFx

2024-11-17 Thread Nir Lisker
jextract is something you run once to produce the FFM bindings that you then add to your code base, there's no need to make it part of the build (although I guess you can). I would think that If you're creating a PR that needs FFM, use jextract to produce the java files and submit them as part of t

Re: RFR: 8343196: Add build property to identify experimental builds of JavaFX [v2]

2024-11-16 Thread Nir Lisker
On Sat, 16 Nov 2024 18:27:02 GMT, Johan Vos wrote: > I know I'm a broken record on this topic, but if possible, it would be great > if (parts of) this logic can be moved into a separate file in order to make > the build.gradle smaller and more readable. Also at the risk of sounding like a brok

Re: Scene 3D objects throw exception on Android devices

2024-11-15 Thread Nir Lisker
This is a question for Gluon, not OpenJFX, as JavaFXPorts and the newer Gluon client are not part of JavaFX (it's the other way around). I suggest StackOverflow, they are active there. I can tell you that JavaFXPorts was EOL years ago. Also that the MBOX might not have a pipeline with 3D support (

Re: Prioritized event handlers

2024-11-12 Thread Nir Lisker
I'd like to understand the focus and event handling problem better. If I have a focused TextField, all key events go to it. If I have a Spinner, which is a TextField with 2 Buttons, it is focused as a single unit and consumes key events whether they are aimed at the text field or the buttons (I ass

Re: CFV: New OpenJFX Reviewer: Lukasz Kostyra

2024-11-12 Thread Nir Lisker
Vote: YES On Tue, Nov 12, 2024 at 6:24 PM Andy Goryachev wrote: > Vote: YES > > > > -andy > > > > > > > > *From: *openjfx-dev on behalf of Kevin > Rushforth > *Date: *Tuesday, November 12, 2024 at 08:23 > *To: *openjfx-dev , Lukasz Kostyra < > lukasz.kost...@oracle.com> > *Subject: *CFV: New O

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: Proposal: JavaFX Incubator Modules

2024-11-06 Thread Nir Lisker
Being able to add an API without the guarantee for backwards compatibility (temporarily) is obviously alleviating to the developers and will ensure a better end result. My only concern is the amount of usability this can get. Incubating modules usually offer a substantial amount of code. In the JDK

Re: JEP: JavaFX controls in the title bar

2024-11-05 Thread Nir Lisker
By the way, I came across this project: https://github.com/xdsswar/nfx-lib?tab=readme-ov-file. It's only for Windows, but allows manipulation of the title bar. Might be good to compare with in terms of functionality. On Mon, Oct 28, 2024 at 8:27 PM Andy Goryachev wrote: > Dear Michael: > > > > C

Re: CFV: New OpenJFX Reviewer: Michael Strauß

2024-11-05 Thread Nir Lisker
Vote: YES On Tue, Nov 5, 2024 at 5:02 PM Kevin Rushforth wrote: > Vote: YES > > > On 11/5/2024 7:01 AM, Kevin Rushforth wrote: > > I hereby nominate Michael Strauß [1] to OpenJFX Reviewer. >

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

2024-10-29 Thread Nir Lisker
On Tue, 29 Oct 2024 21:47:53 GMT, John Hendrikx wrote: > > > Also something that just occurred to me, but perhaps I'm late to the > > > party; with the current API being on `Node` you could call > > > `requestFocusTraversal` on basically any `Node`, even one that is > > > currently not focused

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

2024-10-29 Thread Nir Lisker
On Tue, 29 Oct 2024 21:31:59 GMT, John Hendrikx wrote: > Also something that just occurred to me, but perhaps I'm late to the party; > with the current API being on `Node` you could call `requestFocusTraversal` > on basically any `Node`, even one that is currently not focused. I'm not sure > i

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

2024-10-29 Thread Nir Lisker
On Tue, 29 Oct 2024 16:00:43 GMT, Kevin Rushforth wrote: >> Sure: >> >> >> String s = switch(val) { >> case 1 -> >> "one"; >> case 2 -> >> "two"; >> default -> >> "unknown"; >> }; > > That isn't an example of "everything on one line". That's effectively the > "switch case :, on

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

2024-10-28 Thread Nir Lisker
On Mon, 28 Oct 2024 16:13:37 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 work is loosely based on the patch >> https://cr.openjdk.org/~jgiles/

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

2024-10-26 Thread Nir Lisker
On Fri, 25 Oct 2024 16:22:01 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 work is loosely based on the patch >> https://cr.openjdk.org/~jgiles/

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

2024-10-26 Thread Nir Lisker
On Fri, 25 Oct 2024 17:40:36 GMT, John Hendrikx wrote: >> Of these, I like `requestFocusTraversal` best. Another alternative: >> `requestMoveFocus`. > > Plain `requestFocus` can also work as it can be overloaded with the direction > parameter. I like the overloaded `requestFocus` idea as well.

Re: Proposal: Focus Traversal API

2024-10-23 Thread Nir Lisker
> > My only problem with a more assertive “moveFocus” is that it implies a > success True, but the JDK already uses it everywhere. Mutation methods on collections are all named as definitive actions even if they don't succeed. In general, setters might also fail (usually in the case of NPE), but

Re: RFR: 8313424: JavaFX controls in the title bar [v3]

2024-10-22 Thread Nir Lisker
On Sun, 20 Oct 2024 01:23:01 GMT, Michael Strauß wrote: >> This PR is a new take on a highly requested feature: JavaFX controls in the >> header bar (see also #594 for an earlier iteration). >> >> This is a feature with many possible ways to skin the cat, and it has taken >> quite a bit of eff

Re: [Feature Proposal]: TriangleMesh - Vertex Color Support

2024-10-18 Thread Nir Lisker
getVertexIndexSize() to > TriangleMesh as well, since there would be no way to get this information > anymore. > > Should I continue with this approach, or should we discuss further? > > On Wed, Oct 16, 2024 at 1:57 AM Nir Lisker wrote: > >> I've got no objections

Re: [External] : Re: JavaFX Direct3D 12 rendering pipeline for Windows

2024-10-17 Thread Nir Lisker
calls made from Java side. > > - There might be some implications related to using jextract on > third-party headers that we are unsure of and would require additional > approvals before proceeding with this specific approach. > > > > The most reasonable/probable FFM use woul

Re: RFR: 8301761: The sorting of the SortedList can become invalid [v4]

2024-10-16 Thread Nir Lisker
On Mon, 7 Oct 2024 16:25:22 GMT, Loay Ghreeb wrote: >> Fix an issue in `SortedList` where the sorting became incorrect when adding >> new items that are equal to existing items according to the comparator. The >> `SortedList` should consider the insertion index of these items to maintain >> th

Re: [Feature Proposal]: TriangleMesh - Vertex Color Support

2024-10-16 Thread Nir Lisker
is likely to > change (which would be the benefit of a method), and it avoids clutter for > a simple operation. > > I'm happy with this approach, shall I go ahead and make those changes? > > On Wed, Oct 9, 2024, 2:24 PM Nir Lisker wrote: > >> The code snippet return

  1   2   3   4   5   6   7   8   9   >