[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Image not visible on label
|
- From: geetesh.jain@xxxxxxxxxx (Geetesh Jain)
- Date: Thu, 2 Mar 2006 13:05:24 +0000 (UTC)
- Newsgroups: eclipse.tools.gef
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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