Hi Emi,
Initially I was going to respond by saying that I'm not sure where to print
the stack trace and/or set breakpoints since my code isn't anywhere in the
event handling path and I was going to post a stripped-down example java
file to illustrate. So I created a very simple example (see attached) but
found the situation even odder than initially described: If I run this
program on my Mac's *internal* display, the links on the displayed web page
(google.com) do not work, but if I drag the window to one of my *external*
monitors first, the links *do* work!?!? I did the same thing on a
colleague's Windows 10 box, and in his multi-monitor setup it works in both
cases. And it also works on my manager's single-monitor Windows 10 setup.
I use java 1.8.0_144-b1 on my Mac. For the Windows setup, it was
1.8.0_102.
I have no clue what's going on, but it sure seems like some sort of Mac
Java bug. Anyway, attached is the java file - just in case someone wants
to try it on a MBP with external monitors - or spot a bug in my code - I'm
not JFX expert for sure.
Regards,
Tom
On Sat, Mar 3, 2018 at 7:43 AM, Emilian Bold
wrote:
> Interesting. A modal dialog will have a separate, temporary, event queue
> AFAIK.
>
> Have you tried just printing a stacktrace in the JFrame, when it works
> then compare to what happens and how the mouse click is handled in the
> JDialog?
>
> You can probably attach a debugger/btrace script to see the behaviour and
> find the place where it breaks.
>
> --emi
>
> ‐‐‐ Original Message ‐‐‐
> On 2 March 2018 9:35 PM, Thomas Wolf wrote:
>
> Sorry for bother this group, but I literally found zero help in Google and
> the pool of Swing/JavaFX knowledgeable people is a quickly dwindling one :-(
>
> Our Swing application puts up a JDialog whose contents is a JTabbedPane
> with a few tabs. One of them is currently a JEditorPane that was
> displaying some simple HTML. Because we need to now show more
> sophisticated HTML that includes links, I replaced the JEditorPane with my
> own JPanel that contains a JFXPanel whose Scene is a WebView. I’ve done
> this a few times in the past and never had any trouble. But that was
> always with a JFrame. But this time it’s not: the web page displays just
> fine, but clicking the links doesn’t work! The problem is clearly the
> JDialog – everything works fine when the WebView is placed in a JFrame
> instead of a JDialog.
>
> I remember that JDialog has their own event processing – so I’m pretty
> certain that it has something to do with that - since JavaFX doesn’t even
> use the Swing event processing. I just don’t know what to do about it.
> Have you come across the issue and found a solution? Any pointers would be
> appreciated. Even if it's just a link.
>
> Thanks a bunch,
> Tom
>
> --
> tjw...@gmail.com
> http://landofwolf.blogspot.com/
>
>
>
--
tjw...@gmail.com
http://landofwolf.blogspot.com/
WebPanel.java
Description: Binary data
-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists