Re: JDK-8091393: Observable collections for ObservableMap views

2022-05-30 Thread John Hendrikx
58 schrieb John Hendrikx: It's not binary compatible, as changing the return type results in a new method that compiled code won't be able to find. See also "change result type (including void)" here: https://wiki.eclipse.org/Evolving_Java-based_APIs_2#Evolving_API_interfaces_-_AP

Re: JDK-8091393: Observable collections for ObservableMap views

2022-05-30 Thread John Hendrikx
It's not binary compatible, as changing the return type results in a new method that compiled code won't be able to find. See also "change result type (including void)" here: https://wiki.eclipse.org/Evolving_Java-based_APIs_2#Evolving_API_interfaces_-_API_methods --John On 30/05/2022

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v14]

2022-05-28 Thread John Hendrikx
On Fri, 27 May 2022 23:31:42 GMT, Kevin Rushforth wrote: > I reviewed the public API changes, and this looks like a great addition to > JavaFX bindings. I think there might be time to get this into JavaFX 19, > presuming that there are no issues with the testing or implementation, so > let's

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v15]

2022-05-28 Thread John Hendrikx
ble") > ); > > // Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Vi

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v14]

2022-05-18 Thread John Hendrikx
On Tue, 22 Mar 2022 20:17:36 GMT, Kevin Rushforth wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix wording > > Yes, I definitely want to be one of the reviewers. I'll need to

Re: Looked-up color fails for -fx-background-color in JavaFX CSS file

2022-05-18 Thread John Hendrikx
I've tried the attached code as well, and I've been unable to reproduce it. I even modified the code a bit to clear and set the stylesheet every frame, and it runs fine. Also used the debugger a bit to see what's going on in CssStyleHelper#calculateValue but didn't see any obvious flaws. If

Re: Looked-up color fails for -fx-background-color in JavaFX CSS file

2022-05-18 Thread John Hendrikx
Could you share the program that reproduces this, as I didn't find an issue nor a sample program in the link you shared. You mentioned an issue was closed? Which issue? --John On 18/05/2022 13:12, Davide Perini wrote: Hi all, someone else opened an issue in past on this problem. I have the

Re: Application getParameters() not returning Umlaute properly

2022-04-11 Thread John Hendrikx
On 11/04/2022 08:15, Daniel Peintner wrote: All, I run into a *strange* behaviour. In my application I associate a file extension which works fine. Clicking on the desktop opens the app and loads the file I clicked on. This works fine for Windows and Mac on its own. Assume a file named

Integrated: 8281723: Spinner with split horizontal arrows and a border places right arrow incorrectly

2022-04-06 Thread John Hendrikx
On Wed, 9 Mar 2022 07:37:31 GMT, John Hendrikx wrote: > I added a test case for `SpinnerSkin` that checks the arrow positioning. > > While adding the tests I discovered more problems with the positioning aside > from the one mentioned in the JBS ticket. > > 1) Vertical spl

Re: RFR: 8281723: Spinner with split horizontal arrows and a border places right arrow incorrectly [v2]

2022-04-06 Thread John Hendrikx
On Wed, 9 Mar 2022 07:48:53 GMT, John Hendrikx wrote: >> I added a test case for `SpinnerSkin` that checks the arrow positioning. >> >> While adding the tests I discovered more problems with the positioning aside >> from the one mentioned in the JBS ticket. >&g

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v14]

2022-03-22 Thread John Hendrikx
On Tue, 22 Mar 2022 17:06:12 GMT, yosbits wrote: > The reason I think the Null Safe explanation is incorrect is because In the > interest of fairness, I feel it would be better to have an example of using > the Optional API when comparing the existing way of writing to the new way of >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v14]

2022-03-22 Thread John Hendrikx
On Tue, 22 Mar 2022 12:38:43 GMT, yosbits wrote: > This PR is considered a design change that delegates multiple > responsibilities to the basic JavaFX class ObservableValue. The balance > between implementation complexity and convenience seems to be a point of > contention. If you could do

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v13]

2022-03-22 Thread John Hendrikx
On Tue, 22 Mar 2022 02:21:05 GMT, yosbits wrote: > I think you are incorrect about the Null Safe explanation. Wouldn't using > Optional solve this? I'm not sure what you are trying to say, the fluent bindings offered by this API are null safe. Using standard JavaFX you have to do additional

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v13]

2022-03-22 Thread John Hendrikx
On Mon, 21 Mar 2022 21:49:33 GMT, Nir Lisker wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Small wording change in API of ObservableValue after proof reading > > modules/javafx.b

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v14]

2022-03-22 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v11]

2022-03-21 Thread John Hendrikx
On Fri, 18 Mar 2022 11:12:55 GMT, Tom Schindl wrote: >> John Hendrikx has updated the pull request incrementally with five >> additional commits since the last revision: >> >> - Reword flat map docs a bit and fixed a link >> - Add missing javadoc tags >&

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v10]

2022-03-21 Thread John Hendrikx
On Sun, 20 Mar 2022 03:08:59 GMT, Nir Lisker wrote: >> Both seem fine, I don't have any preference over one or the other. > > I struggled with finding a good description here > [previously](https://github.com/openjdk/jfx/pull/675#discussion_r777801130). > I think that mstr2 gave a good

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v10]

2022-03-21 Thread John Hendrikx
On Mon, 21 Mar 2022 09:01:01 GMT, John Hendrikx wrote: >> I read this comment after what I wrote about `flatMap`, so mstr2 also had >> the idea of "More precisely", which is good :) >> >> I would suggested something similar to what I did there: >> >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v10]

2022-03-21 Thread John Hendrikx
On Sun, 20 Mar 2022 03:28:01 GMT, Nir Lisker wrote: >> Yeah, agreed, it is a bit annoying to have to deal with the fact that these >> classes are wrappers around an actual value and having to refer to them as >> such to be "precise". I'm willing to make another pass at all of these to >>

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v13]

2022-03-21 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v12]

2022-03-21 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: Promote addEventHandler/removeEventHandler to EventTarget interface

2022-03-18 Thread John Hendrikx
On 17/03/2022 21:01, Michael Strauß wrote: I'm working on an application that uses the JavaFX event system extensively, and I'm finding it quite hard to use common code for event handler registrations. The problem is that the `EventTarget` interface contains no

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v11]

2022-03-18 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v10]

2022-03-18 Thread John Hendrikx
On Thu, 17 Mar 2022 20:09:23 GMT, Michael Strauß wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Process review comments (2) > > modules/javafx.base/src/main/java/com/sun/javafx/bin

Re: Question about fatal JavaFX crashes

2022-03-18 Thread John Hendrikx
I haven't seen this one; the code in TableView in onChanged hasn't had any updates 6 years. I have my doubts this is a JavaFX problem as it seems the Compiler is crashing here in a piece of native code.  It's possible this problem is only occuring on systems where the compiler decides it

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v10]

2022-03-16 Thread John Hendrikx
On Thu, 10 Mar 2022 17:49:38 GMT, John Hendrikx wrote: >> This is an implementation of the proposal in >> https://bugs.openjdk.java.net/browse/JDK-8274771 that me and Nir Lisker >> (@nlisker) have been working on. It's a complete implementation including >

Tough issue with Text not drawn correctly, any experts that can take a look?

2022-03-12 Thread John Hendrikx
TLDR: Skip to the Github link below. So, I've run into an issue where a Label with wrap text set to true is only showing the first character of the text "as Kristoff (voice)" while all other kinds of texts show up correct (there's 100's of examples that all work, but only found one so far

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v8]

2022-03-10 Thread John Hendrikx
On Thu, 10 Mar 2022 14:21:15 GMT, Nir Lisker wrote: >> modules/javafx.base/src/test/java/test/javafx/beans/value/ObservableValueFluentBindingsTest.java >> line 648: >> >>> 646: >>> 647: /** >>> 648: * Ensures nothing has been observed. >> >> "Ensures nothing has been observed since

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v10]

2022-03-10 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v8]

2022-03-09 Thread John Hendrikx
On Tue, 8 Mar 2022 20:57:53 GMT, Nir Lisker wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix wrong test values > > modules/javafx.base/src/tes

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v9]

2022-03-09 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v8]

2022-03-09 Thread John Hendrikx
On Tue, 8 Mar 2022 21:10:46 GMT, Nir Lisker wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix wrong test values > > modules/javafx.base/src/tes

Re: RFR: 8281723: Spinner with split horizontal arrows and a border places right arrow incorrectly [v2]

2022-03-08 Thread John Hendrikx
for split horizontal it does normalize the width to that of the widest > arrow, and so layout becomes: > > [ <- ] [ spinner ] [ -> ] --> [ <- ] [ spinner ] > [ -> ] > > While I'm here I could fix this as well, and adjust the test case to match.

RFR: 8281723: Spinner with split horizontal arrows and a border places right arrow incorrectly

2022-03-08 Thread John Hendrikx
I added a test case for `SpinnerSkin` that checks the arrow positioning. While adding the tests I discovered more problems with the positioning aside from the one mentioned in the JBS ticket. 1) Vertical split arrow placement also forgot to take the padding into account while placing the

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v8]

2022-01-27 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v5]

2022-01-27 Thread John Hendrikx
On Sun, 16 Jan 2022 22:01:33 GMT, Nir Lisker wrote: > * Most tests that I have seen in JavaFX use the assert overloads that include > a message that explains what the value should be or what it means if the > assertion failed. I don't know how much of a requirement it is. I can help > write

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v7]

2022-01-27 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v5]

2022-01-27 Thread John Hendrikx
On Thu, 20 Jan 2022 17:19:49 GMT, Nir Lisker wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix grammar mistakes and did some small rephrases > > modules/javafx.base/sr

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v6]

2022-01-27 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v5]

2022-01-27 Thread John Hendrikx
On Sun, 16 Jan 2022 12:25:13 GMT, Nir Lisker wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix grammar mistakes and did some small rephrases > > modules/javafx.base/sr

Re: RFR: 8279640: ListView with null SelectionModel/FocusModel throws NPE

2022-01-11 Thread John Hendrikx
On Sat, 8 Jan 2022 00:17:36 GMT, Marius Hanl wrote: > This PR fixes a bunch of NPEs when a null `SelectionModel` or `FocusModel` is > set on a `ListView`. > > The following NPEs are fixed (all are also covered by exactly one test case): > NPEs with null selection model: > - Mouse click on a

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v4]

2022-01-10 Thread John Hendrikx
On Thu, 6 Jan 2022 16:25:33 GMT, Nir Lisker wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Apply changes suggested in review and updated copyright years to 2022 > > modules/javafx.b

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v5]

2022-01-10 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: RFR: 8279640: ListView with null SelectionModel/FocusModel throws NPE

2022-01-08 Thread John Hendrikx
On Sat, 8 Jan 2022 00:17:36 GMT, Marius Hanl wrote: > This PR fixes a bunch of NPEs when a null `SelectionModel` or `FocusModel` is > set on a `ListView`. > > The following NPEs are fixed (all are also covered by exactly one test case): > NPEs with null selection model: > - Mouse click on a

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v3]

2022-01-05 Thread John Hendrikx
On Tue, 4 Jan 2022 03:28:57 GMT, Nir Lisker wrote: > Unrelated to the review, will it makes sense in the future to make all > bindings lazily register listeners like `LazyObjectBinding`, perhaps when we > introduce `Subscription`? That would need to be very well tested. There are some

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v3]

2022-01-05 Thread John Hendrikx
On Wed, 5 Jan 2022 09:45:21 GMT, John Hendrikx wrote: >> modules/javafx.base/src/main/java/javafx/beans/binding/ObjectBinding.java >> line 193: >> >>> 191: * >>> 192: * @return {@code true} when this binding currently has one or more >>>

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v3]

2022-01-05 Thread John Hendrikx
On Sun, 2 Jan 2022 20:18:02 GMT, Nir Lisker wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Upgrade tests to JUnit 5 > > modules/javafx.base/src/main/java/javafx/beans/binding/

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v4]

2022-01-05 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: JDK-8088535 Memory Leak

2022-01-03 Thread John Hendrikx
I tested this, and it seems to still not work quite right. As far as I can see, it is not a memory leak, just slow performance when subtracting many shapes from roughly the same location from another shape. When the shapes are more spread out, it performs better. I don't think it is a major

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v3]

2021-12-15 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v2]

2021-12-15 Thread John Hendrikx
On Wed, 15 Dec 2021 11:36:23 GMT, John Hendrikx wrote: >> This is an implementation of the proposal in >> https://bugs.openjdk.java.net/browse/JDK-8274771 that me and Nir Lisker >> (@nlisker) have been working on. It's a complete implementation including >

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v2]

2021-12-15 Thread John Hendrikx
// Fluent: type safe > label.textProperty().bind(label.sceneProperty() > .flatMap(Scene::windowProperty) > .flatMap(Window::showingProperty) > .orElse(false) > .map(showing -> showing ? "Visible" : "Not Visible") >

Integrated: 8274274: Update JUnit to version 5.8.1

2021-12-11 Thread John Hendrikx
On Fri, 24 Sep 2021 20:05:01 GMT, John Hendrikx wrote: > I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests > still work. Also added a single JUnit 5 tests, and confirmed it works. > > I've updated the Eclipse project file for the base module only. This

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v9]

2021-11-22 Thread John Hendrikx
> I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests > still work. Also added a single JUnit 5 tests, and confirmed it works. > > I've updated the Eclipse project file for the base module only. John Hendrikx has updated the pull request incrementa

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v7]

2021-11-22 Thread John Hendrikx
On Mon, 22 Nov 2021 12:52:10 GMT, Kevin Rushforth wrote: >> John Hendrikx has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Add trivial assert to JUnit5Test >> - Add explicit dependencies in build.grad

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v8]

2021-11-22 Thread John Hendrikx
> I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests > still work. Also added a single JUnit 5 tests, and confirmed it works. > > I've updated the Eclipse project file for the base module only. John Hendrikx has updated the pull request incrementa

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v6]

2021-11-21 Thread John Hendrikx
On Sat, 20 Nov 2021 15:54:06 GMT, Kevin Rushforth wrote: >> John Hendrikx has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Fix white space error >> - Allow apiguardian as dependency > >

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v7]

2021-11-21 Thread John Hendrikx
> I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests > still work. Also added a single JUnit 5 tests, and confirmed it works. > > I've updated the Eclipse project file for the base module only. John Hendrikx has updated the pull request incrementa

Re: RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue

2021-11-19 Thread John Hendrikx
On Thu, 18 Nov 2021 21:38:28 GMT, Kevin Rushforth wrote: >> This is an implementation of the proposal in >> https://bugs.openjdk.java.net/browse/JDK-8274771 that me and Nir Lisker >> (@nlisker) have been working on. It's a complete implementation including >> good test coverage. >> >>

RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue

2021-11-18 Thread John Hendrikx
This is an implementation of the proposal in https://bugs.openjdk.java.net/browse/JDK-8274771 that me and Nir Lisker (@nlisker) have been working on. It's a complete implementation including good test coverage. This was based on https://github.com/openjdk/jfx/pull/434 but with a smaller

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v6]

2021-11-15 Thread John Hendrikx
> I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests > still work. Also added a single JUnit 5 tests, and confirmed it works. > > I've updated the Eclipse project file for the base module only. John Hendrikx has updated the pull request incrementa

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v5]

2021-11-15 Thread John Hendrikx
On Fri, 24 Sep 2021 20:45:23 GMT, Kevin Rushforth wrote: > As mentioned in JBS, any new third-party libraries require prior third-party > license approval. And we will need to work with you on sponsoring this (as > you can't contribute any third-party code under the OCA). > > Speaking of

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v5]

2021-11-15 Thread John Hendrikx
On Thu, 11 Nov 2021 15:11:32 GMT, Kevin Rushforth wrote: >> John Hendrikx has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Readd junit declaration in allprojects and set junit version to 4.13.2 > > buil

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v5]

2021-11-15 Thread John Hendrikx
On Mon, 15 Nov 2021 16:42:04 GMT, Michael Strauß wrote: > One comment about adding new JUnit 5 tests and migrating existing tests. I > think there could be value in organizing the tests such that all of the JUnit > 5 tests are grouped, rather than mixing tests in the same directory such that

Re: Circling back to a new layout algorithm

2021-11-13 Thread John Hendrikx
I haven't taken a close look, but I've done some automated layout work before. The baseline layout seems to be an interesting kind of problem where controls can influence each other, where normally they are mostly independent. An iterative approach may be the only viable one, but it does

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v2]

2021-11-11 Thread John Hendrikx
On Fri, 24 Sep 2021 20:50:51 GMT, John Hendrikx wrote: >> gradle/verification-metadata.xml line 121: >> >>> 119: >> value="569b6977ee4603c965c1c46c3058fa6e969291b0160eb6964dd092cd89eadd94" >>> origin="Generated by Grad

Re: Bidirectional binding enhancement

2021-11-10 Thread John Hendrikx
Although I think you have a valid use case, I don't think JavaFX should facilitate this exact scenario; it is a high level concern that you want to solve in a very low level mechanism. A similar scenario also applies to uni-directional bindings, so I think it would have to apply there as well.

Re: RFR: 8274854: Mnemonics for menu containing numeric text not working [v3]

2021-10-30 Thread John Hendrikx
On Sat, 30 Oct 2021 09:46:13 GMT, Jeanette Winzenburg wrote: >> I don't see an easy way to do that, and I'm not in favor of making private >> implementation details package-public just to test some internal state. Of >> course, mnemonic support should have been designed in a way that is more

Re: RFR: 8274854: Mnemonics for menu containing numeric text not working [v3]

2021-10-30 Thread John Hendrikx
On Sat, 30 Oct 2021 09:46:13 GMT, Jeanette Winzenburg wrote: >> I don't see an easy way to do that, and I'm not in favor of making private >> implementation details package-public just to test some internal state. Of >> course, mnemonic support should have been designed in a way that is more

Re: RFR: 8274854: Mnemonics for menu containing numeric text not working [v3]

2021-10-29 Thread John Hendrikx
On Fri, 29 Oct 2021 20:54:04 GMT, Michael Strauß wrote: >> modules/javafx.controls/src/main/java/com/sun/javafx/scene/control/behavior/TextBinding.java >> line 188: >> >>> 186: int i = 0; >>> 187: >>> 188: // Parse the input string and stop after the first mnemonic. >> >>

Re: Mnemonic Parsing doesn't appear to work properly

2021-10-29 Thread John Hendrikx
The fix is in progress here: https://github.com/openjdk/jfx/pull/647 On 29/10/2021 22:12, John Hendrikx wrote: Looking a bit further, and I noticed this code has recently been rewritten. The old code used StringBuffer and wasn't that easy to read, but the new code although easier to read seems

Re: RFR: 8274854: Mnemonics for menu containing numeric text not working [v3]

2021-10-29 Thread John Hendrikx
On Fri, 29 Oct 2021 13:58:35 GMT, Michael Strauß wrote: >> This PR fixes an issue with mnemonic parsing by removing the restriction >> that a mnemonic symbol must be a letter. Now, it can be any character except >> whitespace. > > Michael Strauß has updated the pull request incrementally with

Re: RFR: 8274854: Mnemonics for menu containing numeric text not working [v3]

2021-10-29 Thread John Hendrikx
On Fri, 29 Oct 2021 13:58:35 GMT, Michael Strauß wrote: >> This PR fixes an issue with mnemonic parsing by removing the restriction >> that a mnemonic symbol must be a letter. Now, it can be any character except >> whitespace. > > Michael Strauß has updated the pull request incrementally with

Re: Mnemonic Parsing doesn't appear to work properly

2021-10-29 Thread John Hendrikx
a significant change in how things used to work which the tests didn't catch at all. --John On 29/10/2021 21:45, John Hendrikx wrote: Hm, I can confirm it appears under the "e", also under Windows, but I suspect the platform will make no difference. I tested a bit further, and I found the

Re: Mnemonic Parsing doesn't appear to work properly

2021-10-29 Thread John Hendrikx
Hm, I can confirm it appears under the "e", also under Windows, but I suspect the platform will make no difference. I tested a bit further, and I found the following: 1) The mnemonic key seems to be "m", and it appears under the "e" because it deleted two more underscores (index is off by 2).

Re: RFR: 8274274: Update JUnit to version 5.8.1 [v5]

2021-10-28 Thread John Hendrikx
On Sat, 25 Sep 2021 13:55:15 GMT, John Hendrikx wrote: >> I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests >> still work. Also added a single JUnit 5 tests, and confirmed it works. >> >> I've updated the Eclipse project file for the ba

Re: RFR: Draft: 8274274: Update JavaFX test framework to JUnit 5 [v5]

2021-10-12 Thread John Hendrikx
On Sat, 25 Sep 2021 13:55:15 GMT, John Hendrikx wrote: >> I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests >> still work. Also added a single JUnit 5 tests, and confirmed it works. >> >> I've updated the Eclipse project file for the ba

Re: Proof of concept for fluent bindings for ObservableValue

2021-10-07 Thread John Hendrikx
, John Hendrikx wrote: I just wanted to draw some attention to a recent proof of concept I made in this pull request: https://github.com/openjdk/jfx/pull/434 It is based on the work I did in https://github.com/hjohn/hs.jfx.eventstream which is in part based on work done in ReactFX by Tomas Mikula

Re: [External] : Re: Eager Evaluation of Invalidation Listeners

2021-10-06 Thread John Hendrikx
ports/openjdk-jfx/pull/110 <https://urldefense.com/v3/__https://github.com/javafxports/openjdk-jfx/pull/110__;!!ACWV5N9M2RV99hQ!bIbtLsC0tg02c9a_lgKnM1Xta2USX8QkKRL4imOUSw8xshJsVquOeulplJR7dfEzQUf6$> On Fri, Sep 3, 2021 at 5:35 AM John Hendrikx wrote: On 02/09/2021 11:57, Nir Lisker w

Re: Proof of concept for fluent bindings for ObservableValue

2021-10-05 Thread John Hendrikx
t bindings in the future? On Tue, Oct 5, 2021 at 1:34 PM John Hendrikx mailto:hj...@xs4all.nl>> wrote: I've created https://bugs.openjdk.java.net/browse/JDK-8274771 Please have a look. --John On 04/10/2021 17:51, Nir Lisker wrote: > I think that a PR can be created. The

Re: Proof of concept for fluent bindings for ObservableValue

2021-10-05 Thread John Hendrikx
. As for the Optional methods, I'll have a look in my code base and see if the places I would like to use them at will become irrelevant anyway with the fluent bindings. I'm fine with proceeding with the current names of the proposed methods. On Sun, Sep 19, 2021 at 6:12 PM John Hendrikx wrote

Re: Proof of concept for fluent bindings for ObservableValue

2021-10-04 Thread John Hendrikx
and I contend are far better known within the Java community than reactive programming. Therefore the terms map and flatMap should be quite well understood by now. --John On Wed, Mar 24, 2021 at 10:49 PM John Hendrikx wrote: I just wanted to draw some attention to a recent proof of concept

Re: Proof of concept for fluent bindings for ObservableValue

2021-10-04 Thread John Hendrikx
On 04/10/2021 17:51, Nir Lisker wrote: I think that a PR can be created. The only point we need to decide is about the subscription models we talked about above. ReactFX uses something different for each, you use the same. That can determine if we need different classes for each binding type.

Re: Enhancements for JavaFX 18

2021-10-04 Thread John Hendrikx
e: I have not looked at the code yet but why does this have to be part of OpenJFX and can not be implemented as an external library? Tom Am 05.08.21 um 00:25 schrieb John Hendrikx: Perhaps: Fluent bindings for ObservableValue https://github.com/openjdk/jfx/pull/434 It was received well

Re: RFR: 8252936: Optimize removal of listeners from ExpressionHelper.Generic [v3]

2021-10-01 Thread John Hendrikx
On Wed, 14 Apr 2021 12:33:23 GMT, dannygonzalez wrote: >> https://bugs.openjdk.java.net/browse/JDK-8185886 >> >> Optimisation to ExpressionHelper.Generic class to use Sets rather than >> Arrays to improve listener removal speed. >> >> This was due to the removal of listeners in TableView

Re: RFR: 8252936: Optimize removal of listeners from ExpressionHelper.Generic [v3]

2021-10-01 Thread John Hendrikx
On Wed, 14 Apr 2021 12:33:23 GMT, dannygonzalez wrote: >> https://bugs.openjdk.java.net/browse/JDK-8185886 >> >> Optimisation to ExpressionHelper.Generic class to use Sets rather than >> Arrays to improve listener removal speed. >> >> This was due to the removal of listeners in TableView

Need some direction: JDK-8089024

2021-10-01 Thread John Hendrikx
Please see: https://bugs.openjdk.java.net/browse/JDK-8089024 This is a bug which seems to apply transparency twice when a Node has a clip set. I managed to create a small test program that shows the problem very clearly, see this image (on Windows):

Transparent stages and AnimationTimer on Windows

2021-09-28 Thread John Hendrikx
I'm seeing some really weird issues with Transparent Stages on Windows when their framerate (both stability and speed) is compared with normal decorated/undecorated stages. The transparent stages seem to obey different rules when it comes to timely firing AnimationTimers. Where a decorated

Re: RFR: Draft: 8274274: Update JavaFX test framework to JUnit 5 [v5]

2021-09-25 Thread John Hendrikx
> I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests > still work. Also added a single JUnit 5 tests, and confirmed it works. > > I've updated the Eclipse project file for the base module only. John Hendrikx has updated the pull request incrementa

Re: RFR: Draft: 8274274: Update JavaFX test framework to JUnit 5 [v3]

2021-09-25 Thread John Hendrikx
On Sat, 25 Sep 2021 13:13:03 GMT, Kevin Rushforth wrote: > The gradle verification task failed (see the test results from GitHub > Actiona). It looks like it still needs the hamcrest jars. Go ahead and add > them back in (and remove the exclusion for them). Yeah, I noticed, I couldn't get rid

Re: RFR: Draft: 8274274: Update JavaFX test framework to JUnit 5 [v4]

2021-09-25 Thread John Hendrikx
> I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests > still work. Also added a single JUnit 5 tests, and confirmed it works. > > I've updated the Eclipse project file for the base module only. John Hendrikx has updated the pull request incrementa

Gauging interest in updating the JavaFX test framework with JUnit 5

2021-09-24 Thread John Hendrikx
Posting this to gauge the interest in adding JUnit 5 as a test dependency to JavaFX, enabling writing tests with this new version of JUnit while still supporting all JUnit 4 tests. A draft PR has been submitted here: https://github.com/openjdk/jfx/pull/633 And an issue has been filed here:

Re: RFR: Draft: 8274274: Update JavaFX test framework to JUnit 5 [v3]

2021-09-24 Thread John Hendrikx
On Fri, 24 Sep 2021 20:49:00 GMT, John Hendrikx wrote: >> gradle/verification-metadata.xml line 273: >> >>> 271: >> version="1.3"> >>> 272: >>> 273: >> value="66fdef91e9739348df7a096aa384a

Re: RFR: Draft: 8274274: Update JavaFX test framework to JUnit 5 [v2]

2021-09-24 Thread John Hendrikx
On Fri, 24 Sep 2021 20:36:30 GMT, Kevin Rushforth wrote: >> John Hendrikx 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. > > modules/j

Re: RFR: Draft: 8274274: Update JavaFX test framework to JUnit 5 [v2]

2021-09-24 Thread John Hendrikx
On Fri, 24 Sep 2021 20:48:26 GMT, John Hendrikx wrote: >> gradle/verification-metadata.xml line 247: >> >>> 245: >> value="e08028131375b357d1d28734e9a4fb4216da84b240641cb3ef7e7c7d628223fc" >>> origin="Generated by Gradle"/>

Re: RFR: Draft: 8274274: Update JavaFX test framework to JUnit 5 [v3]

2021-09-24 Thread John Hendrikx
> I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests > still work. Also added a single JUnit 5 tests, and confirmed it works. > > I've updated the Eclipse project file for the base module only. John Hendrikx has updated the pull request incrementa

Re: RFR: 8274274: Update JavaFX test framework to JUnit 5 [v2]

2021-09-24 Thread John Hendrikx
On Fri, 24 Sep 2021 20:31:14 GMT, Kevin Rushforth wrote: >> John Hendrikx 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. > > gradle/v

Re: RFR: 8274274: Update JavaFX test framework to JUnit 5

2021-09-24 Thread John Hendrikx
On Fri, 24 Sep 2021 20:05:01 GMT, John Hendrikx wrote: > I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests > still work. Also added a single JUnit 5 tests, and confirmed it works. > > I've updated the Eclipse project file for the base module

Re: RFR: 8274274: Update JavaFX test framework to JUnit 5 [v2]

2021-09-24 Thread John Hendrikx
> I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests > still work. Also added a single JUnit 5 tests, and confirmed it works. > > I've updated the Eclipse project file for the base module only. John Hendrikx has refreshed the contents of this

RFR: 8274274: Update JavaFX test framework to JUnit 5

2021-09-24 Thread John Hendrikx
I've added JUnit 5 as a test dependency and made sure that the JUnit 4 tests still work. Also added a single JUnit 5 tests, and confirmed it works. I've updated the Eclipse project file for the base module only. - Commit messages: - Add JUnit 5 Changes:

  1   2   3   >