Force Look/Feel in SWT

eclipse, eclipse-rcp, java, swt, user-interface

Solution

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

Problem

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?

Original source