can't load iimage

yaron248

New member
can't load iimage

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"));
 

arielRuuubi

New member
ובכן

בלי לדעת JAVA זה
Argument cannot be null
אומר שפונ שצריכה לקבל 2 משתנים קיבלה אחד או שמה שהתגלגל אליה הוא NULL

תבדוק את פרטי הפונ getImage
 
למעלה