Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Problem with ImageData and Relative Path
Problem with ImageData and Relative Path [message #688331] Fri, 24 June 2011 13:08
JeTBLaCK  is currently offline JeTBLaCK Friend
Messages: 41
Registered: March 2011

I use this sentence to create an imagedata object:

new ImageData(getClass().getResource("images/process_default.png").getFile()));


org.eclipse.swt.SWTException: i/o error ( \prototipo02\figures\images\process_default.png

The image exists in /prototipo02/figures/images/process_default.png. Why not work???

[Updated on: Fri, 24 June 2011 13:08]

Report message to a moderator

Previous Topic:Layout of Text
Next Topic:Adding Scrollbars to a Window
Goto Forum:

Current Time: Thu Dec 03 01:54:07 GMT 2020

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

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

Back to the top