Look and Feel. [message #719857] |
Mon, 29 August 2011 04:41  |
Eclipse User |
|
|
|
Hi guys.
I'm having a slightly annoying issue with the "Look and feel"-settings of WB. Basically, it appears that it doesn't matter what look-and-feel setting I choose when I am in the WB designview - changing it DOES change what I see in the designview, but it does NOT apply when I run the program...
Furthermore, executing "Test/Preview" when I rightclick on a window inside the designview DOES show my GUI with the selected look-and-feel setting. It's just that when I run the application, it defaults to what I think is the "Metal" look-and-feel.
How can I ensure that whichever look-and-feel setting I set will be the one used when the program is executed?
Thanks,
Andreas.
|
|
|
|
|
Re: Look and Feel. [message #720002 is a reply to message #719885] |
Mon, 29 August 2011 12:32  |
Eclipse User |
|
|
|
I don't take offense, but this is probably not the best forum to find answers to questions like that. Someone in a general Swing forum would more likely know the answer (thread related? timing related? I don't know).
As to your earlier question, the expectation is that you will set your LAF once in your app and not in every UI class. Thus, WB does not generate the hardcoded LAF code unless you ask it to via that preference. The LAF drop down in the design window is primarily there to allow you to quickly preview what the UI would look like under different LAFs.
|
|
|
Powered by
FUDForum. Page generated in 0.04659 seconds