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
Member
hi!!

I use this sentence to create an imagedata object:

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


But:

org.eclipse.swt.SWTException: i/o error (java.io.FileNotFoundException: \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 Apr 25 13:21:11 GMT 2024

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

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

Back to the top