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

2025-04-24 Thread Michael Strauß
> Implementation of > [`StageStyle.EXTENDED`](https://gist.github.com/mstr2/0befc541ee7297b6db2865cc5e4dbd09). Michael Strauß has updated the pull request incrementally with two additional commits since the last revision: - add MenuBar to stage tester - documentation - Changes:

Re: ExpressionHelper thread-safety

2025-04-24 Thread John Hendrikx
On 25/04/2025 00:25, Christopher Schnick wrote: > > The custom wrapper solution to synchronize sounds like a good idea. I > will experiment with that. Would it not also be a solution to add such > a synchronized property wrapper class to JavaFX itself? > Yeah, it definitely could be, as long as it

Re: RFR: 8354631: [macos] JFX - java.awt.desktop.OpenURIHandler is not receiving events

2025-04-24 Thread Kevin Rushforth
On Wed, 2 Apr 2025 14:06:58 GMT, Pabulaner IV wrote: > When trying to register an open URI handler when using JavaFX with a native > menu, this task fails on Mac. > Either the native menu is not shown or the URIs are not received. > > This pull request fixes this issue if AWT is registered afte

Re: RFR: 8354943: [Linux] Simplify and update glass gtk backend: window sizing, positioning, and state management issues [v5]

2025-04-24 Thread Thiago Milczarek Sayao
On Thu, 24 Apr 2025 17:04:42 GMT, Martin Fox wrote: > I did a rough pass on macOS and Windows. There's some failures in the > StageLocation and StageAttributes tests that I haven't had time to look into. > > You might want to consider adding a few delay constants and using them > instead of th

Re: RFR: 8354943: [Linux] Simplify and update glass gtk backend: window sizing, positioning, and state management issues [v5]

2025-04-24 Thread Thiago Milczarek Sayao
On Wed, 23 Apr 2025 19:48:52 GMT, Martin Fox wrote: >> Thiago Milczarek Sayao has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Reenable RestoreSceneSizeTest (JDK-8353556) > > tests/system/src/test/java/test/javafx/stage/FullScreenTest.jav

Re: RFR: 8354795: DialogPane show details button wipes out base style class "hyperlink"

2025-04-24 Thread Andy Goryachev
On Thu, 24 Apr 2025 22:26:43 GMT, John Hendrikx wrote: > The details button is private and not documented it is not private: the method that creates it in the DialogPane:817 is protected, so the application can override it and get a pointer to the button, set styles, etc. `protected Node crea

Re: RFR: 8354943: [Linux] Simplify and update glass gtk backend: window sizing, positioning, and state management issues [v5]

2025-04-24 Thread Thiago Milczarek Sayao
On Thu, 24 Apr 2025 13:58:05 GMT, Martin Fox wrote: >> Thiago Milczarek Sayao has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Reenable RestoreSceneSizeTest (JDK-8353556) > > tests/system/src/test/java/test/javafx/stage/SizingTest.java li

Re: RFR: 8354943: [Linux] Simplify and update glass gtk backend: window sizing, positioning, and state management issues [v5]

2025-04-24 Thread Thiago Milczarek Sayao
On Thu, 24 Apr 2025 16:05:11 GMT, Martin Fox wrote: >> Thiago Milczarek Sayao has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Reenable RestoreSceneSizeTest (JDK-8353556) > > tests/system/src/test/java/test/javafx/stage/SizingTest.java li

Re: RFR: 8354795: DialogPane show details button wipes out base style class "hyperlink"

2025-04-24 Thread John Hendrikx
On Thu, 24 Apr 2025 14:50:22 GMT, Andy Goryachev wrote: > > Then we can close this, as that's what the original code does already. > > Exactly (but I like the changes you made to add/remove "more"/"less" styles, > since they won't erase any styles that the application might add during > constr

Re: ExpressionHelper thread-safety

2025-04-24 Thread Christopher Schnick
The custom wrapper solution to synchronize sounds like a good idea. I will experiment with that. Would it not also be a solution to add such a synchronized property wrapper class to JavaFX itself? The reason for why the expression helper replaces itself makes sense. However, is that still a de

Re: RFR: 8354336: gstclock.c: compilation error: 'incompatible pointer type' with gcc 14

2025-04-24 Thread Kevin Rushforth
On Wed, 23 Apr 2025 23:26:23 GMT, Alexander Matveev wrote: > - Fixed gcc 14 compiler errors. > > > ../../../gstreamer-lite/gstreamer/gst/gstclock.c: In function > 'gst_clock_entry_new': > ../../../gstreamer-lite/gstreamer/gst/gstclock.c:178:48: error: passing > argument 1 of 'g_weak_ref_init

Re: ExpressionHelper thread-safety

2025-04-24 Thread John Hendrikx
On 24/04/2025 22:07, Christopher Schnick wrote: > > Hey John, > > Thanks for taking your time on going into the details here. > > About our use case: We are actually not constructing UI in a > background thread, all nodes are initialized and added to the scene on > the platform thread. This is don

Re: RFR: 8354336: gstclock.c: compilation error: 'incompatible pointer type' with gcc 14

2025-04-24 Thread Kevin Rushforth
On Thu, 24 Apr 2025 20:56:52 GMT, Alexander Matveev wrote: >> modules/javafx.media/src/main/native/gstreamer/gstreamer-lite/gstreamer/gst/gst_private.h >> line 535: >> >>> 533: { >>> 534: GstClockEntry entry; >>> 535: #if defined (GSTREAMER_LITE) && defined(LINUX) >> >> Why is this qualifie

Re: RFR: 8354336: gstclock.c: compilation error: 'incompatible pointer type' with gcc 14

2025-04-24 Thread Alexander Matveev
On Thu, 24 Apr 2025 13:33:21 GMT, Kevin Rushforth wrote: >> - Fixed gcc 14 compiler errors. >> >> >> ../../../gstreamer-lite/gstreamer/gst/gstclock.c: In function >> 'gst_clock_entry_new': >> ../../../gstreamer-lite/gstreamer/gst/gstclock.c:178:48: error: passing >> argument 1 of 'g_weak_ref_

Re: ExpressionHelper thread-safety

2025-04-24 Thread Christopher Schnick
Hey John, Thanks for taking your time on going into the details here. About our use case: We are actually not constructing UI in a background thread, all nodes are initialized and added to the scene on the platform thread. This is done because previously instantiating nodes on other threads w

Re: What strategy would you recommend for styling large documents in CodeArea?

2025-04-24 Thread Andy Goryachev
Thank you for a very good question! The short answer is yes - it is possible to implement lazy styling in CodeArea, as well as to implement styling of large documents in a reasonable fashion. The styling is performed by the decoratorProperty of the CodeTextModel. Note: please check out the Cod

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

2025-04-24 Thread Markus Mack
On Thu, 24 Apr 2025 17:40:38 GMT, Michael Strauß wrote: > Maybe you used a layout pane inside the `HeaderBar`, and set > `HeaderBar.draggable = true` for the layout pane? This would then apply to > the entire subtree of the pane, including the `MenuBar`. Yes, the controls are in an `HBox` with

What strategy would you recommend for styling large documents in CodeArea?

2025-04-24 Thread PavelTurk
Suppose we have a very large file (1,000,000+ lines). For example, it could be an XML file or a Java class written by a beginner programmer :). The question is: how should we handle styling for such large files? The simplest solution is to apply styles to all lines at once. Another option is to

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

2025-04-24 Thread Andy Goryachev
On Thu, 24 Apr 2025 14:42:33 GMT, Michael Strauß wrote: >> Implementation of >> [`StageStyle.EXTENDED`](https://gist.github.com/mstr2/0befc541ee7297b6db2865cc5e4dbd09). > > Michael Strauß has updated the pull request with a new target base due to a > merge or a rebase. The pull request now cont

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

2025-04-24 Thread Michael Strauß
On Thu, 24 Apr 2025 09:15:15 GMT, Markus Mack wrote: > * When placing a MenuBar in the HeaderBar, dragging the window by clicking on > the menu will open the menu and drag the window away from the opened window, > which looks broken, and ComboBox and TextField don't work at all. While the > fi

Re: RFR: 8354943: [Linux] Simplify and update glass gtk backend: window sizing, positioning, and state management issues [v5]

2025-04-24 Thread Martin Fox
On Wed, 23 Apr 2025 09:46:06 GMT, Thiago Milczarek Sayao wrote: >> This is a continuation to >> [JDK-8236651](https://bugs.openjdk.org/browse/JDK-8236651) and it aims to >> stabilize the linux glass gtk backend. >> >> >> Overall, it has been made more robust within its scope, particularly in

Re: RFR: 8169285: Re-enable javafx.swt tests [v2]

2025-04-24 Thread Kevin Rushforth
On Wed, 16 Apr 2025 21:17:16 GMT, Marius Hanl wrote: >> With this change, you can now run the `swt` tests as easy as: `:swt:test >> -PSWT_TEST=true`. >> ![image](https://github.com/user-attachments/assets/928141b5-ac81-4b15-9d86-5ea87f47c1c4) >> >> Note: At one point `IS_FULL_TEST` was used as

[jfx24u] RFR: 8318985: [macos] Incorrect 3D lighting on macOS 14 and later

2025-04-24 Thread Jayathirth D V
Backport of https://bugs.openjdk.org/browse/JDK-8318985 to jfx24u. Fix is trivial and it resolves specular power issue on OpenGL pipeline for 3D primitives. - Commit messages: - Backport 2617ff5c891ba182581d323d8b424e4b8a6a6b63 Changes: https://git.openjdk.org/jfx24u/pull/25/files

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

2025-04-24 Thread Markus Mack
On Thu, 24 Apr 2025 14:36:33 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/java/javafx/stage/StageStyle.java line 113: >> >>> 111: * of the {@code Scene} to remain easily recognizable. >>> Applications should set the scene fill to a color >>> 112: * that matches the b

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

2025-04-24 Thread Michael Strauß
On Thu, 24 Apr 2025 14:55:34 GMT, Markus Mack wrote: >> How a scene background is shown is already described in `Scene.fill`. Note >> that if we get #1655, we might want to change this part of the specification >> such that the color scheme of the buttons adjusts to the color scheme of the >>

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

2025-04-24 Thread Michael Strauß
On Thu, 24 Apr 2025 15:13:45 GMT, Markus Mack wrote: >> I think that's also not what it's supposed to mean. The header buttons don't >> use the color of the scene background directly in their styling. Instead, >> they use the scene background as a proxy to gauge the color scheme of the >> enti

[jfx24u] Integrated: 8318985: [macos] Incorrect 3D lighting on macOS 14 and later

2025-04-24 Thread Jayathirth D V
On Thu, 24 Apr 2025 14:03:58 GMT, Jayathirth D V wrote: > Backport of https://bugs.openjdk.org/browse/JDK-8318985 to jfx24u. > Fix is trivial and it resolves specular power issue on OpenGL pipeline for 3D > primitives. This pull request has now been integrated. Changeset: 61b62810 Author:J

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

2025-04-24 Thread Michael Strauß
On Thu, 24 Apr 2025 15:01:24 GMT, Markus Mack wrote: >> I agree when it actually makes a semantic difference. For example, there's a >> difference between setting `Node.opacity` to zero, and setting >> `Node.visible` to `false`. In the first case, the node will still receive >> events, while i

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

2025-04-24 Thread Markus Mack
On Thu, 24 Apr 2025 15:07:10 GMT, Michael Strauß wrote: >> Ah, so I think I misunderstood this. Maybe change "is adjusted to" to "is >> adjusted to match" or "is bound to" so it's clear the fill color is used as >> the background, and not something else based on it. Also, add "elsewhere" >> af

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

2025-04-24 Thread Markus Mack
On Thu, 24 Apr 2025 14:36:52 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/native-glass/mac/GlassWindow.h line 53: >> >>> 51: BOOLisDecorated; >>> 52: BOOLisResizable; >>> 53: BOOLisStandardButtonsVisible; >> >> showSt

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

2025-04-24 Thread Markus Mack
On Thu, 24 Apr 2025 14:36:35 GMT, Michael Strauß wrote: >> modules/javafx.graphics/src/main/java/javafx/stage/StageStyle.java line 117: >> >>> 115: * Custom header buttons >>> 116: * If more control over the header buttons is desired, >>> applications can opt out of the default header

Re: RFR: 8354795: DialogPane show details button wipes out base style class "hyperlink"

2025-04-24 Thread Andy Goryachev
On Thu, 24 Apr 2025 00:01:52 GMT, John Hendrikx wrote: > Then we can close this, as that's what the original code does already. Exactly (but I like the changes you made to add/remove "more"/"less" styles, since they won't erase any styles that the application might add during construction). L

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

2025-04-24 Thread Michael Strauß
On Thu, 24 Apr 2025 08:12:57 GMT, Markus Mack wrote: >> Michael Strauß has updated the pull request incrementally with one >> additional commit since the last revision: >> >> documentation > > modules/javafx.graphics/src/main/java/com/sun/javafx/tk/TKScene.java line 89: > >> 87: public T

Integrated: 8088343: Race condition in javafx.concurrent.Task::cancel

2025-04-24 Thread Andy Goryachev
On Thu, 10 Apr 2025 21:22:21 GMT, Andy Goryachev wrote: > The code should not set the `Task.state` value to `CANCELLED` if the said > task is already `SUCCEEDED` or `FAILED`. > > This is a product bug. > > Added `@RepeatedTest(50)` to the tests that used to fail intermittently - > this made t

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

2025-04-24 Thread Michael Strauß
> Implementation of > [`StageStyle.EXTENDED`](https://gist.github.com/mstr2/0befc541ee7297b6db2865cc5e4dbd09). Michael Strauß has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 84 commits: - review comments - Merge branch 'master' int

Re: RFR: 8088343: Race condition in javafx.concurrent.Task::cancel [v3]

2025-04-24 Thread Andy Goryachev
On Wed, 16 Apr 2025 20:28:14 GMT, Andy Goryachev wrote: >> The code should not set the `Task.state` value to `CANCELLED` if the said >> task is already `SUCCEEDED` or `FAILED`. >> >> This is a product bug. >> >> Added `@RepeatedTest(50)` to the tests that used to fail intermittently - >> this

Re: RFR: 8354336: gstclock.c: compilation error: 'incompatible pointer type' with gcc 14

2025-04-24 Thread Kevin Rushforth
On Wed, 23 Apr 2025 23:26:23 GMT, Alexander Matveev wrote: > - Fixed gcc 14 compiler errors. > > > ../../../gstreamer-lite/gstreamer/gst/gstclock.c: In function > 'gst_clock_entry_new': > ../../../gstreamer-lite/gstreamer/gst/gstclock.c:178:48: error: passing > argument 1 of 'g_weak_ref_init

Integrated: 8353632: [Linux] Undefined reference to PlatformSupport::OBSERVED_SETTINGS with C++14

2025-04-24 Thread Kevin Rushforth
On Thu, 10 Apr 2025 16:11:07 GMT, Kevin Rushforth wrote: > Fixes a link error that occurs when using C++14 to compile and link JavaFX on > Linux. > > > in function `PlatformSupport::PlatformSupport(JNIEnv_*, _jobject*)': > PlatformSupport.cpp:90: undefined reference to > `PlatformSupport::OBS

Integrated: 8318985: [macos] Incorrect 3D lighting on macOS 14 and later

2025-04-24 Thread Jayathirth D V
On Wed, 23 Apr 2025 12:13:52 GMT, Jayathirth D V wrote: > When no specular color is set while rendering 3D primitives, 0.0 specular > power value is used by default in our shaders. > When same specular power value is used in pow() function in shader it results > in undefined behaviour as mentio

Re: RFR: 8088343: Race condition in javafx.concurrent.Task::cancel [v3]

2025-04-24 Thread Ambarish Rapte
On Wed, 16 Apr 2025 20:28:14 GMT, Andy Goryachev wrote: >> The code should not set the `Task.state` value to `CANCELLED` if the said >> task is already `SUCCEEDED` or `FAILED`. >> >> This is a product bug. >> >> Added `@RepeatedTest(50)` to the tests that used to fail intermittently - >> this

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

2025-04-24 Thread Markus Mack
On Sun, 23 Mar 2025 08:56:43 GMT, Michael Strauß wrote: >> We generally use "Behavior" in the context of controls. Although not wrong, >> I also think another name might be better. Maybe "Controller"? Or "Manager"? >> Or ... > > After contemplating for a while, I still think that "Behavior" is

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

2025-04-24 Thread Markus Mack
On Tue, 15 Apr 2025 10:56:31 GMT, Michael Strauß wrote: >> Implementation of >> [`StageStyle.EXTENDED`](https://gist.github.com/mstr2/0befc541ee7297b6db2865cc5e4dbd09). > > Michael Strauß has updated the pull request incrementally with one additional > commit since the last revision: > > doc

Re: RFR: 8207333: [Linux, macOS] Column sorting is triggered always after context menu request on table header

2025-04-24 Thread Jose Pereda
On Tue, 8 Apr 2025 22:41:02 GMT, Martin Fox wrote: >> definitely an unrelated issue, I just wanted to ask whether you guys think >> it crosses the threshold for a bug. > >> control+left-click works as expected for me too. > > For control+left-click it looks like the code will call > `columnReo

Re: RFR: 8353632: [Linux] Undefined reference to PlatformSupport::OBSERVED_SETTINGS with C++14 [v2]

2025-04-24 Thread Johan Vos
On Mon, 14 Apr 2025 21:04:30 GMT, Kevin Rushforth wrote: >> Fixes a link error that occurs when using C++14 to compile and link JavaFX >> on Linux. >> >> >> in function `PlatformSupport::PlatformSupport(JNIEnv_*, _jobject*)': >> PlatformSupport.cpp:90: undefined reference to >> `PlatformSuppo

Integrated: 8355413: Re-enable InitializeJavaFXLaunchTests on Xorg

2025-04-24 Thread Jayathirth D V
On Wed, 23 Apr 2025 15:27:23 GMT, Jayathirth D V wrote: > As part of https://bugs.openjdk.org/browse/JDK-8353557, > InitializeJavaFXLaunchTests were disabled as they were failing in Ubuntu24.04 > VM and product issue https://bugs.openjdk.org/browse/JDK-8353644 was created. > > But after verify

Re: RFR: 8354943: [Linux] Simplify and update glass gtk backend: window sizing, positioning, and state management issues [v5]

2025-04-24 Thread Lukasz Kostyra
On Wed, 23 Apr 2025 09:46:06 GMT, Thiago Milczarek Sayao wrote: >> This is a continuation to >> [JDK-8236651](https://bugs.openjdk.org/browse/JDK-8236651) and it aims to >> stabilize the linux glass gtk backend. >> >> >> Overall, it has been made more robust within its scope, particularly in