Skip to main content



      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 09:08
Eclipse UserFriend
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 09:08] by Moderator

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


Current Time: Sun Jul 06 15:54:29 EDT 2025

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

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

Back to the top