Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev]Strange sideeffect ofButton.setImage(Image img)method

Hi Steve,

great, you gave me the idea of changing the process back to the default
javaw.exe process and that's it. Switching that option off in Launch4J
helps. I can turn the individual process name down. Nevertheless I will try
your suggestion on bundling the manifest as resource to the wrapper
executable. Perhaps I can make it running that way too. Thanks for your
support.

Regards
Sebastian

________________________________________
From: platform-swt-dev-bounces@xxxxxxxxxxx
[mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf Of Steve Northover
Sent: Monday, November 14, 2005 9:17 PM
To: Eclipse Platform SWT component developers list.
Subject: RE: [platform-swt-dev]Strange sideeffect ofButton.setImage(Image
img)method


Use the C compiler or a binary editor to attach it to the .exe.  Check out
the MSDN for details. 


Sebastian Machhausen <sebastian.machhausen@xxxxxxxxx> 
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx 
11/14/2005 03:13 PM 
Please respond to
"Eclipse Platform SWT component developers list."

To
"'Eclipse Platform SWT component developers list.'"
<platform-swt-dev@xxxxxxxxxxx> 
cc

Subject
RE: [platform-swt-dev]Strange        sideeffect      
 ofButton.setImage(Image        img)        method








Hi Steve,

I copied the mainfest to all jre installations on the machine to be sure on
that. Doesn't help. But the process is an interesting point. Launch4J offers
an option to use a individual process name which I made use of. I could try
to switch that off.

I already tried to rename the javaw.exe.manifest to
myapplication.exe.mainfest but that has no effect. Or should I also copy
that manifest to the jre/bin folder? Currently I keep it in the deployment
directory of my application. BTW: How could I bundle the manifest as
resource with my application? Launch4J does not offer this but I remember
some kind of resource hacker applications that are able to do that.
Something like that?

Regards
Sebastian

________________________________________
From: platform-swt-dev-bounces@xxxxxxxxxxx
[mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf Of Steve Northover
Sent: Monday, November 14, 2005 9:07 PM
To: Eclipse Platform SWT component developers list.
Subject: RE: [platform-swt-dev]Strange sideeffect ofButton.setImage(Image
img) method


You must not be invoking the right javaw.exe?  Eclipse is doing the same
thing that you are doing. 

Question:  Does Launch4J start javaw.exe in a separate process or invoke it
using JNI from the same process?  If the same process, then you can embed
the manifest file as a resource in the .exe (which is what applications on
Windows are supposed to be doing anyways but we can't do it because we don't
own javaw.exe) or rename the manifest to be the same name as the lauching
.exe. 


Sebastian Machhausen <sebastian.machhausen@xxxxxxxxx> 
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx 
11/14/2005 02:58 PM 
Please respond to
"Eclipse Platform SWT component developers list."

To
"'Eclipse Platform SWT component developers list.'"
<platform-swt-dev@xxxxxxxxxxx> 
cc

Subject
RE: [platform-swt-dev] Strange        sideeffect      
 ofButton.setImage(Image        img) method







Hi Steve,

yes the Launch4J Wrapper invokes the javaw.exe. I copied the
javaw.exe.manifest to the deployment directory and to the jre/bin directory.
But it doesn't help. The button texts do not show up. I'm fairly at a loss
with this issue. I could live with the fact that the xp skin is not used but
the button misbehaviour is not acceptable for me. How do you guys solve this
with the eclipse.exe?

Regards
Sebastian

________________________________________
From: platform-swt-dev-bounces@xxxxxxxxxxx
[mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf Of Steve Northover
Sent: Monday, November 14, 2005 8:48 PM
To: Eclipse Platform SWT component developers list.
Subject: RE: [platform-swt-dev] Strange sideeffect ofButton.setImage(Image
img) method


Are you invoking javaw.exe?  If so, is the XP manifest in the same
directory? 


Sebastian Machhausen <sebastian.machhausen@xxxxxxxxx> 
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx 
11/14/2005 02:22 PM 
Please respond to
"Eclipse Platform SWT component developers list."

To
"'Eclipse Platform SWT component developers list.'"
<platform-swt-dev@xxxxxxxxxxx> 
cc

Subject
RE: [platform-swt-dev] Strange side effect        ofButton.setImage(Image  
     img) method







Hi Steve,

i already tried that. If I run out of a jar file it works but if I compile
to a native executable wrapper (Launch4J) it doesn't. How do I generate a
manifest for a native executable? Renaming the manifest to match the
executable doesn't help. Any ideas?

Regards
Sebastian

________________________________________
From: platform-swt-dev-bounces@xxxxxxxxxxx
[mailto:platform-swt-dev-bounces@xxxxxxxxxxx] On Behalf Of Steve Northover
Sent: Monday, November 14, 2005 8:11 PM
To: Eclipse Platform SWT component developers list.
Subject: Re: [platform-swt-dev] Strange side effect ofButton.setImage(Image
img) method


Try running with the XP manifest.  See
http://www.eclipse.org/swt/faq.php#xpthemes 


Sebastian Machhausen <sebastian.machhausen@xxxxxxxxx> 
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx 
11/13/2005 12:56 PM 
Please respond to
"Eclipse Platform SWT component developers list."

To
<platform-swt-dev@xxxxxxxxxxx> 
cc

Subject
[platform-swt-dev] Strange side effect of Button.setImage(Image        img)
method







Using the new setImage(Image img) method of the
org.eclipse.swt.widgets.Button class in 3.2M3 causes a strange side effect.
If I use it inside the eclipse ide everything works. Button text and image
are shown at the same time as it should be. But if I deploy my application,
i.e. compile it to a native executable on Win32, the button texts disappear
and only the images are displayed. If I omit the setImage(Image img) calls
the texts are displayed. Any suggestions how to solve this issue? I use the
setImage(Image img) method inside the createButtonsForButtonBar(Composite
parent) method of org.eclipse.jface.dialogs.TitleAreaDialog but that
shouldn't matter I think.

Regards
Sebastian Machhausen

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top