Re: RFR: 8330462: StringIndexOutOfBoundException when typing anything into TextField [v25]

2024-05-02 Thread Oliver Kopp
On Thu, 2 May 2024 10:03:46 GMT, Ambarish Rapte wrote: > 1. The test does not compile without fix, hence it won't fail without fix > as we are only testing the newly added helper method. Yes, we could not build on existing a11y test. > 2. It is not required to change the error stream,

Re: RFR: 8330462: StringIndexOutOfBoundException when typing anything into TextField [v26]

2024-05-02 Thread Oliver Kopp
> Fixes https://bugs.openjdk.org/browse/JDK-8330462. > > If the parameter `maxLength` is larger than `Integer.MAX_VALUE - start`, then > an addition of `start` to it leads to a negative value. This is "fixed" by > using `Math.max` comparing the `maxLength` and `maxLength + start`. Oliver Kopp

Re: RFR: 8092102: Labeled: truncated property [v11]

2024-05-02 Thread Kevin Rushforth
On Thu, 2 May 2024 22:10:24 GMT, Andy Goryachev wrote: >> Adds **Labeled.textTruncated** property which indicates when the text is >> visually truncated (and the ellipsis string is inserted) in order to fit the >> available width. >> >> The new property reacts to changes in the following

Re: RFR: 8092102: Labeled: truncated property [v9]

2024-05-02 Thread Andy Goryachev
On Thu, 2 May 2024 18:21:52 GMT, Kevin Rushforth wrote: >> Andy Goryachev has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 15 commits: >> >> - missing ) >> - review comments >> - Merge branch 'master' into 8092102.truncated >>

Re: RFR: 8092102: Labeled: truncated property [v9]

2024-05-02 Thread Andy Goryachev
On Thu, 2 May 2024 18:34:04 GMT, Andy Goryachev wrote: >> modules/javafx.controls/src/main/java/javafx/scene/control/Labeled.java line >> 114: >> >>> 112: * by itself looks rather weird. >>> 113: */ >>> 114: private static boolean useActualContentWidth; >> >> Even given your

Re: RFR: 8092102: Labeled: truncated property [v11]

2024-05-02 Thread Andy Goryachev
> Adds **Labeled.textTruncated** property which indicates when the text is > visually truncated (and the ellipsis string is inserted) in order to fit the > available width. > > The new property reacts to changes in the following properties: > - ellipsisString > - font > - height > - text > -

Re: RFR: 8092102: Labeled: truncated property [v10]

2024-05-02 Thread Andy Goryachev
> Adds **Labeled.textTruncated** property which indicates when the text is > visually truncated (and the ellipsis string is inserted) in order to fit the > available width. > > The new property reacts to changes in the following properties: > - ellipsisString > - font > - height > - text > -

Re: RFR: 8092102: Labeled: truncated property [v9]

2024-05-02 Thread Andy Goryachev
On Thu, 2 May 2024 17:37:52 GMT, Kevin Rushforth wrote: >> Andy Goryachev has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 15 commits: >> >> - missing ) >> - review comments >> - Merge branch 'master' into 8092102.truncated >>

Re: RFR: 8092102: Labeled: truncated property [v9]

2024-05-02 Thread Kevin Rushforth
On Thu, 2 May 2024 18:07:12 GMT, Kevin Rushforth wrote: >> Andy Goryachev has updated the pull request with a new target base due to a >> merge or a rebase. The pull request now contains 15 commits: >> >> - missing ) >> - review comments >> - Merge branch 'master' into 8092102.truncated >>

Re: RFR: 8092102: Labeled: truncated property [v9]

2024-05-02 Thread Kevin Rushforth
On Wed, 10 Apr 2024 21:25:10 GMT, Andy Goryachev wrote: >> Adds **Labeled.textTruncated** property which indicates when the text is >> visually truncated (and the ellipsis string is inserted) in order to fit the >> available width. >> >> The new property reacts to changes in the following

Re: RFR: 8242553: IntegerSpinner and DoubleSpinner do not wrap around values correctly in some cases [v2]

2024-05-02 Thread Andy Goryachev
On Thu, 2 May 2024 09:27:41 GMT, drmarmac wrote: > I can create the PR. thank you! - PR Comment: https://git.openjdk.org/jfx/pull/1431#issuecomment-2090784273

Re: RFR: 8092102: Labeled: truncated property [v9]

2024-05-02 Thread Ambarish Rapte
On Wed, 10 Apr 2024 21:25:10 GMT, Andy Goryachev wrote: >> Adds **Labeled.textTruncated** property which indicates when the text is >> visually truncated (and the ellipsis string is inserted) in order to fit the >> available width. >> >> The new property reacts to changes in the following

Re: RFR: 8271865: SortedList::getViewIndex behaves not correctly for some index values [v3]

2024-05-02 Thread Kevin Rushforth
On Thu, 2 May 2024 13:12:09 GMT, drmarmac wrote: >> This PR adds the missing checks, as well as code documentation that an >> IndexOutOfBoundsException may be thrown. > > drmarmac has updated the pull request with a new target base due to a merge > or a rebase. The incremental webrev excludes

Re: RFR: 8271865: SortedList::getViewIndex behaves not correctly for some index values [v3]

2024-05-02 Thread Kevin Rushforth
On Tue, 23 Apr 2024 06:55:18 GMT, Lukasz Kostyra wrote: >> drmarmac 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 contains five additional commits >>

Re: RFR: 8271865: SortedList::getViewIndex behaves not correctly for some index values [v2]

2024-05-02 Thread drmarmac
On Thu, 2 May 2024 12:18:30 GMT, Kevin Rushforth wrote: >> drmarmac has updated the pull request incrementally with one additional >> commit since the last revision: >> >> JavaDoc updates > > modules/javafx.base/src/main/java/javafx/collections/transformation/TransformationList.java > line

Re: RFR: 8271865: SortedList::getViewIndex behaves not correctly for some index values [v3]

2024-05-02 Thread drmarmac
> This PR adds the missing checks, as well as code documentation that an > IndexOutOfBoundsException may be thrown. drmarmac 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

Re: RFR: 8271865: SortedList::getViewIndex behaves not correctly for some index values [v2]

2024-05-02 Thread Kevin Rushforth
On Thu, 2 May 2024 10:06:23 GMT, drmarmac wrote: >> This PR adds the missing checks, as well as code documentation that an >> IndexOutOfBoundsException may be thrown. > > drmarmac has updated the pull request incrementally with one additional > commit since the last revision: > > JavaDoc

Re: RFR: 8271865: SortedList::getViewIndex behaves not correctly for some index values

2024-05-02 Thread drmarmac
On Sun, 24 Mar 2024 15:11:29 GMT, drmarmac wrote: > This PR adds the missing checks, as well as code documentation that an > IndexOutOfBoundsException may be thrown. I've updated the PR with Kevin's suggestions. - PR Comment:

Re: RFR: 8271865: SortedList::getViewIndex behaves not correctly for some index values [v2]

2024-05-02 Thread drmarmac
On Mon, 29 Apr 2024 22:48:28 GMT, Kevin Rushforth wrote: >> drmarmac has updated the pull request incrementally with one additional >> commit since the last revision: >> >> JavaDoc updates > > modules/javafx.base/src/main/java/javafx/collections/transformation/TransformationList.java > line

Re: RFR: 8271865: SortedList::getViewIndex behaves not correctly for some index values [v2]

2024-05-02 Thread drmarmac
> This PR adds the missing checks, as well as code documentation that an > IndexOutOfBoundsException may be thrown. drmarmac has updated the pull request incrementally with one additional commit since the last revision: JavaDoc updates - Changes: - all:

Re: RFR: 8330462: StringIndexOutOfBoundException when typing anything into TextField [v25]

2024-05-02 Thread Ambarish Rapte
On Wed, 1 May 2024 04:46:29 GMT, Oliver Kopp wrote: >> Fixes https://bugs.openjdk.org/browse/JDK-8330462. >> >> If the parameter `maxLength` is larger than `Integer.MAX_VALUE - start`, >> then an addition of `start` to it leads to a negative value. This is "fixed" >> by using `Math.max`

Re: RFR: 8242553: IntegerSpinner and DoubleSpinner do not wrap around values correctly in some cases [v2]

2024-05-02 Thread drmarmac
On Wed, 10 Apr 2024 11:47:28 GMT, drmarmac wrote: >> This PR should fix the issue and cover all relevant cases with new tests. >> >> Note: This involves a small behavior change, as can be seen in >> dblSpinner_testWrapAround_decrement_twoSteps() in SpinnerTest.java:749. With >> this change

Re: RFR: 8311895: CSS Transitions [v16]

2024-05-02 Thread Michael Strauß
> Implementation of [CSS > Transitions](https://gist.github.com/mstr2/c72f8c9faa87de14926978f517a6018a). > > ### Example > > .button { > -fx-background-color: dodgerblue; > } > > .button:hover { > -fx-background-color: red; > -fx-scale-x: 1.1; > -fx-scale-y: 1.1; > >

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

2024-05-02 Thread Undecium
On Thu, 7 Mar 2024 22:32:13 GMT, Marius Hanl wrote: >> This PR fixes the dialog freeze problem once and for all. >> >> This one is a bit tricky to understand, here is how it works: >> This bug happens on every platform, although the implementation of nested >> event loops differs on every