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:

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) {
Rectangle r = getBounds();
//Label lab= new Label("Activity");
Label lab = new
Label("Activity",getClass().getResourceAsStream("icons/Activity.gif "));

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

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
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