开发者

Java Applet with tooltip

开发者 https://www.devze.com 2023-03-06 22:20 出处:网络
I have a JApplet that contains a JEditorPane. The JEditorPane has a tooltip text associated with it. The first time the applet is loaded, the tooltip shows correctly but after I click somewhere in the

I have a JApplet that contains a JEditorPane. The JEditorPane has a tooltip text associated with it. The first time the applet is loaded, the tooltip shows correctly but after I click somewhere in the HTML page, outside the applet's area, the tooltip stops working. I suspect it has to do with the applet losing focus.

开发者_Python百科

Is there any workaround for this problem?

Best regards, Dan.


Try "(...) naming the applet element within the html document and then using javascript onfocus to send the browser focus to the element."

Source: http://www.velocityreviews.com/forums/t671396-applet-focus-issue.html

0

精彩评论

暂无评论...
验证码 换一张
取 消