RFR: 8373: Fix tooltip on Flamegraph not showing after switching to Stack Trace view

Brice Dutheil bdutheil at openjdk.org
Wed Apr 2 14:59:25 UTC 2025


On Fri, 28 Mar 2025 12:36:55 GMT, Hélios GILLES <duke at openjdk.org> wrote:

> Fix tooltip on Flamegraph not showing after switching to Stack Trace view
> 
> The bug : Open a JFR file, open the Flamegraph view, see the tooltip on Flamegraph working, activate the Stack Trace view, get back to Flamegraph ==> the tooltip is not showing anymore on Flamegraph

application/org.openjdk.jmc.flightrecorder.flamegraph/src/main/java/org/openjdk/jmc/flightrecorder/flamegraph/views/FlamegraphSwingView.java line 497:

> 495: 			tooltip.setShift(new Point(10, 5));
> 496: 
> 497: 			embeddingComposite.addListener(SWT.MouseExit, event -> Display.getDefault().timerExec(300, tooltip::hide));

**question:** I wonder if this listener is still needed, in case the mouse event is not received on the swing component. E.g. in weird situations like : Alt Tab (on macOs) to change app but in the end selecting back to JMC. Not sure it's a real scenario, but i could imagine the Swing component not properly receiving mouse events.

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

PR Review Comment: https://git.openjdk.org/jmc/pull/635#discussion_r2025015576


More information about the jmc-dev mailing list