开发者

Look-and-feel of an applet window changes on subsequent displays

开发者 https://www.devze.com 2022-12-09 17:30 出处:网络
I开发者_运维问答 have an applet that displays a dialog box on click of a button.When the dialog box is first displayed, it is shown using the native look-and-feel of the OS.When the dialog box is disp

I开发者_运维问答 have an applet that displays a dialog box on click of a button. When the dialog box is first displayed, it is shown using the native look-and-feel of the OS. When the dialog box is displayed a second time (same page, browser, OS, etc.), it is shown using what I think is the Swing look-and-feel. To my knowledege, I do not explicity set the look-and-feel of my applet. Should I be doing so to avoid this inconsistent behavior?


Please elaborate what you mean by "display". A different screen on the same computer? A different computer? Is the same version of Java installed? Is the exact same version of the OS installed?

The user can influence the L&F with environment variables. These docs may help.

Also, for the native Windows XP L&F, you need a special DLL.

0

精彩评论

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

关注公众号