简体   繁体   English

JavaFX Webview 未显示警告框

[英]JavaFX Webview not showing alert box

So I started using JavaFX recently and one of it's features is WebView.所以我最近开始使用 JavaFX,它的功能之一是 WebView。 It looks cool but what I discovered is that when button is clicked which invokes alert box then it is not displayed (it is invisible, but actually I know it is there).它看起来很酷,但我发现当点击按钮调用警报框时,它不会显示(它是不可见的,但实际上我知道它在那里)。

How can I make it to be visible to the user?我怎样才能让它对用户可见?

So, actually I found an answer that was exactly the same I wanted and it has been answered earlier.所以,实际上我找到了一个与我想要的完全相同的答案,并且之前已经得到了答案。 Link: How can I make JavaFX web browser displays alert and confirm message链接: 如何让 JavaFX Web 浏览器显示警报和确认消息

(So this question in this thread is a possible duplicate, but maybe it is good if there is more questions like this, then it is easier to find answer for such similar problem) (所以这个线程中的这个问题可能是重复的,但如果有更多这样的问题,那么可能会更好,然后更容易找到类似问题的答案)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM