Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Image not visible on label
Image not visible on label [message #210624] Thu, 02 March 2006 13:05 Go to next message
Eclipse UserFriend
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
Re: Image not visible on label [message #210812 is a reply to message #210624] Mon, 06 March 2006 11:12 Go to previous message
Eclipse UserFriend
Originally posted by: geetesh.jain.zensar.com

its working....now

Thanks
Geetesh jain
Previous Topic:how to delete element in a MultiPageEditorPart
Next Topic:problem in using the retargatable action
Goto Forum:
  


Current Time: Fri Dec 09 06:16:17 GMT 2022

Powered by FUDForum. Page generated in 0.02669 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top