Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force Look/Feel in SWT

Hopefully no one has asked this question - didn't see it, but I apologize if it's a duplicate.

Anyway, I'm building some plug-ins with Eclipse RCP and am using SWT for my UI. I have a Composite that contains some panels and other items - anyway, I've noticed a bit of a difference in the appearance of the UI depending on how my OS is set up.

I'm running windows XP but am using the "classic" look/feel which is that of Windows 98. When it's like this - the UI looks fine; however, when I switch to the newer XP look/feel with that tacky blue bar and what not - labels and borders in my composite are different.

Is there a way I can force SWT to use the classic look/feel?

like image 508
ist_lion Avatar asked Feb 28 '23 13:02

ist_lion


2 Answers

You need a javaw.exe.manifest bound to your application.

Here is an article that describes the problem:

http://www.javalobby.org/forums/thread.jspa?threadID=15414&tstart=0

like image 85
Dani Cricco Avatar answered Mar 06 '23 19:03

Dani Cricco


I think it is a design decision of SWT to make it inherit the platform look and feel. I imagine this is partly to address the usual "java apps look rubbish/out of place/different" comments and partly to make it easier to load the relevant fragments at startup. I don't know of any way to override the standard values.

like image 31
Rich Seller Avatar answered Mar 06 '23 21:03

Rich Seller