I am trying to create a button with an image. The API can be found here.
Here is my code:
Button settings = new Button(swpContainer, SWT.PUSH);
settings.setText("Settings");
settings.setImage(new Image(null, "/myProject/icons/settings.png"));
And here is the exception I am getting..
org.eclipse.swt.SWTException: i/o error (java.io.FileNotFoundException: \myProject\icons\settings.png (The system cannot find the path specified))
I am right clicking the image in eclipse and getting the path from the properties. Any help will be greatly appreciated!