Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v4]

2025-01-17 Thread Marius Hanl
On Thu, 16 Jan 2025 22:46:39 GMT, Andy Goryachev wrote: >> Good to know, we should document your solution in more detail (and with the >> concrete fix -> code snippet from the RTA) together with the HSB bug as a >> new ticket probably? Then we may already have a potential solution with >> code

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v4]

2025-01-16 Thread Marius Hanl
On Thu, 16 Jan 2025 15:47:04 GMT, Andy Goryachev wrote: >> That is right, but the `pulse` call will call `layout`, which will call >> `layoutChildren` (when needed). I could also just call `layout` directly, >> but want to keep it the same way as the actual Application would behave. > > Relying

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2025-01-16 Thread Marius Hanl
On Thu, 16 Jan 2025 19:51:29 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/skin/TreeTableRowSkin.java >> line 221: >> >>> 219: /** {@inheritDoc} */ >>> 220: @Override protected void layoutChildren(double x, double y, double >>> w, double h) {

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v6]

2025-01-16 Thread Marius Hanl
On Thu, 16 Jan 2025 20:50:47 GMT, Andy Goryachev wrote: > The not-so-good news is that there is a configuration when the HSB remains, > but once you click on it it disappears (might be hard to reproduce). In both > this PR and with the master branch, the HSB remains even though it's not > need

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2025-01-16 Thread Marius Hanl
On Thu, 16 Jan 2025 12:26:19 GMT, Marius Hanl wrote: >> This is more likely an 'accidential' fix. I changed this code because the >> code in the super class changed (e.g. `updateCells` and `updateChildren`). >> So while I see your point, if possible I would not tr

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v6]

2025-01-16 Thread Marius Hanl
irtualFlow` sheet (as > children). This will cause them to actually do the layout when requested, and > especially when the height of the `TableView` changed drastically (e.g. from > 50 visible cells to just 10), we have 40 cells laying around, receiving the > layout request I added t

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2025-01-16 Thread Marius Hanl
On Thu, 16 Jan 2025 12:18:03 GMT, Marius Hanl wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/skin/TreeTableRowSkin.java >> line 221: >> >>> 219: /** {@inheritDoc} */ >>> 220: @Override protected void layoutChildren(double

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v5]

2025-01-16 Thread Marius Hanl
irtualFlow` sheet (as > children). This will cause them to actually do the layout when requested, and > especially when the height of the `TableView` changed drastically (e.g. from > 50 visible cells to just 10), we have 40 cells laying around, receiving the > layout request I added

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2025-01-16 Thread Marius Hanl
On Wed, 15 Jan 2025 19:22:50 GMT, Jose Pereda wrote: >> Marius Hanl has refreshed the contents of this pull request, and previous >> commits have been removed. The incremental views will show differences >> compared to the previous content of the PR. The pull request co

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v4]

2025-01-16 Thread Marius Hanl
On Thu, 16 Jan 2025 11:12:25 GMT, Jose Pereda wrote: >> Unfortunately I don't think there is any other way. The `VirtualFlow` needs >> two pulses (in real life applications) as the first time, the layout is not >> yet correct for some cases (e.g. for `No ScrollBar` -> `ScrollBar`). I even >> u

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v4]

2025-01-16 Thread Marius Hanl
On Wed, 15 Jan 2025 18:50:58 GMT, Jose Pereda wrote: >> Marius Hanl has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains four commits: >> >> - Merge branch 'master' of https://github.com/openjdk/j

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v4]

2025-01-16 Thread Marius Hanl
On Thu, 16 Jan 2025 07:18:07 GMT, Johan Vos wrote: >> Marius Hanl has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains four commits: >> >> - Merge branch 'master' of https://github.com/openjdk/j

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v4]

2024-12-19 Thread Marius Hanl
irtualFlow` sheet (as > children). This will cause them to actually do the layout when requested, and > especially when the height of the `TableView` changed drastically (e.g. from > 50 visible cells to just 10), we have 40 cells laying around, receiving the > layout request I added t

Re: RFR: 8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup [v2]

2024-12-19 Thread Marius Hanl
On Tue, 10 Dec 2024 23:28:05 GMT, Andy Goryachev wrote: >> It will be much better after https://github.com/openjdk/jfx/pull/1644 :) > > can you apply the same treatment as in #1644? there at least it makes sense. I would say, lets merge https://github.com/openjdk/jfx/pull/1644 first and then i

Integrated: 8218745: TableView: visual glitch at borders on horizontal scrolling

2024-12-17 Thread Marius Hanl
On Thu, 23 May 2024 21:51:55 GMT, Marius Hanl wrote: > Alternative PR to https://github.com/openjdk/jfx/pull/1330 which does not > modify the layout of `VirtualFlow`. > > This PR fixes the glitching by removing the code in `NGNode.renderRectClip`, > which made many calculat

Integrated: 8345937: Update JUnit to 5.11.3

2024-12-16 Thread Marius Hanl
On Tue, 10 Dec 2024 18:07:44 GMT, Marius Hanl wrote: > The JUnit Platform got some updates over the last years, so it is a good idea > to update it to the newest version. > > That is from `5.8.1` to `5.11.3`. > Affected dependencies: > - `junit.jupiter` > - `junit.plat

Re: RFR: 8346222: SwingNodePlatformExitCrashTest fails with JUnit 5.11.3

2024-12-14 Thread Marius Hanl
On Fri, 13 Dec 2024 19:46:54 GMT, Kevin Rushforth wrote: > This PR fixes a latent test bug in test bug in > `SwingNodePlatformExitCrashTest` by setting a flag to skip shutdown rather > than relying on a quirk of JUnit 5.8.1. > > I discovered this while testing PR #1662 which updates JUnit to 5

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v7]

2024-12-12 Thread Marius Hanl
On Thu, 12 Dec 2024 19:52:53 GMT, Andy Goryachev wrote: > please address the merge conflict. ? - PR Comment: https://git.openjdk.org/jfx/pull/1462#issuecomment-2540033618

Re: RFR: 8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup [v2]

2024-12-10 Thread Marius Hanl
On Tue, 10 Dec 2024 22:03:04 GMT, Andy Goryachev wrote: >> Yes, IntelliJ actually gave me the hint. >> `isVisible` can only be `false`, when a `fixedCellSize` is set. So the else >> branch can only ever be executed when `fixedCellSize > 0` > > it's hard to tell (for me): there are just too many

Re: RFR: 8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup [v2]

2024-12-10 Thread Marius Hanl
On Tue, 10 Dec 2024 21:10:54 GMT, Andy Goryachev wrote: >> Marius Hanl has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contain

RFR: 8345937: Update JUnit Platform to newest version

2024-12-10 Thread Marius Hanl
The JUnit Platform got some updates over the last years, so it is a good idea to update it to the newest version. That is from `5.8.1` to `5.11.3`. Affected dependencies: - `junit.jupiter` - `junit.platform` - `opentest4j` Release notes: https://junit.org/junit5/docs/5.11.3/release-notes/ Note:

Re: RFR: 8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup [v2]

2024-12-09 Thread Marius Hanl
org/browse/JDK-8246745). > Helps a bit with [JDK-8185887](https://bugs.openjdk.org/browse/JDK-8185887) > (https://github.com/openjdk/jfx/pull/1644), but as written above, not > required as there is no (visible) effect. Marius Hanl has updated the pull request with a new target base due

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v7]

2024-12-09 Thread Marius Hanl
gt; When a Rectangle is used as clip without any effect or opacity modification, > the rendering goes another (probably faster) route with rendering the clip. > That's why setting the `opacity` to `0.99` fixes the issue - another route > will be used for the rendering. > This happ

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2024-12-09 Thread Marius Hanl
On Thu, 5 Dec 2024 15:32:33 GMT, Andy Goryachev wrote: > By the way, a Tree/TableView with 500 columns is barely usable - locks up the > UI giving me a macOS spinning beach ball quite often. Not that it's a > reasonable use case. 200 is ok. May be the 500 case can be used for profiling? With f

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v3]

2024-12-09 Thread Marius Hanl
irtualFlow` sheet (as > children). This will cause them to actually do the layout when requested, and > especially when the height of the `TableView` changed drastically (e.g. from > 50 visible cells to just 10), we have 40 cells laying around, receiving the > layout request I added t

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2024-12-09 Thread Marius Hanl
On Thu, 5 Dec 2024 09:24:13 GMT, Marius Hanl wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/skin/TreeTableRowSkin.java >> line 228: >> >>> 226: if (disclosureNodeDirty) { >>> 227: updat

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2024-12-05 Thread Marius Hanl
On Wed, 4 Dec 2024 09:18:41 GMT, Ambarish Rapte wrote: > I tested the PR changes with a few a11y scenarios, and did not observe any > issues. Thank you for testing! Out of interesting, is it 'enough' to test with the `Narrator` application on Windows 11? - PR Comment: https://git

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v6]

2024-12-05 Thread Marius Hanl
On Wed, 4 Dec 2024 12:27:54 GMT, Ambarish Rapte wrote: >> Marius Hanl has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains six commits: >> >> - Merge branch 'master' of https://github.com/openjdk/jfx

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2024-12-05 Thread Marius Hanl
On Wed, 4 Dec 2024 20:13:31 GMT, Andy Goryachev wrote: > It feels like the horizontal scrolling has improved a bit, the vertical > exhibits the same slight hiccups as with the master branch. Yes, especially if you try with many columns (> 100), scrolling up and down is much faster (especially

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2024-12-05 Thread Marius Hanl
On Wed, 4 Dec 2024 19:59:37 GMT, Andy Goryachev wrote: >> Marius Hanl has refreshed the contents of this pull request, and previous >> commits have been removed. The incremental views will show differences >> compared to the previous content of the PR. The pull request co

Re: RFR: 8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup

2024-12-05 Thread Marius Hanl
On Wed, 4 Dec 2024 16:22:18 GMT, Andy Goryachev wrote: >> This PR improves the `Tree-/TableRowSkin` code by doing a normal live lookup >> for the `fixedCellSize` instead of adding listener just to update >> variables(`fixedCellSizeEnabled` and `fixedCellSize`) which can otherwise be >> also ju

Re: RFR: 8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup

2024-12-05 Thread Marius Hanl
On Wed, 4 Dec 2024 16:20:48 GMT, Andy Goryachev wrote: >> This PR improves the `Tree-/TableRowSkin` code by doing a normal live lookup >> for the `fixedCellSize` instead of adding listener just to update >> variables(`fixedCellSizeEnabled` and `fixedCellSize`) which can otherwise be >> also ju

Aw: A new theme for JavaFX

2024-12-03 Thread Marius Hanl
I like this idea and also agree that Modena looks dated.I also understand John's concerns. In my mind, I would mix both approaches:- A new Theme that follows modern approaches and make use of the new features like media queries- The theme is therefore more accessible (by default), takes into accoun

Aw: CSS Media Queries

2024-12-03 Thread Marius Hanl
I also agree that this is a good idea. As of now, we can only change the theme by reacting to the Platform Preferences (listener) and change the Stylesheet of the Scene(s). I'm not sure how well this works as I never tried it as of now (Might even be problematic for Tooltips, Dialogs and Dialogs wi

Integrated: 8344899: Map RT-nnnn bug IDs to JDK-mmmmmmm in JavaFX sources

2024-12-02 Thread Marius Hanl
On Sat, 23 Nov 2024 23:42:42 GMT, Marius Hanl wrote: > This PR changes all `RT-` references to `JDK-XXX`. > It also removes all `http://javafx-jira.kenai.com/browse/` occurrences. > > As discussed, this will help a lot when looking up old issues, especially > since not

Re: RFR: 8345261: Refactor the Dimension2D classes

2024-12-02 Thread Marius Hanl
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` became a record. > * `javafx.geometry.Di

Re: RFR: 8344899: Map RT-nnnn bug IDs to JDK-mmmmmmm in JavaFX sources [v3]

2024-11-29 Thread Marius Hanl
On Thu, 28 Nov 2024 12:52:33 GMT, Marius Hanl wrote: >> This PR changes all `RT-` references to `JDK-XXX`. >> It also removes all `http://javafx-jira.kenai.com/browse/` occurrences. >> >> As discussed, this will help a lot when looking up old issues, especially

Re: RFR: 8344899: Map RT-nnnn bug IDs to JDK-mmmmmmm in JavaFX sources [v4]

2024-11-29 Thread Marius Hanl
` number in the > JIRA. > > Thanks to @kevinrushforth who provided the mapping! > I wrote a small Java program that replaces all the occurrences. This includes > the following files: > - `.java, .css, .m, .h, .cc, .vert, .jsl, .c, .cpp` Marius Hanl has updated the pull request with

Re: RFR: 8344899: Map RT-nnnn bug IDs to JDK-mmmmmmm in JavaFX sources [v2]

2024-11-28 Thread Marius Hanl
On Wed, 27 Nov 2024 14:52:51 GMT, Kevin Rushforth wrote: > Looks good except for a few changes in `StylesheetTest.java` where the > `RT-n` refers to a filename and thus should be reverted. Checked the whole project with: `JDK-[\d]*.[\w]` and `JDK-[\d]*-`. No other occurrences found other t

Re: RFR: 8344899: Map RT-nnnn bug IDs to JDK-mmmmmmm in JavaFX sources [v3]

2024-11-28 Thread Marius Hanl
` number in the > JIRA. > > Thanks to @kevinrushforth who provided the mapping! > I wrote a small Java program that replaces all the occurrences. This includes > the following files: > - `.java, .css, .m, .h, .cc, .vert, .jsl, .c, .cpp` Marius Hanl has updated the pull request

Re: RFR: 8344899: Map RT-nnnn bug IDs to JDK-mmmmmmm in JavaFX sources [v2]

2024-11-28 Thread Marius Hanl
On Wed, 27 Nov 2024 14:49:43 GMT, Kevin Rushforth wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8344899: Remove occurrences of old JIRA tickets >> >> Including: >>

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

2024-11-26 Thread Marius Hanl
On Tue, 26 Nov 2024 18:50:18 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 >> already written

Re: RFR: 8344899: Map RT-nnnn bug IDs to JDK-mmmmmmm in JavaFX sources [v2]

2024-11-26 Thread Marius Hanl
` number in the > JIRA. > > Thanks to @kevinrushforth who provided the mapping! > I wrote a small Java program that replaces all the occurrences. This includes > the following files: > - .`java, .css, .m, .h, .cc, .vert, .jsl, .c, .cpp` Marius Hanl has updated the pull request

Re: RFR: 8342703: CSS transition is not started when initial value was not specified

2024-11-25 Thread Marius Hanl
On Mon, 25 Nov 2024 12:35:49 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/java/javafx/scene/Scene.java line 607: >> >>> 605: * CSS state (see {@link Node#initialCssState}. >>> 606: */ >>> 607: private final Set clearInitialCssStateNodes = >>> Collections.newSetFr

Re: RFR: 8342703: CSS transition is not started when initial value was not specified

2024-11-25 Thread Marius Hanl
On Mon, 21 Oct 2024 15:32:28 GMT, Michael Strauß wrote: > When the initial value of a styleable property is not specified in a > stylesheet, no transition is started: > > .button { > transition: -fx-opacity 1s; > } > > .button:hover { > -fx-opacity: 0.5; > }

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

2024-11-25 Thread Marius Hanl
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. The corrections look good to me. - Marked as reviewed by mhanl (Committer). PR Review: https://git.openjdk.org/jfx/

Re: RFR: 8344899: Map RT-nnnn bug IDs to JDK-mmmmmmm in JavaFX sources

2024-11-23 Thread Marius Hanl
On Sat, 23 Nov 2024 23:42:42 GMT, Marius Hanl wrote: > This PR changes all `RT-` references to `JDK-XXX`. > It also removes all `http://javafx-jira.kenai.com/browse/` occurrences. > > As discussed, this will help a lot when looking up old issues, especially > since not

RFR: 8344899: Map RT-nnnn bug IDs to JDK-mmmmmmm in JavaFX sources

2024-11-23 Thread Marius Hanl
This PR changes all `RT-` references to `JDK-XXX`. It also removes all `http://javafx-jira.kenai.com/browse/` occurrences. As discussed, this will help a lot when looking up old issues, especially since not everybody know how to do a lookup with the `RT-` number in the JIRA. Thanks t

Integrated: 8341687: Memory leak in TableView after interacting with TableMenuButton

2024-11-23 Thread Marius Hanl
On Sat, 16 Nov 2024 00:58:47 GMT, Marius Hanl wrote: > There are multiple issues in the `TableMenu` logic that result in a memory > leak. > > The following problems are now fixed with this PR: > - The listener, that is registered to the `col.visibleProperty()` was not > we

Re: RFR: 8341687: Memory leak in TableView after interacting with TableMenuButton [v2]

2024-11-22 Thread Marius Hanl
On Fri, 22 Nov 2024 18:09:07 GMT, Andy Goryachev wrote: >> maybe we we should do a small cleanup ticket where we replace all `JBS-` and >> `RT-` references with the `JDK-` one? A quick check led to around 120 >> occurrences. > > and maybe fix the RT- references as well, though it might be a bit

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2024-11-22 Thread Marius Hanl
On Fri, 22 Nov 2024 20:55:27 GMT, Kevin Rushforth wrote: > We will need to check that this doesn't impact accessibility, since there are > some "interesting" cases where cells are requested and a layout pass is done > even when they aren't visible. Good point! Checking `getPrivateCell`, I wond

Re: RFR: 8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup

2024-11-22 Thread Marius Hanl
On Fri, 22 Nov 2024 20:31:08 GMT, Marius Hanl wrote: > This PR improves the `Tree-/TableRowSkin` code by doing a normal live lookup > for the `fixedCellSize` instead of adding listener just to update > variables(`fixedCellSizeEnabled` and `fixedCellSize`) which can otherwise be &g

RFR: 8277000: Tree-/TableRowSkin: replace listener to fixedCellSize by live lookup

2024-11-22 Thread Marius Hanl
This PR improves the `Tree-/TableRowSkin` code by doing a normal live lookup for the `fixedCellSize` instead of adding listener just to update variables(`fixedCellSizeEnabled` and `fixedCellSize`) which can otherwise be also just lookup'd without the hassle of listeners. While this is mostly a

Re: RFR: 8341687: Memory leak in TableView after interacting with TableMenuButton [v2]

2024-11-22 Thread Marius Hanl
On Mon, 18 Nov 2024 16:13:35 GMT, Andy Goryachev wrote: >> Marius Hanl has updated the pull request incrementally with one additional >> commit since the last revision: >> >> 8341687: Add more tests > > modules/javafx.controls/src/main/java/javafx/scene/co

Re: RFR: 8341687: Memory leak in TableView after interacting with TableMenuButton [v2]

2024-11-22 Thread Marius Hanl
On Mon, 18 Nov 2024 20:21:29 GMT, Andy Goryachev wrote: >> I tried, but it isn't that easy - since the memory is not leaked because we >> keep some references we should not keep - rather we are adding listener >> again and again and again. So we can not assert things to be collectable, as >> t

Re: RFR: 8341687: Memory leak in TableView after interacting with TableMenuButton [v2]

2024-11-22 Thread Marius Hanl
The fix is to add the listeners once - when the `MenuItem` is created. > This way, when the `TableMenu` is rebuild and the cached `MenuItem` is used, > the whole listener logic is not run again for the column Marius Hanl has updated the pull request incrementally with one additional commit sin

Re: RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction [v2]

2024-11-22 Thread Marius Hanl
irtualFlow` sheet (as > children). This will cause them to actually do the layout when requested, and > especially when the height of the `TableView` changed drastically (e.g. from > 50 visible cells to just 10), we have 40 cells laying around, receiving the > layout request I added

RFR: 8185887: TableRowSkinBase fails to correctly virtualize cells in horizontal direction

2024-11-22 Thread Marius Hanl
This PR fixes the horizontal virtualization performed in the `TableRowSkinBase`, which significantly improves performance with many columns (and thus many cells). Scrolling up and down as well as scrolling left and right feels much more snappy. In order to do that, there are multiple things nee

Re: RFR: 8341687: Memory leak in TableView after interacting with TableMenuButton

2024-11-18 Thread Marius Hanl
On Mon, 18 Nov 2024 16:19:20 GMT, Andy Goryachev wrote: >> There are multiple issues in the `TableMenu` logic that result in a memory >> leak. >> >> The following problems are now fixed with this PR: >> - The listener, that is registered to the `col.visibleProperty()` was not >> weak nor was i

RFR: 8341687: Memory leak in TableView after interacting with TableMenuButton

2024-11-15 Thread Marius Hanl
There are multiple issues in the `TableMenu` logic that result in a memory leak. The following problems are now fixed with this PR: - The listener, that is registered to the `col.visibleProperty()` was not weak nor was it ever unregistered - The fix is to do pretty much the same that was alrea

Re: RFR: 8290037: Bindings should clean up after themselves when their weak listeners go out of scope [v2]

2024-11-15 Thread Marius Hanl
On Thu, 14 Jul 2022 19:48:04 GMT, John Hendrikx wrote: >> This is an initial (incomplete) implementation of 8290037 for evaluation. >> >> If the approach is agreed, I will modify the rest of the `*PropertyBase` >> classes which use weak listeners, and add some tests. >> >> I didn't use `Cleane

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v6]

2024-11-14 Thread Marius Hanl
gt; When a Rectangle is used as clip without any effect or opacity modification, > the rendering goes another (probably faster) route with rendering the clip. > That's why setting the `opacity` to `0.99` fixes the issue - another route > will be used for the rendering. > This happ

Integrated: 8344067: TableCell indices may not match the TableRow index

2024-11-14 Thread Marius Hanl
On Tue, 12 Nov 2024 21:11:56 GMT, Marius Hanl wrote: > This PR fixes a bug where the `TableCell` indices can be outdated (not > synchronized) with the `TableRow` index. > > What normally happens is: > - Index is changed: Cell update is requested when the row is empty (ot

Re: RFR: 8344067: TableCell indices may not match the TableRow index [v2]

2024-11-13 Thread Marius Hanl
uarantee that the item changed, as we can see > in the example, where the cell is reused). > > --- > > Also made sure that the issues linked in the code and ticket do not regress: > - https://bugs.openjdk.org/browse/JDK-8095357 > - https://bugs.openjdk.org/browse/JDK-8115269 Marius Hanl has

Re: RFR: 8344067: TableCell indices may not match the TableRow index [v2]

2024-11-13 Thread Marius Hanl
On Wed, 13 Nov 2024 18:10:49 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/test/java/test/javafx/scene/control/TableViewRowTest.java >> line 222: >> >>> 220: row.updateIndex(0); >>> 221: >>> 222: List> cells = >>> row.getChildrenUnmodifiable().stream(). >> >> mino

Re: RFR: 8344067: TableCell indices may not match the TableRow index

2024-11-13 Thread Marius Hanl
On Wed, 13 Nov 2024 18:07:37 GMT, Andy Goryachev wrote: > The bug is present in TableView and TreeTableView, but not TreeView - is this > correct? Yes since `ListView` and `TreeView` do not need to do any synchronization when their index or item changed. But I did not test them. > modules/jav

RFR: 8344067: TableCell indices can be outdated with the TableRow index

2024-11-12 Thread Marius Hanl
This PR fixes a bug where the `TableCell` indices can be outdated (not synchronized) with the `TableRow` index. What normally happens is: - Index is changed: Cell update is requested when the row is empty (otherwise noop) - Item is changed: Cell update is requested, which will now update the ind

Aw: CFV: New OpenJFX Committer: Jayathirth D V

2024-11-12 Thread Marius Hanl
Vote: Yes.-- MariusAm 08.11.24, 14:50 schrieb 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]. Vo

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v2]

2024-10-22 Thread Marius Hanl
On Tue, 4 Jun 2024 12:33:06 GMT, Marius Hanl wrote: >> you are right: I see the focus rectangle jitter at 175% scale on win 11 (w/o >> the fix), so it must be a different issue. At this scale, it merely shows a >> thinner line, perhaps that's why I did not notice i

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v5]

2024-10-22 Thread Marius Hanl
ct or opacity modification, > the rendering goes another (probably faster) route with rendering the clip. > That's why setting the `opacity` to `0.99` fixes the issue - another route > will be used for the rendering. > This happens at the low level (`NGNode`) side of JavaFX. > .

Re: RFR: 8285893: Hiding dialog and showing new one causes dialog to be frozen [v10]

2024-10-22 Thread Marius Hanl
(although the nested event loop code is the same as for > Mac) (I would appreciate if someone can do this as I have no access to an iOS > device) > - [x] Adjust copyright > - [x] Write Systemtest > - [x] Document the new behaviour - in general, there should be more > inform

Aw: JavaFX Direct3D 12 rendering pipeline for Windows

2024-10-14 Thread Marius Hanl
In my opinion this is a nice change. Modernizing the Windows backend of JavaFX is a good idea and will also enable us to use more modern features if needed. There should be some performance improvements as well. Even though Direct3d9 works and is not deprecated, I still think it is good to move

Aw: Proposal: Bump minimum JDK for JavaFX 24 to JDK 22

2024-10-14 Thread Marius Hanl
I've been thinking about this for a few weeks and agree with the general consensus. For me personally, it will make things more tricky as big customers (that usually have their own IT department) stick to 'LTS' versions and there is not too much you can do against that (I tried). Sometimes there

Re: RFR: 8340954: Add SECURITY.md file

2024-09-25 Thread Marius Hanl
On Wed, 25 Sep 2024 21:08:41 GMT, Kevin Rushforth wrote: > A `SECURITY.md` file was recently added to the jdk repo. GitHub will show > that policy if you click on the ["Security" > tab](https://github.com/openjdk/jdk/security) of the jdk repo -- If you are > logged in, you may need to further

Re: RFR: 8328629: JUnit test without a timeout value can hang indefinitely [v2]

2024-09-24 Thread Marius Hanl
On Fri, 20 Sep 2024 18:21:04 GMT, Kevin Rushforth wrote: >> This PR adds a default timeout of 120 seconds for JUnit 5 tests that do not >> have an explicit `@Timeout` on either the methods or the class, and a >> default timeout of 20 seconds for lifecycle methods (e.g., `@BeforeEach`, >> `@Bef

Re: RFR: 8339512: [TestBug] Convert graphics tests to JUnit 5 [v3]

2024-09-23 Thread Marius Hanl
On Mon, 23 Sep 2024 09:14:02 GMT, Lukasz Kostyra wrote: >> This PR converts all tests in `modules/javafx.graphics` to use JUnit5. >> >> ## Details >> >> Trivial changes resolved by first four commits: >> - Import changes to use `org.junit.jupiter` package instead of `org.junit` >> or `junit.fr

Re: RFR: 8339512: [TestBug] Convert graphics tests to JUnit 5 [v2]

2024-09-22 Thread Marius Hanl
On Fri, 20 Sep 2024 13:31:06 GMT, Lukasz Kostyra wrote: >> This PR converts all tests in `modules/javafx.graphics` to use JUnit5. >> >> ## Details >> >> Trivial changes resolved by first four commits: >> - Import changes to use `org.junit.jupiter` package instead of `org.junit` >> or `junit.fr

Re: RFR: 8338468: [TestBug] Convert controls tests to JUnit 5 [v3]

2024-09-22 Thread Marius Hanl
On Wed, 18 Sep 2024 15:36:53 GMT, Andy Goryachev wrote: >> Converting control module tests to junit5. >> >> The following notes might help reviewers and people migrating other parts of >> https://bugs.openjdk.org/browse/JDK-8339170. The direct link to the notes: >> https://github.com/andy-gory

Re: RFR: 8338468: [TestBug] Convert controls tests to JUnit 5 [v4]

2024-09-22 Thread Marius Hanl
On Fri, 20 Sep 2024 20:47:06 GMT, Andy Goryachev wrote: >> Converting control module tests to junit5. >> >> The following notes might help reviewers and people migrating other parts of >> https://bugs.openjdk.org/browse/JDK-8339170. The direct link to the notes: >> https://github.com/andy-gory

Re: RFR: 8339512: [TestBug] Convert graphics tests to JUnit 5

2024-09-19 Thread Marius Hanl
On Thu, 19 Sep 2024 09:34:20 GMT, Lukasz Kostyra wrote: >> modules/javafx.graphics/src/test/java/test/com/sun/javafx/sg/prism/DirtyRegionTestBase.java >> line 76: >> >>> 74: return Stream.concat(stream, Stream.of(arg)); >>> 75: } >>> 76: >> >> same comment: `List` might also work

Re: RFR: 8338468: [TestBug] Convert controls tests to JUnit 5 [v2]

2024-09-18 Thread Marius Hanl
On Wed, 18 Sep 2024 11:09:29 GMT, Kevin Rushforth wrote: >> modules/javafx.controls/src/test/java/test/javafx/scene/chart/NumberAxisTest.java >> line 261: >> >>> 259: @Test >>> 260: public void testCloseValues() { >>> 261: assertTimeout(Duration.ofMillis(1000), () -> { >> >> Co

Re: RFR: 8339515: [TestBug] Convert web tests to JUnit 5 [v10]

2024-09-18 Thread Marius Hanl
On Tue, 17 Sep 2024 13:48:50 GMT, Jay Bhaskar wrote: >> Successfully converted web tests from JUnit 4 to JUnit 5, ensuring all tests >> are fully compliant with the JUnit 5 framework. > > Jay Bhaskar has updated the pull request incrementally with one additional > commit since the last revision

Re: RFR: 8338468: [TestBug] Convert controls tests to JUnit 5 [v2]

2024-09-17 Thread Marius Hanl
On Mon, 16 Sep 2024 16:34:39 GMT, Andy Goryachev wrote: >> Converting control module tests to junit5. >> >> The following notes might help reviewers and people migrating other parts of >> https://bugs.openjdk.org/browse/JDK-8339170. The direct link to the notes: >> https://github.com/andy-gory

Re: RFR: 8338468: [TestBug] Convert controls tests to JUnit 5 [v2]

2024-09-17 Thread Marius Hanl
On Mon, 16 Sep 2024 15:23:48 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/test/java/test/com/sun/javafx/scene/control/behavior/AccordionBehaviorTest.java >> line 39: >> >>> 37: >>> 38: @Test >>> 39: public void focusGainedIsCaughtByBehavior() { >> >> Wait, is this an empt

Re: RFR: 8339513: [TestBug] Convert fxml tests to JUnit 5 [v2]

2024-09-16 Thread Marius Hanl
On Mon, 16 Sep 2024 11:04:24 GMT, Ajit Ghaisas wrote: >> This converts FXML module tests to junit5. >> >> All changes are trivial API replacements from junit4 to junit5. >> There are no parameterized tests in this module. > > Ajit Ghaisas has updated the pull request incrementally with one addit

Re: RFR: 8339550: Enable javac lint options for tests

2024-09-16 Thread Marius Hanl
On Fri, 13 Sep 2024 14:52:22 GMT, Kevin Rushforth wrote: > This PR enables the `removal` lint option, along with `-Werror`, for > compiling shims and test classes. In order to do that, I had to also do the > following: > > * Disable the `options` lint warning as is done for the `javafx.swing`

Re: RFR: 8339515: [TestBug] Convert web tests to JUnit 5 [v4]

2024-09-16 Thread Marius Hanl
On Sun, 15 Sep 2024 23:53:20 GMT, Jay Bhaskar wrote: >> modules/javafx.web/src/test/java/test/javafx/scene/web/SubresourceIntegrityTest.java >> line 99: >> >>> 97: @ParameterizedTest >>> 98: @MethodSource("dataProvider") >>> 99: public void testScriptTagWithCorrectHashValue() { >>

Re: RFR: 8338468: [TestBug] Convert controls tests to JUnit 5

2024-09-15 Thread Marius Hanl
On Tue, 10 Sep 2024 18:25:40 GMT, Andy Goryachev wrote: > Converting control module tests to junit5. > > The following notes might help reviewers and people migrating other parts of > https://bugs.openjdk.org/browse/JDK-8339170. The direct link to the notes: > https://github.com/andy-goryachev

Re: RFR: 8339515: [TestBug] Convert web tests to JUnit 5

2024-09-15 Thread Marius Hanl
On Sun, 15 Sep 2024 12:31:03 GMT, Jay Bhaskar wrote: > Successfully converted web tests from JUnit 4 to JUnit 5, ensuring all tests > are fully compliant with the JUnit 5 framework. Also one note: The copyright year was not updated, but this could also be done by the script afterwards I guess.

Re: RFR: 8339513: [TestBug] Convert fxml tests to JUnit 5

2024-09-15 Thread Marius Hanl
On Fri, 13 Sep 2024 10:45:33 GMT, Ajit Ghaisas wrote: > This converts FXML module tests to junit5. > > All changes are trivial API replacements from junit4 to junit5. > There are no parameterized tests in this module. Looks good to me too, just some formatting is off (as Andy also noticed) mod

Re: RFR: 8339515: [TestBug] Convert web tests to JUnit 5

2024-09-15 Thread Marius Hanl
On Sun, 15 Sep 2024 12:31:03 GMT, Jay Bhaskar wrote: > Successfully converted web tests from JUnit 4 to JUnit 5, ensuring all tests > are fully compliant with the JUnit 5 framework. There is one major issue with the parameterized test as far as I can see. Some minor style guide things, looks g

Re: RFR: 8338468: [TestBug] Convert controls tests to JUnit 5

2024-09-13 Thread Marius Hanl
On Tue, 10 Sep 2024 23:11:12 GMT, Andy Goryachev wrote: > It's pretty surprising that junit people thought it will be a good idea to > drop support for class-wide parameterized tests... Well, I would rephrase it: - In Junit4, you were very restricted how to write parameterized tests. You alwa

Re: RFR: 8338468: [TestBug] Convert controls tests to JUnit 5

2024-09-13 Thread Marius Hanl
On Tue, 10 Sep 2024 18:25:40 GMT, Andy Goryachev wrote: > Converting control module tests to junit5. > > Most of the changes are trivial, except for the following: > > 1. assertEquals() and similar methods: the message can be confused with the > expected argument (junit5 moved the message to t

Re: RFR: 8218745: TableView: visual glitch at borders on horizontal scrolling [v4]

2024-09-10 Thread Marius Hanl
ct or opacity modification, > the rendering goes another (probably faster) route with rendering the clip. > That's why setting the `opacity` to `0.99` fixes the issue - another route > will be used for the rendering. > This happens at the low level (`NGNode`) side of JavaFX. > .

Re: RFR: 8339726: Remove pausing code (used for testing) from AbstractPrimaryTimer

2024-09-10 Thread Marius Hanl
On Mon, 9 Sep 2024 06:23:02 GMT, John Hendrikx wrote: > This PR removes the pausing logic from AbstractPrimaryTimer. The test that > is using it wasn't actually testing anything in AbstractPrimaryTimer itself, > and no other code needs this pausing code. Looks good to me too and always good t

Aw: New CSS parser for JavaFX

2024-09-01 Thread Marius Hanl
I think this is a good idea.I have checked the CSS code some time myself and also removed all the special property checks just to see what will happen and why it is needed.With the gathered knowledge, I can confirm what you wrote down in your proposal and that you have the correct idea to sol

Re: RFR: 8337400: [Linux] Initial window position is not centered on Ubuntu 24.04 / Xorg

2024-08-19 Thread Marius Hanl
On Mon, 19 Aug 2024 00:06:07 GMT, Thiago Milczarek Sayao wrote: > It always failing for me, with this PR or without. Since I wrote them, maybe we can fix those tests for you as well and make them more stable across Linux. I think generally those tests are good to have as they can catch serious

Aw: Label Text Selection

2024-08-19 Thread Marius Hanl
I also think this might be a good addition to the JFX Core. This behavior should be off by default, but can be turned on via CSS or Code. Another idea could be a new Control that extends from Label.   -- Marius     Gesendet: Freitag, 16. August 2024 um 12:12 Uhr Von: "Dirk Lemmermann" An: "ope

Re: RFR: 8289174: JavaFX build fails on Windows when VS150COMNTOOLS is not set [v4]

2024-08-14 Thread Marius Hanl
On Wed, 14 Aug 2024 02:21:30 GMT, Kevin Rushforth wrote: >> 1. Added logic to look in the standard locations for Visual Studio 2022, >> with a fallback to 2019 and then 2017 if 2022 is not found. It will look in >> the following locations: >> >> C:("Program Files"|"Program Files (x86)")\Micros

Re: RFR: 8289174: JavaFX build fails on Windows when VS150COMNTOOLS is not set [v3]

2024-08-13 Thread Marius Hanl
On Mon, 12 Aug 2024 21:31:49 GMT, Kevin Rushforth wrote: >> 1. Added logic to look in the standard locations for Visual Studio 2022, >> with a fallback to 2019 and then 2017 if 2022 is not found. It will look in >> the following locations: >> >> C:("Program Files"|"Program Files (x86)")\Micros

  1   2   3   4   5   6   >