Image not visible on label [message #210624] |
Thu, 02 March 2006 13:05 |
Eclipse User |
|
|
|
Originally posted by: geetesh.jain.zensar.com
hi my objective is t to display image along with the text in the label.
for that iam using the following code.
import org.eclipse.draw2d.Label;
protected void paintFigure(Graphics g) {
super.paintFigure(g);
Rectangle r = getBounds();
//Label lab= new Label("Activity");
Label lab = new
Label("Activity",getClass().getResourceAsStream("icons/Activity.gif "));
lab.setBounds(r);
}
When iam passing Text without any image the text is visible.
However issue is when iam passing image along with the label text ,
nothing is visible on the editor.
Plz guide me how to solve this issue
Thanks
Geetesh
|
|
|
|
Powered by
FUDForum. Page generated in 0.03622 seconds