Skip to main content



      Home
Home » Eclipse Projects » GEF » Problem with picture using plugin
Problem with picture using plugin [message #161276] Sat, 11 December 2004 00:09
Eclipse UserFriend
Originally posted by: pengfai81.mail.yahoo.com

hello, i'm beginner of java eclipse tools. Currentl i am using in this
tool.I have a problem of inserting pictures using this function as below:

InputStream in = getClass().getResourceAsStream("map.gif");
Label nodeLabel1 = new Label("Node4", new
Image(getViewSite().getShell().getDisplay(), in));
final NodeFigure nodeFigure1 = new NodeFigure(nodeLabel1);
panel.add(nodeFigure1, BorderLayout.CENTER);

This is the function that I found but seem like not working. Do you have
other suggestion in term to insert pictures? Thanks...
Previous Topic:Can a figure be resized automatically ?
Next Topic:Delete EditPart/Figure
Goto Forum:
  


Current Time: Wed Jul 16 17:42:08 EDT 2025

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

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

Back to the top