Problem with picture using plugin [message #161284] |
Sat, 11 December 2004 00:09  |
Eclipse User |
|
|
|
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...
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04177 seconds