can't load image from my src folder.
i get this error
SWTResourceManager.getImage: Error getting image science-fiction.jpg, java.lang.IllegalArgumentException: Argument cannot be null
private void initGUI() {
try {
FormLayout thisLayout = new FormLayout();
this.setLayout(thisLayout);
this.setSize(423, 266);
this.setBackgroundImage(SWTResourceManager.getImage("science-fiction.jpg"));
{
button4 = new Button(this, SWT.PUSH | SWT.CENTER);
FormData button4LData = new FormData();
button4LData.left = new FormAttachment(0, 1000, 351);
button4LData.top = new FormAttachment(0, 1000, 230);
button4LData.width = 60;
button4LData.height = 24;
button4.setLayoutData(button4LData);
button4.setText("About");
} |