Integrated: 8141391: Manual JFXPanel DnD test doesn't work

2025-07-16 Thread Prasanta Sadhukhan
On Fri, 11 Jul 2025 04:17:24 GMT, Prasanta Sadhukhan wrote: > Issue is when `JFXPanel `is used to embed some JavaFX components and when we > drag something from swing or an external application and try to drop on a > JavaFX component inside the JFXPanel, it doesn't accept th

Re: RFR: 8141391: Manual JFXPanel DnD test doesn't work [v3]

2025-07-15 Thread Prasanta Sadhukhan
On Tue, 15 Jul 2025 17:53:05 GMT, Kevin Rushforth wrote: > > Maybe also update the description in this PR and the ticket? > > I added a note to the JBS Description. > > @prsadhuk Can you update the PR description when you fix the title? @kevinrushforth Do you want me to overwrite the entire d

Re: RFR: 8141391: DnD doesn't work for JFXPanel [v2]

2025-07-14 Thread Prasanta Sadhukhan
On Sun, 13 Jul 2025 08:52:31 GMT, Prasanta Sadhukhan wrote: >> Issue is when `JFXPanel `is used to embed some JavaFX components and when we >> drag something from swing or an external application and try to drop on a >> JavaFX component inside the JFXPanel, it doesn't

Re: RFR: 8141391: DnD doesn't work for JFXPanel [v3]

2025-07-14 Thread Prasanta Sadhukhan
JDK side of DnD scheme. > Also, to have a proper drop of the data, we get the focus owner from the > JFXPanel scene and insert the text in the location pointed to by the mouse > cursor. > > Regression test is already present in > tests/manual/swing/DragDropOntoJavaFXCo

Re: RFR: 8141391: DnD doesn't work for JFXPanel [v2]

2025-07-13 Thread Prasanta Sadhukhan
JDK side of DnD scheme. > Also, to have a proper drop of the data, we get the focus owner from the > JFXPanel scene and insert the text in the location pointed to by the mouse > cursor. > > Regression test is already present in > tests/manual/swing/DragDropOntoJavaFXCo

Re: RFR: 8141391: DnD doesn't work for JFXPanel

2025-07-11 Thread Prasanta Sadhukhan
On Fri, 11 Jul 2025 16:21:39 GMT, Kevin Rushforth wrote: >> modules/javafx.swing/src/main/java/com/sun/javafx/embed/swing/SwingDnD.java >> line 203: >> >>> 201: javafx.embed.swing.JFXPanel jfxPanel = >>> (javafx.embed.swing.JFXPanel)comp; >>> 202: >>> 203:

RFR: 8141391: DnD doesn't work for JFXPanel

2025-07-10 Thread Prasanta Sadhukhan
Issue is when `JFXPanel `is used to embed some JavaFX components and when we drag something from swing or an external application and try to drop on a JavaFX component inside the JFXPanel, it doesn't accept the drop showing "block" sign suggesting DnD is blocked. The problem is in both drag an

Re: CFV: New OpenJFX Committer: Alexander Zuev

2025-05-28 Thread Prasanta Sadhukhan
Vote: Yes Regards Prasanta On 29-05-2025 01:21, Kevin Rushforth wrote: I hereby nominate Alexander Zuev [1] to OpenJFX Committer. Alexander is a member of the JavaFX team at Oracle who has contributed 10 commits [2] to OpenJFX. Votes are due by June 11, 2025 at 20:00 UTC. Only current OpenJ

Re: RFR: 8346222: SwingNodePlatformExitCrashTest fails with JUnit 5.11.3

2024-12-16 Thread Prasanta Sadhukhan
On Fri, 13 Dec 2024 19:46:54 GMT, Kevin Rushforth wrote: > This PR fixes a latent test bug in test bug in > `SwingNodePlatformExitCrashTest` by setting a flag to skip shutdown rather > than relying on a quirk of JUnit 5.8.1. > > I discovered this while testing PR #1662 which updates JUnit to 5

Re: RFR: 8342457: Remove calls to doPrivileged in swing [v2]

2024-11-03 Thread Prasanta Sadhukhan
On Wed, 30 Oct 2024 18:21:27 GMT, Andy Goryachev wrote: >> Removes doPrivileged in the following module: >> >> - javafx.swing >> >> See JDK-8342441 for details. >> >> As a helpful hint for reviewers, I recommend reviewing this using the "Hide >> whitespace" option. > > Andy Goryachev has upda

Integrated: 8340849: [macos] Crash when creating a child window of a JavaFX window after Platform::exit

2024-10-30 Thread Prasanta Sadhukhan
On Mon, 28 Oct 2024 15:01:20 GMT, Prasanta Sadhukhan wrote: > When AWT toolkit is started first for it to own the "NSApplication" and then > FX toolkit is started and shutdown by calling `Platform.exit` and then Swing > Dialog is tried to be created, then it is seen t

RFR: 8340849: [macos] Crash when creating a child window of a JavaFX window after Platform::exit

2024-10-28 Thread Prasanta Sadhukhan
When AWT toolkit is started first for it to own the "NSApplication" and then FX toolkit is started and shutdown by calling `Platform.exit` and then Swing Dialog is tried to be created, then it is seen that the application crashes as the AWT dialog tries to create the underlying Window as a child

Integrated: 8340850: Wrong bug ID listed as reason for skipping SwingNodePlatformExitCrashTest

2024-10-17 Thread Prasanta Sadhukhan
On Thu, 17 Oct 2024 07:43:28 GMT, Prasanta Sadhukhan wrote: > SwingNodePlatformExitCrashTest lists > [JDK-8190329](https://bugs.openjdk.org/browse/JDK-8190329) as the reason it > is skipped. However, the correct bug ID is the newly filed > [JDK-8340849](https://bugs.openjdk.or

RFR: 8340850: Wrong bug ID listed as reason for skipping SwingNodePlatformExitCrashTest

2024-10-17 Thread Prasanta Sadhukhan
SwingNodePlatformExitCrashTest lists [JDK-8190329](https://bugs.openjdk.org/browse/JDK-8190329) as the reason it is skipped. However, the correct bug ID is the newly filed [JDK-8340849](https://bugs.openjdk.org/browse/JDK-8340849) - Commit messages: - 8340850: Wrong bug ID listed

Integrated: 8340005: Eliminate native access calls from javafx.swing

2024-10-16 Thread Prasanta Sadhukhan
On Tue, 15 Oct 2024 03:18:09 GMT, Prasanta Sadhukhan wrote: > While implementing [JDK-8339517](https://bugs.openjdk.org/browse/JDK-8339517) > to eliminate native access warnings by passing "--enable-native-access" for > the three JavaFX modules with native code (javafx.gra

Re: RFR: 8340005: Eliminate native access calls from javafx.swing [v3]

2024-10-15 Thread Prasanta Sadhukhan
ingNode tests are running ok without any native > warning Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Revert platformimpl change - Changes: - all: https://git.openjdk.org/jfx/pull/1600/files - new: h

Re: RFR: 8340005: Eliminate native access calls from javafx.swing [v2]

2024-10-15 Thread Prasanta Sadhukhan
ingNode tests are running ok without any native > warning Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Move native method to Application - Changes: - all: https://git.openjdk.org/jfx/pull/1600/files

RFR: 8340005: Eliminate native access calls from javafx.swing

2024-10-14 Thread Prasanta Sadhukhan
While implementing [JDK-8339517](https://bugs.openjdk.org/browse/JDK-8339517) to eliminate native access warnings by passing "--enable-native-access" for the three JavaFX modules with native code (javafx.graphics, javafx.media, and javafx.web), it was found that the Swing interop code in javafx

Re: RFR: 8339178: [macos] Swing InterOp Platform.exit() crash [v3]

2024-08-30 Thread Prasanta Sadhukhan
On Thu, 29 Aug 2024 15:56:59 GMT, Kevin Rushforth wrote: >> A Swing / FX interop app will crash if an application creates a new AWT / >> Swing window after calling Platform.exit. The root cause of the crash is >> that AWT caches the JNI env pointer for the AppKit thread, and assumes that >> it

Re: RFR: 8339178: [macos] Swing InterOp Platform.exit() crash

2024-08-29 Thread Prasanta Sadhukhan
On Mon, 26 Aug 2024 21:11:03 GMT, Kevin Rushforth wrote: > A Swing / FX interop app will crash if an application creates a new AWT / > Swing window after calling Platform.exit. The root cause of the crash is that > AWT caches the JNI env pointer for the AppKit thread, and assumes that it is >

Re: RFR: 8334593: Adding, removing and then adding a JFXPanel again leads to NullPointerException [v3]

2024-07-01 Thread Prasanta Sadhukhan
On Mon, 1 Jul 2024 20:43:44 GMT, Andy Goryachev wrote: > Kevin is right, this fix does not solve the issue mentioned in the ticket. > Once the fxPanel is added back, its content is not visible. Does not matter > whether removing/adding happens at startup or the button event handler. > > (attac

Re: RFR: 8334593: Adding, removing and then adding a JFXPanel again leads to NullPointerException [v3]

2024-07-01 Thread Prasanta Sadhukhan
ntainer for active JFXPanel) has been > reset/deleted which is done when `EmbeddedScene.dispose` is called during > removeNotify and abstain from updating the scene state Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

Re: RFR: 8334593: Adding, removing and then adding a JFXPanel again leads to NullPointerException

2024-07-01 Thread Prasanta Sadhukhan
On Fri, 28 Jun 2024 08:49:49 GMT, Prasanta Sadhukhan wrote: > Adding, then removing, and then adding a JFXPanel to the same component in > the Swing scene graph leads to a NullPointerException in GlassScene because > the sceneState is null. > Removing JFXPanel calls JFXPanel.

Re: RFR: 8334593: Adding, removing and then adding a JFXPanel again leads to NullPointerException [v2]

2024-07-01 Thread Prasanta Sadhukhan
ntainer for active JFXPanel) has been > reset/deleted which is done when `EmbeddedScene.dispose` is called during > removeNotify and abstain from updating the scene state Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision:

Re: RFR: 8334593: Adding, removing and then adding a JFXPanel again leads to NullPointerException

2024-06-30 Thread Prasanta Sadhukhan
On Mon, 1 Jul 2024 05:44:21 GMT, Prasanta Sadhukhan wrote: >> Can you add an automated test to cover this fix? >> >> Worth noting, this won't fully solve the problem that the reporter of this >> bug filed. The null check will prevent the NPE, but the scene will

Re: RFR: 8334593: Adding, removing and then adding a JFXPanel again leads to NullPointerException

2024-06-30 Thread Prasanta Sadhukhan
On Fri, 28 Jun 2024 14:12:37 GMT, Kevin Rushforth wrote: > To allow removing and then re-adding the `JFXPanel`, we would need to not > call `Window.hide` when the `JFXPanel` is removed. I am not sure if this is a problem as just as `JFXPanel.removeNotify` does `Window.hide` but at the same tim

RFR: 8334593: Adding, removing and then adding a JFXPanel again leads to NullPointerException

2024-06-28 Thread Prasanta Sadhukhan
Adding, then removing, and then adding a JFXPanel to the same component in the Swing scene graph leads to a NullPointerException in GlassScene because the sceneState is null. Removing JFXPanel calls JFXPanel.removeNotify which calls Window.hide which calls SceneHelper.disposePeer -> Scene.dispos

Re: RFR: 8270996: javadoc: missing comments in serialized classes [v3]

2024-03-04 Thread Prasanta Sadhukhan
On Thu, 29 Feb 2024 23:56:06 GMT, Andy Goryachev wrote: >> Adding `@SuppressWarnings("doclint:missing")` to the lines in Serializable >> classes that generated javadoc's "missing comments" warning. > > Andy Goryachev has updated the pull request incrementally with one additional > commit since

Re: RFR: 8270996: javadoc: missing comments in serialized classes [v3]

2024-03-04 Thread Prasanta Sadhukhan
On Fri, 1 Mar 2024 17:11:00 GMT, Kevin Rushforth wrote: >> FYI: after merging this and #1384 together all I see in the build log are 4 >> native warnings (on macOS): >> >> >> /Users/angorya/Projects/jfx-1/jfx/rt/modules/javafx.graphics/src/main/native-prism-es2/macosx/MacOSXWindowSystemInterfa

Re: RFR: 8270996: javadoc: missing comments in serialized classes [v3]

2024-02-29 Thread Prasanta Sadhukhan
On Thu, 29 Feb 2024 23:56:06 GMT, Andy Goryachev wrote: >> Adding `@SuppressWarnings("doclint:missing")` to the lines in Serializable >> classes that generated javadoc's "missing comments" warning. > > Andy Goryachev has updated the pull request incrementally with one additional > commit since

Integrated: 8324239: JFXPanelHiDPITest fails on Windows 11

2024-01-28 Thread Prasanta Sadhukhan
On Mon, 22 Jan 2024 09:01:10 GMT, Prasanta Sadhukhan wrote: > Test fails with > > JFXPanelHiDPITest > testScale FAILED > java.lang.NullPointerException: Cannot invoke > "java.awt.image.BufferedImage.getWidth()" because "pixelsIm" is null > >

Re: RFR: 8324239: JFXPanelHiDPITest fails on Windows 11 [v4]

2024-01-22 Thread Prasanta Sadhukhan
th invokeLater. > FIx is to make it run with invokeAndWait so that it waits for the scene to be > created.. Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Use Util.runAndWait - Changes: - all: https://

Re: RFR: 8324239: JFXPanelHiDPITest fails on Windows 11 [v3]

2024-01-22 Thread Prasanta Sadhukhan
th invokeLater. > FIx is to make it run with invokeAndWait so that it waits for the scene to be > created.. Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Use Platform.runAndWait - Changes: - all: https://

Re: RFR: 8324239: JFXPanelHiDPITest fails on Windows 11

2024-01-22 Thread Prasanta Sadhukhan
On Mon, 22 Jan 2024 09:01:10 GMT, Prasanta Sadhukhan wrote: > Test fails with > > JFXPanelHiDPITest > testScale FAILED > java.lang.NullPointerException: Cannot invoke > "java.awt.image.BufferedImage.getWidth()" because "pixelsIm" is null > >

Re: RFR: 8324239: JFXPanelHiDPITest fails on Windows 11 [v2]

2024-01-22 Thread Prasanta Sadhukhan
th invokeLater. > FIx is to make it run with invokeAndWait so that it waits for the scene to be > created.. Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Use Platform.runAndWait - Changes: - all: https://

RFR: 8324239: JFXPanelHiDPITest fails on Windows 11

2024-01-22 Thread Prasanta Sadhukhan
Test fails with JFXPanelHiDPITest > testScale FAILED java.lang.NullPointerException: Cannot invoke "java.awt.image.BufferedImage.getWidth()" because "pixelsIm" is null because scenePeer is not yet created as the test is run with invokeLater. FIx is to make it run with invokeAndWait so that

Re: RFR: 8322784: JFXPanel calls InputMethodRequests on wrong thread

2024-01-17 Thread Prasanta Sadhukhan
On Thu, 18 Jan 2024 07:28:57 GMT, Prasanta Sadhukhan wrote: >> On Windows we need to ensure InputMethodRequests coming from JFXPanel are >> processed on the JavaFX application thread instead of the AWT EventQueue >> thread. This PR adds the runAndWait() calls to do that. &g

Re: RFR: 8322784: JFXPanel calls InputMethodRequests on wrong thread

2024-01-17 Thread Prasanta Sadhukhan
On Tue, 16 Jan 2024 17:59:42 GMT, Martin Fox wrote: > On Windows we need to ensure InputMethodRequests coming from JFXPanel are > processed on the JavaFX application thread instead of the AWT EventQueue > thread. This PR adds the runAndWait() calls to do that. > > This would be difficult to te

Re: RFR: 8322784: JFXPanel calls InputMethodRequests on wrong thread

2024-01-17 Thread Prasanta Sadhukhan
On Tue, 16 Jan 2024 17:59:42 GMT, Martin Fox wrote: > On Windows we need to ensure InputMethodRequests coming from JFXPanel are > processed on the JavaFX application thread instead of the AWT EventQueue > thread. This PR adds the runAndWait() calls to do that. > > This would be difficult to te

Re: [jfx22] RFR: 8221261: Deadlock on macOS in JFXPanel app when handling IME calls

2024-01-15 Thread Prasanta Sadhukhan
On Mon, 15 Jan 2024 16:11:08 GMT, Kevin Rushforth wrote: > Clean backport of a safe fix for this critical deadlock bug to the jfx22 > stabilization branch during RDP1. Marked as reviewed by psadhukhan (Reviewer). - PR Review: https://git.openjdk.org/jfx/pull/1334#pullrequestreview

Re: RFR: 8221261: Deadlock on macOS in JFXPanel app when handling IME calls [v2]

2024-01-11 Thread Prasanta Sadhukhan
On Thu, 11 Jan 2024 23:54:13 GMT, Kevin Rushforth wrote: >> As described in the JBS bug, there is a long-standing deadlock that happens >> on macOS between the AWT EDT and the JavaFX Application thread (which on >> macOS is the AppKit thread) when processing Input Method Events (IME) in a >> W

Integrated: 8303826: Add FX test for JDK-8252255

2023-11-20 Thread Prasanta Sadhukhan
On Thu, 9 Nov 2023 03:43:48 GMT, Prasanta Sadhukhan wrote: > Manual regression test for 8252255: Blurry rendering of SwingNode with HiDPI > scaling in JavaFX is added This pull request has now been integrated. Changeset: a1036b26 Author:Prasanta Sadhukhan URL:

RFR: 8303826: Add FX test for JDK-8252255

2023-11-08 Thread Prasanta Sadhukhan
Manual regression test for 8252255: Blurry rendering of SwingNode with HiDPI scaling in JavaFX is added - Commit messages: - 8303826: Add FX test for JDK-8252255 - 8303826: Add FX test for JDK-8252255 Changes: https://git.openjdk.org/jfx/pull/1282/files Webrev: https://webrevs.op

Integrated: 8319147: Add regression test for JDK-8317836

2023-11-06 Thread Prasanta Sadhukhan
On Thu, 2 Nov 2023 06:04:23 GMT, Prasanta Sadhukhan wrote: > A manual regression test for JFXPanel orientation fix in > [JDK-8317836](https://bugs.openjdk.org/browse/JDK-8317836) is added This pull request has now been integrated. Changeset: 29f9c4d3 Author:Prasanta Sadhukha

Re: RFR: 8319147: Add regression test for JDK-8317836 [v2]

2023-11-06 Thread Prasanta Sadhukhan
On Mon, 6 Nov 2023 06:06:35 GMT, Prasanta Sadhukhan wrote: >> A manual regression test for JFXPanel orientation fix in >> [JDK-8317836](https://bugs.openjdk.org/browse/JDK-8317836) is added > > Prasanta Sadhukhan has updated the pull request incrementally with two > add

Re: RFR: 8319147: Add regression test for JDK-8317836 [v2]

2023-11-05 Thread Prasanta Sadhukhan
On Sat, 4 Nov 2023 13:48:48 GMT, Kevin Rushforth wrote: > make the test window smaller so they don't overlap Done > Maybe set the X and Y of the instruction window Although it is probably not required now, but can you please specify how to do it for my future reference as I dont see Scene accep

Re: RFR: 8319147: Add regression test for JDK-8317836 [v2]

2023-11-05 Thread Prasanta Sadhukhan
> A manual regression test for JFXPanel orientation fix in > [JDK-8317836](https://bugs.openjdk.org/browse/JDK-8317836) is added Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: - Formatting - Modify windo

RFR: 8319147: Add regression test for JDK-8317836

2023-11-02 Thread Prasanta Sadhukhan
A manual regression test for JFXPanel orientation fix in [JDK-8317836](https://bugs.openjdk.org/browse/JDK-8317836) is added - Commit messages: - Test fix - Test fix Changes: https://git.openjdk.org/jfx/pull/1276/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1276&range=0

Integrated: 8317836: FX nodes embedded in JFXPanel need to track component orientation

2023-10-31 Thread Prasanta Sadhukhan
On Thu, 26 Oct 2023 09:34:17 GMT, Prasanta Sadhukhan wrote: > FX Nodes embedded in a Swing JFXPanel does not track the component > orientation and FX nodes remain unaffected when component orientation changes. > Fix made sure JavaFX scene embedded in a JFXPanel should inherit the valu

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v10]

2023-10-31 Thread Prasanta Sadhukhan
> FX Nodes embedded in a Swing JFXPanel does not track the component > orientation and FX nodes remain unaffected when component orientation changes. > Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value > from the JFXPanel. Prasanta Sadhukhan has updated the

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v9]

2023-10-31 Thread Prasanta Sadhukhan
On Tue, 31 Oct 2023 16:13:57 GMT, Prasanta Sadhukhan wrote: >> FX Nodes embedded in a Swing JFXPanel does not track the component >> orientation and FX nodes remain unaffected when component orientation >> changes. >> Fix made sure JavaFX scene embedded in a JFXPanel

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v8]

2023-10-31 Thread Prasanta Sadhukhan
On Tue, 31 Oct 2023 15:54:00 GMT, Andy Goryachev wrote: > What would the behavior of a JLabel in a JPanel be when the JFrame is set > back to UNKNOWN? It sets it back to LTR it is toggled from RIGHT_TO_LEFT to UNNOWN. So, I updated PR to set JFXPanel to LTR for UNKNOWN..If set to INHERIT, then

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v9]

2023-10-31 Thread Prasanta Sadhukhan
> FX Nodes embedded in a Swing JFXPanel does not track the component > orientation and FX nodes remain unaffected when component orientation changes. > Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value > from the JFXPanel. Prasanta Sadhukhan has updated the

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v8]

2023-10-31 Thread Prasanta Sadhukhan
On Mon, 30 Oct 2023 14:00:56 GMT, Prasanta Sadhukhan wrote: >> FX Nodes embedded in a Swing JFXPanel does not track the component >> orientation and FX nodes remain unaffected when component orientation >> changes. >> Fix made sure JavaFX scene embedded in a JFXPanel

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v8]

2023-10-31 Thread Prasanta Sadhukhan
On Tue, 31 Oct 2023 15:36:20 GMT, Andy Goryachev wrote: > > I expect RTL because INHERIT is unsupported so it will retain the existing > > orientation, > > Why existing and not the initial? Tha tis grey area which is not mentioned in the spec so I think retaining existing is the appropriate a

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v8]

2023-10-31 Thread Prasanta Sadhukhan
On Tue, 31 Oct 2023 15:07:32 GMT, Andy Goryachev wrote: > > I think it is expected to retain RTL in this case.. > > Ok, INHERIT is not supported, but why do you expect RTL? Shouldn't it go back > to UNKNOWN and therefore LTR? > > ``` > public static final > [ComponentOrientation](https://docs

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v4]

2023-10-30 Thread Prasanta Sadhukhan
On Mon, 30 Oct 2023 15:23:45 GMT, Kevin Rushforth wrote: >> Yes, initialization helped..Updated the PR... >> Also, speaking of regression test, I need some time to create one.. Will it >> be ok to push the fix if found to be ok and I work on the test >> simultaneously as a separate JBS test iss

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v8]

2023-10-30 Thread Prasanta Sadhukhan
On Mon, 30 Oct 2023 14:00:56 GMT, Prasanta Sadhukhan wrote: >> FX Nodes embedded in a Swing JFXPanel does not track the component >> orientation and FX nodes remain unaffected when component orientation >> changes. >> Fix made sure JavaFX scene embedded in a JFXPanel

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v4]

2023-10-30 Thread Prasanta Sadhukhan
On Mon, 30 Oct 2023 12:53:07 GMT, Kevin Rushforth wrote: >> I have made the suggested changes and updated the PR. >> But it seems the orientation of the text in the test attached in JBS is at >> the middle initially (and not at LTR or RTL) and it only begins to track the >> orientation after 1

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v8]

2023-10-30 Thread Prasanta Sadhukhan
> FX Nodes embedded in a Swing JFXPanel does not track the component > orientation and FX nodes remain unaffected when component orientation changes. > Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value > from the JFXPanel. Prasanta Sadhukhan has updated the

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v4]

2023-10-30 Thread Prasanta Sadhukhan
On Sat, 28 Oct 2023 18:25:53 GMT, Kevin Rushforth wrote: >> I have tried to put in place what you suggested. Can you please take a look >> at the PR and see if it's in the right direction and suggest further. >> I have few doubts >> >> - It seems JFXPanel call EmbeddedStage interface methods an

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v7]

2023-10-30 Thread Prasanta Sadhukhan
> FX Nodes embedded in a Swing JFXPanel does not track the component > orientation and FX nodes remain unaffected when component orientation changes. > Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value > from the JFXPanel. Prasanta Sadhukhan has updated the

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v6]

2023-10-28 Thread Prasanta Sadhukhan
> FX Nodes embedded in a Swing JFXPanel does not track the component > orientation and FX nodes remain unaffected when component orientation changes. > Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value > from the JFXPanel. Prasanta Sadhukhan has updated the

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v4]

2023-10-28 Thread Prasanta Sadhukhan
On Fri, 27 Oct 2023 16:55:30 GMT, Kevin Rushforth wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Code optimize > > modules/javafx.swing/src/main/java/javafx/embed/swing/JFX

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v5]

2023-10-28 Thread Prasanta Sadhukhan
> FX Nodes embedded in a Swing JFXPanel does not track the component > orientation and FX nodes remain unaffected when component orientation changes. > Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value > from the JFXPanel. Prasanta Sadhukhan has updated the

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v2]

2023-10-26 Thread Prasanta Sadhukhan
On Thu, 26 Oct 2023 18:16:26 GMT, Andy Goryachev wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Optimization > > modules/javafx.swing/src/main/java/javafx/embed/swing/JFX

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v4]

2023-10-26 Thread Prasanta Sadhukhan
> FX Nodes embedded in a Swing JFXPanel does not track the component > orientation and FX nodes remain unaffected when component orientation changes. > Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value > from the JFXPanel. Prasanta Sadhukhan has updated the

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v3]

2023-10-26 Thread Prasanta Sadhukhan
> FX Nodes embedded in a Swing JFXPanel does not track the component > orientation and FX nodes remain unaffected when component orientation changes. > Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value > from the JFXPanel. Prasanta Sadhukhan has updated the

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v2]

2023-10-26 Thread Prasanta Sadhukhan
On Thu, 26 Oct 2023 15:31:02 GMT, Andy Goryachev wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Optimization > > modules/javafx.swing/src/main/java/javafx/embed/swing/JFX

Re: RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation [v2]

2023-10-26 Thread Prasanta Sadhukhan
> FX Nodes embedded in a Swing JFXPanel does not track the component > orientation and FX nodes remain unaffected when component orientation changes. > Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value > from the JFXPanel. Prasanta Sadhukhan has updated the

RFR: 8317836: FX nodes embedded in JFXPanel need to track component orientation

2023-10-26 Thread Prasanta Sadhukhan
FX Nodes embedded in a Swing JFXPanel does not track the component orientation and FX nodes remain unaffected when component orientation changes. Fix made sure JavaFX scene embedded in a JFXPanel should inherit the value from the JFXPanel. - Commit messages: - 8317836: FX nodes emb

Integrated: 8318059: Typo is javafx.scene.Node.usesMirroring comment

2023-10-12 Thread Prasanta Sadhukhan
On Fri, 13 Oct 2023 03:23:42 GMT, Prasanta Sadhukhan wrote: > Corrected the typo This pull request has now been integrated. Changeset: 4604e873 Author: Prasanta Sadhukhan URL: https://git.openjdk.org/jfx/commit/4604e87372adf3842529c1b3640bdb4424867e3d Stats: 1 line in 1 f

RFR: 8318059: Typo is javafx.scene.Mode.usesMirroring comment

2023-10-12 Thread Prasanta Sadhukhan
Corrected the typo - Commit messages: - Typo fix Changes: https://git.openjdk.org/jfx/pull/1260/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1260&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8318059 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch:

Integrated: 8315317: Add test for JDK-8262518

2023-09-08 Thread Prasanta Sadhukhan
On Fri, 1 Sep 2023 03:16:11 GMT, Prasanta Sadhukhan wrote: > Added automated test for 8262518:SwingNode.setContent does not close previous > content, resulting in memory leak This pull request has now been integrated. Changeset: eb7de72d Author:Prasanta Sadhukhan URL:

Re: RFR: 8315317: Add test for JDK-8262518 [v2]

2023-09-07 Thread Prasanta Sadhukhan
On Fri, 1 Sep 2023 14:31:49 GMT, Andy Goryachev wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Better failure detection > > tests/system/src/tes

Re: RFR: 8315317: Add test for JDK-8262518 [v2]

2023-09-03 Thread Prasanta Sadhukhan
On Fri, 1 Sep 2023 14:38:16 GMT, Kevin Rushforth wrote: >> tests/system/src/test/java/test/javafx/embed/swing/SwingNodeContentMemoryLeakTest.java >> line 116: >> >>> 114: System.out.println("iteration " + count + " Panels in >>> memory: " >>> 115:

Re: RFR: 8315317: Add test for JDK-8262518 [v2]

2023-09-03 Thread Prasanta Sadhukhan
> Added automated test for 8262518:SwingNode.setContent does not close previous > content, resulting in memory leak Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Better failure detection - Changes:

RFR: 8315317: Add test for JDK-8262518

2023-08-31 Thread Prasanta Sadhukhan
Added automated test for 8262518:SwingNode.setContent does not close previous content, resulting in memory leak - Commit messages: - jckeck fix - 8315317: Add test for JDK-8262518 Changes: https://git.openjdk.org/jfx/pull/1228/files Webrev: https://webrevs.openjdk.org/?repo=jfx&p

Re: RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak [v5]

2023-08-30 Thread Prasanta Sadhukhan
On Fri, 25 Aug 2023 03:36:53 GMT, Prasanta Sadhukhan wrote: >> Issue is when setting the content of a SwingNode, the old content is not >> garbage collected owing to the fact >> JLightweightFrame is never being released by SwingNodeDisposer >> >> The SwingNodeDis

Re: RFR: 8255248: NullPointerException in JFXPanel due to race condition in HostContainer [v7]

2023-08-29 Thread Prasanta Sadhukhan
> Due to transient datatype of scenePeer, it can become null which can result > in NPE in scenarios where scene is continuously been reset and set, which > warrants a null check, as is done in other places for the same variable. Prasanta Sadhukhan has updated the pull request increment

Re: RFR: 8255248: NullPointerException in JFXPanel due to race condition in HostContainer [v6]

2023-08-29 Thread Prasanta Sadhukhan
> Due to transient datatype of scenePeer, it can become null which can result > in NPE in scenarios where scene is continuously been reset and set, which > warrants a null check, as is done in other places for the same variable. Prasanta Sadhukhan has updated the pull request with a n

Re: RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak [v5]

2023-08-28 Thread Prasanta Sadhukhan
On Mon, 28 Aug 2023 22:57:44 GMT, Kevin Rushforth wrote: > Is it possible to write an automated test? oops..missed this..i can definitely try..maybe in upcoming test-sprint.. - PR Comment: https://git.openjdk.org/jfx/pull/1219#issuecomment-1696740917

Integrated: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak

2023-08-28 Thread Prasanta Sadhukhan
On Tue, 22 Aug 2023 09:54:11 GMT, Prasanta Sadhukhan wrote: > Issue is when setting the content of a SwingNode, the old content is not > garbage collected owing to the fact > JLightweightFrame is never being released by SwingNodeDisposer > > The SwingNodeDisposer holds an hard

Re: RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak [v5]

2023-08-27 Thread Prasanta Sadhukhan
On Thu, 24 Aug 2023 22:30:04 GMT, John Hendrikx wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> javadoc, dispose > > modules/javafx.swing/src/main/java/javafx/embed/swing/Swin

Re: RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak [v5]

2023-08-24 Thread Prasanta Sadhukhan
tion > > Modified `SwingNode.setContentImpl` function to use a WeakReference to > properly release the memory. Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: javadoc, dispose - Changes: - all: https

Re: RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak [v3]

2023-08-23 Thread Prasanta Sadhukhan
On Wed, 23 Aug 2023 14:57:31 GMT, Andy Goryachev wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> DisposerRecord leak fix > > modules/javafx.swing/src/main/java/javafx/embed

Re: RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak [v4]

2023-08-23 Thread Prasanta Sadhukhan
tion > > Modified `SwingNode.setContentImpl` function to use a WeakReference to > properly release the memory. Prasanta Sadhukhan has updated the pull request incrementally with two additional commits since the last revision: - javadoc, null check - javadoc, null check ---

Re: RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak [v3]

2023-08-23 Thread Prasanta Sadhukhan
tion > > Modified `SwingNode.setContentImpl` function to use a WeakReference to > properly release the memory. Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: DisposerRecord leak fix - Changes: - all:

Re: RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak [v2]

2023-08-23 Thread Prasanta Sadhukhan
On Wed, 23 Aug 2023 10:13:32 GMT, John Hendrikx wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Optimize without WeakReference > > modules/javafx.swing/src/main/java/com/sun/ja

Re: RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak

2023-08-22 Thread Prasanta Sadhukhan
On Tue, 22 Aug 2023 09:54:11 GMT, Prasanta Sadhukhan wrote: > Issue is when setting the content of a SwingNode, the old content is not > garbage collected owing to the fact > JLightweightFrame is never being released by SwingNodeDisposer > > The SwingNodeDisposer holds an hard

Re: RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak [v2]

2023-08-22 Thread Prasanta Sadhukhan
tion > > Modified `SwingNode.setContentImpl` function to use a WeakReference to > properly release the memory. Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Optimize without WeakReference ---

RFR: 8262518: SwingNode.setContent does not close previous content, resulting in memory leak

2023-08-22 Thread Prasanta Sadhukhan
Issue is when setting the content of a SwingNode, the old content is not garbage collected owing to the fact JLightweightFrame is never being released by SwingNodeDisposer The SwingNodeDisposer holds an hard pointer to the JLightweightFrame that prevents its collection Modified `SwingNode.setCo

Integrated: 8274932: Render scales in EmbeddedWindow are not properly updated

2023-08-21 Thread Prasanta Sadhukhan
On Thu, 6 Jul 2023 13:10:44 GMT, Prasanta Sadhukhan wrote: > When the JavaFX scene is set before it is really shown, then the scale > factors are not properly propagated to the EmbeddedWindow, resulting in > showing wrong scales. > Fix is made to update scales to EmbeddedWindo

Re: RFR: 8090267: JFXPanel Input Problem

2023-08-20 Thread Prasanta Sadhukhan
On Tue, 4 Jul 2023 05:54:54 GMT, Prasanta Sadhukhan wrote: > When Japanse (IME on) is inputted to the TextFIeld, which is on JFXPanel, > small window for inputting appears on top-left side of screen > > ![image](https://github.com/openjdk/jfx/assets/43534309/65833d59-52

Re: RFR: 8274932: Render scales in EmbeddedWindow are not properly updated [v9]

2023-08-15 Thread Prasanta Sadhukhan
On Tue, 15 Aug 2023 14:41:16 GMT, Andy Goryachev wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Duplicate code removal > > modules/javafx.swing/src/main/java/javafx/embe

Re: RFR: 8274932: Render scales in EmbeddedWindow are not properly updated [v10]

2023-08-15 Thread Prasanta Sadhukhan
> When the JavaFX scene is set before it is really shown, then the scale > factors are not properly propagated to the EmbeddedWindow, resulting in > showing wrong scales. > Fix is made to update scales to EmbeddedWindow Prasanta Sadhukhan has updated the pull request incrementa

Re: RFR: 8274932: Render scales in EmbeddedWindow are not properly updated [v8]

2023-08-07 Thread Prasanta Sadhukhan
On Thu, 3 Aug 2023 18:05:52 GMT, Andy Goryachev wrote: >> Prasanta Sadhukhan has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Call updateSceneState with lock and in FX thread > > src="https://gith

Re: RFR: 8274932: Render scales in EmbeddedWindow are not properly updated [v9]

2023-08-07 Thread Prasanta Sadhukhan
On Mon, 7 Aug 2023 08:52:01 GMT, John Hendrikx wrote: > Are you sure it works correctly on Windows now? I have tested EmbeddedFrameBug in windows10 with primary scale 1.25 and secondary scale 1.75 and it worked for me.. - PR Comment: https://git.openjdk.org/jfx/pull/1171#issuecomm

Re: RFR: 8274932: Render scales in EmbeddedWindow are not properly updated [v9]

2023-08-07 Thread Prasanta Sadhukhan
On Mon, 7 Aug 2023 07:56:27 GMT, John Hendrikx wrote: > > > both windows (using EmbeddedFrameBug class listed earlier) shows O100% > > > for primary retina screen (should be 200%). > > > > > > @hjohn Seems like @andy-goryachev-oracle is telling it regressed after > > `updateSceneState` integr

Re: RFR: 8090267: JFXPanel Input Problem

2023-08-07 Thread Prasanta Sadhukhan
On Thu, 27 Jul 2023 16:59:59 GMT, Andy Goryachev wrote: > I would love to review this, but for some reason, I could not get Japanese > IME to work on my windows 11... Does it work now? or Can anyone else review this please? - PR Comment: https://git.openjdk.org/jfx/pull/1169#issu

  1   2   >