[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: How does SWT select its style?
|
I'm not entirely sure I uderstand what the non-working one is, but here's
maybe some manifest info.
If your application is launched from a non javaw.exe start, meaning, you
have your own executable or such (that launches the VM in any way), you need
to name the manifest file the same as the exectuable and add on ".manifest"
and put it where the executable is.
So, if your java app is launched by "launch.exe" you would make a copy of
the manifest and name it "launch.exe.manifest" (case sensetive too) and put
it in the same directory as "launch.exe", that way Windows would apply the
Win XP look and feel to your application.
Hope that helps solving your problem,
Emil
"Martin J Nilsson" <martin.j.nilsson@xxxxxxxxxx> wrote in message
news:ab13a8ac620b90ba0a94e19ce44e9093$1@xxxxxxxxxxxxxxxxxx
> Hi,
>
> I have a small SWT-application which resides on a server here at my
> company. It can be invoked in two ways:
>
> 1. By double-clicking on the jar-file itself (or having a short-cut to the
> jar-file on one's own desktop and double-clicking on that).
>
> 2. By clicking on a file with a suffix that is associated with the
> program.
>
> The jar-file contains the swt-dll [swt-win32-3128.dll] and the necessary
> swt-classes and the DLL is copied to the user's java/bin-directory the
> first time the user invokes the program. Everything works fine.
>
> My only problem is that when the program is started in the first way I get
> the new XP-look with rounded buttons and if it is started in the second
> way I get the old XP-look (or is it win2000?) with square buttons. Buttons
> are just an example, all of the other widgets also differ in style.
>
> This is not a huge problem, the application looks fine both ways, but I
> find it really strange that it doesn't look the same independant on how I
> start it. My guess is that in the second scenario the application somehow
> finds out the operating system by querying the server and in the first
> scenario from my own machine. Can I fix this somehow?
>
> regards,
> martin
>
>
>
>
>