Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[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



Back to the top