views:

220

answers:

1

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?

A: 

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.

Aaron Digulla
Clarified as requested
Chry Cheng