Is there any way to add Text and Image in SWT label in a single line. Once I add image, text goes off.
相关问题
- SWT table: how to set/get “focused” row
- [eclipse pde]How to catch the event that a launch
- Unable to load image from Jar
- “Failed to parse the output of 'adb version
- Eclipse Blackberry Preprocessor Not Working?
相关文章
- Eclipse plugin to find out unused methods in a cla
- How best to use ViewerFilter on a TreeViewer?
- Writing a comment in Eclipse linking a specific li
- Eclipse + Turn an Existing Project into a JPA Proj
- Installing plugins for Eclipse offline [duplicate]
- UnsatisfiedLinkError While Calling Native Method f
- Eclipse Plugin Development: How to access code wri
- Deploying an SWT application on Java Webstart
No you can't have an image and text simultaneously in a
Label
(unless you custom draw it). Else useorg.eclipse.swt.custom.CLabel
:Code:
Output:
Yes, using an intermediary composite with the right layout
Button click to open FileDialog Box and selected any image to display with text on specific label.
A Label which supports aligned text and/or an image and different border styles.
I hope this answer is usefull.
please visit this page: How to load image to view in RCP?