Integrated: 8268718: [macos] Video stops, but audio continues to play when stopTime is reached

2021-07-08 Thread Alexander Matveev
On Thu, 1 Jul 2021 01:38:14 GMT, Alexander Matveev wrote: > Not sure why, but our finish() handle was not implemented on OSXPlatform. > This handle should pause media stream when called. Also, seek should restart > playback when we finish playing video. With proposed fix OSXPlatform will >

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v3]

2021-07-08 Thread Marius Hanl
On Thu, 8 Jul 2021 11:59:05 GMT, Jeanette Winzenburg wrote: >>> Hmm ... wondering whether we really want to widen the scope of this issue >>> >>> * it started with being focused on NPE on the change of property value, >>> for both Choice/ComboBox >>> >>> * turned out combo's skin

Re: RFR: 8231644: TreeTableView Regression: Indentation wrong using Label as column content type [v2]

2021-07-08 Thread Marius Hanl
On Thu, 8 Jul 2021 21:24:28 GMT, Marius Hanl wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/skin/TreeTableCellSkin.java >> line 107: >> >>> 105: >>> 106: @Override >>> 107: protected void layoutChildren(double x, double y, double w, double >>> h) { >> >> This

Re: RFR: 8188026: TextFieldXXCell: NPE on calling startEdit [v3]

2021-07-08 Thread Marius Hanl
> This PR sets an unified logic to every **startEdit()** method of all Cell > implementations. > So startEdit() is always doing the same now: > > `super.startEdit();` > `if (!isEditing()) { > return; > }` > > This will prevent a NPE while also being cleaner (no more double checks) > The

Re: RFR: 8268642: Expand the javafx.beans.property.Property documentation [v2]

2021-07-08 Thread Kevin Rushforth
On Thu, 24 Jun 2021 01:53:53 GMT, Michael Strauß wrote: >> * Expand the `Property.bind` and `Property.bindBidirectional` documentation >> * Change the name of the formal parameter of `Property.bind` to "source" >> (currently, it is inconsistently named "observable", "rawObservable" or >>

Re: RFR: 8231644: TreeTableView Regression: Indentation wrong using Label as column content type [v2]

2021-07-08 Thread Marius Hanl
> This PR fixes a long standing issue with the TreeTableView indentation. > > ![image](https://user-images.githubusercontent.com/66004280/124681647-473e7380-dec9-11eb-906d-4228fc39cbf9.png) > > In short: > **TreeTableCellSkin** overrides **leftLabelPadding()** to calculate the > indentation

RFR: 8269967: JavaFX should fail fast on macOS below minimum version

2021-07-08 Thread Kevin Rushforth
This PR implements a version check in the JavaFX runtime initialization code on macOS to ensure that the platform is running a version of macOS that is at or above the minimum version. If the platform is below the specified minimum, the JavaFX initialization code throws an exception. The

Re: RFR: 8231644: TreeTableView Regression: Indentation wrong using Label as column content type

2021-07-08 Thread Marius Hanl
On Wed, 7 Jul 2021 23:57:31 GMT, Kevin Rushforth wrote: >> This PR fixes a long standing issue with the TreeTableView indentation. >> >> ![image](https://user-images.githubusercontent.com/66004280/124681647-473e7380-dec9-11eb-906d-4228fc39cbf9.png) >> >> In short: >> **TreeTableCellSkin**

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v4]

2021-07-08 Thread Marius Hanl
On Thu, 8 Jul 2021 10:52:06 GMT, Jeanette Winzenburg wrote: >> Marius Hanl has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Fixed NPE for setEditable() and layoutChildren() >> - removed unneeded button cell in test > >

Re: RFR: 8188026: TextFieldXXCell: NPE on calling startEdit

2021-07-08 Thread Marius Hanl
On Wed, 7 Jul 2021 22:33:07 GMT, Marius Hanl wrote: > This PR sets an unified logic to every **startEdit()** method of all Cell > implementations. > So startEdit() is always doing the same now: > > `super.startEdit();` > `if (!isEditing()) { > return; > }` > > This will prevent a NPE while

Re: RFR: 8188026: TextFieldXXCell: NPE on calling startEdit [v2]

2021-07-08 Thread Marius Hanl
> This PR sets an unified logic to every **startEdit()** method of all Cell > implementations. > So startEdit() is always doing the same now: > > `super.startEdit();` > `if (!isEditing()) { > return; > }` > > This will prevent a NPE while also being cleaner (no more double checks) > The

Re: RFR: 8268718: [macos] Video stops, but audio continues to play when stopTime is reached

2021-07-08 Thread Ambarish Rapte
On Thu, 1 Jul 2021 01:38:14 GMT, Alexander Matveev wrote: > Not sure why, but our finish() handle was not implemented on OSXPlatform. > This handle should pause media stream when called. Also, seek should restart > playback when we finish playing video. With proposed fix OSXPlatform will >

Re: RFR: 8240506: TextFieldSkin/Behavior: misbehavior on switching skin [v2]

2021-07-08 Thread Ambarish Rapte
On Wed, 7 Jul 2021 09:48:20 GMT, Jeanette Winzenburg wrote: >> The issue is about memory leaks and side-effects (like NPEs) when switching >> skins. >> >> Details (copied from issue for convenience): >> >> memory leak in TextInputControlBehavior: >> - listener accidentally added twice

Re: RFR: 8240506: TextFieldSkin/Behavior: misbehavior on switching skin [v2]

2021-07-08 Thread Ambarish Rapte
On Wed, 7 Jul 2021 10:02:52 GMT, Jeanette Winzenburg wrote: >> modules/javafx.controls/src/test/java/test/com/sun/javafx/scene/control/behavior/BehaviorCleanupTest.java >> line 404: >> >>> 402: } >>> 403: if (!root.getChildren().contains(control)) { >>> 404:

JavaFX 17 is in Rampdown Phase One (RDP1)

2021-07-08 Thread Kevin Rushforth
JavaFX 17 is now in Rampdown Phase One (RDP1) [1]. We have forked a new jfx17 branch [2] for stabilizing the JavaFX 17 release. Here is the short summary of what this means: - The master branch of the jfx repo is available for integrating bug fixes or enhancements for openjfx18. Most fixes

Integrated: 8269597: Change JavaFX release version to 18

2021-07-08 Thread Kevin Rushforth
On Tue, 29 Jun 2021 14:21:27 GMT, Kevin Rushforth wrote: > Bump the version number of JavaFX to 18. I will integrate this immediately > after forking the `jfx17` stabilization branch, which is scheduled for > Thursday, July 8, 2021 at 16:00 UTC. > > ~~Leaving it as `Draft` for now. I'll make

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v3]

2021-07-08 Thread Jeanette Winzenburg
On Thu, 8 Jul 2021 11:19:57 GMT, Ajit Ghaisas wrote: > > the first two are naturally within the original scope, the third is near > > enough (a property on one of the covered controls) to be included .. the > > last is arguable, IMO - would tend to not include it here but open a > > follow-up

Re: RFR: 8188026: TextFieldXXCell: NPE on calling startEdit

2021-07-08 Thread Jeanette Winzenburg
On Wed, 7 Jul 2021 22:33:07 GMT, Marius Hanl wrote: > This PR sets an unified logic to every **startEdit()** method of all Cell > implementations. > So startEdit() is always doing the same now: > > `super.startEdit();` > `if (!isEditing()) { > return; > }` > > This will prevent a NPE while

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v3]

2021-07-08 Thread Ajit Ghaisas
On Thu, 8 Jul 2021 10:28:22 GMT, Jeanette Winzenburg wrote: >> hmm ... can't unresolve this (probably because I wasn't involved?) - how to >> make it part of the review? > > hmm .. looks like I can only add comments to a review when being on the > "files changed" tab, but not on the

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v4]

2021-07-08 Thread Jeanette Winzenburg
On Wed, 7 Jul 2021 19:37:23 GMT, Marius Hanl wrote: >> This PR fixes multiple NPEs in Choice-and ComboBox, when the selection model >> is null. >> >> ChoiceBox: >> - Null check in **valueProperty()** listener >> >> ComboBox: >> - Null check in **editableProperty()* listener* >> - Null check

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v3]

2021-07-08 Thread Jeanette Winzenburg
On Thu, 8 Jul 2021 10:19:54 GMT, Jeanette Winzenburg wrote: >> Hmm ... wondering whether we really want to widen the scope of this issue >> >> - it started with being focused on NPE on the change of property value, for >> both Choice/ComboBox >> - turned out combo's skin also has a throwing

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v3]

2021-07-08 Thread Jeanette Winzenburg
On Wed, 7 Jul 2021 19:29:53 GMT, Marius Hanl wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/skin/ComboBoxListViewSkin.java >> line 401: >> >>> 399: private void updateValue() { >>> 400: SingleSelectionModel comboBoxSM = >>> comboBox.getSelectionModel(); >>>

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v3]

2021-07-08 Thread Jeanette Winzenburg
On Thu, 8 Jul 2021 10:18:13 GMT, Jeanette Winzenburg wrote: >> added. > > Hmm ... wondering whether we really want to widen the scope of this issue > > - it started with being focused on NPE on the change of property value, for > both Choice/ComboBox > - turned out combo's skin also has a

Re: RFR: 8089398: [ChoiceBox, ComboBox] throws NPE on setting value on null selectionModel [v4]

2021-07-08 Thread Ajit Ghaisas
On Wed, 7 Jul 2021 19:37:23 GMT, Marius Hanl wrote: >> This PR fixes multiple NPEs in Choice-and ComboBox, when the selection model >> is null. >> >> ChoiceBox: >> - Null check in **valueProperty()** listener >> >> ComboBox: >> - Null check in **editableProperty()* listener* >> - Null check