On Tue, 25 Aug 2026 16:29:32 GMT, Andy Goryachev <[email protected]> wrote:

>> Enables importing of images from the clipboard into the RichTextModel by 
>> adding a data format handler for the DataFormat.IMAGE mime type.
>> 
>> This change includes new utility added by 
>> [JDK-8390345](https://bugs.openjdk.org/browse/JDK-8390345).
>> 
>> Note: the banana slug image is a public domain added with author's 
>> permission [0].
>> 
>> ## References
>> 
>> [0] https://en.wikipedia.org/wiki/Banana_slug
>> 
>> 
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Andy Goryachev has updated the pull request with a new target base due to a 
> merge or a rebase. The pull request now contains 11 commits:
> 
>  - Merge branch 'master' into 8388276.import.images
>  - copied from swing fx utils
>  - Merge branch 'master' into 8388276.import.images
>  - images
>  - lossless
>  - Merge branch 'master' into 8388276.import.images
>  - whitespace
>  - test
>  - undo image paste
>  - Merge remote-tracking branch 'origin/master' into 8388276.import.images
>  - ... and 1 more: https://git.openjdk.org/jfx/compare/b9a34744...26767feb

I tested this on macOS with RichEditorDemo and can confirm that image import 
via clipboard works with this change.

tests/system/src/test/java/test/util/Util.java line 472:

> 470:      * Parses hex string into a byte array.
> 471:      * Example: "0001" -> byte[] { 0x00, 0x01 }
> 472:      * No spaces or symbols other than upper/lower case hex digits is 
> allosed.

Typo : allosed -> allowed

-------------

Marked as reviewed by aghaisas (Reviewer).

PR Review: https://git.openjdk.org/jfx/pull/2224#pullrequestreview-5027106791
PR Review Comment: https://git.openjdk.org/jfx/pull/2224#discussion_r3859945003

Reply via email to