Talk:ZK/How-Tos/Issues

I am trying to display an image from a thread i used setSrc but it is not working then i tried setContent (after creating AImage tpe) it give an exception what shouldi do?

Here is the code that ised to create GUI from the thread

public void run {	 for (int i=0; i< imgsrc.length;i++) {		 System.out.println("from the run method of test run"); System.err.println(new File(".").getAbsolutePath); _vbox=new Vbox; Window w=new Window; Label label=new Label(labelValues[i]); label.setStyle(styles[0]); w.appendChild(label); //com.potix.image.Image imag=new com.potix.image.Image; //	System.out.println("imgsrc[i] "+imgsrc[i]); com.potix.image.AImage img=null; //com.potix.image.Image img=OutImage_perf_run.png; try {     			 img=new com.potix.image.AImage(imgsrc[i]); }     		catch(Exception e){} //	com.potix.zul.html.Image deleteImage=new com.potix.zul.html.Image(imgsrc[i]); com.potix.zul.html.Image deleteImage=new com.potix.zul.html.Image; deleteImage.setContent(img); //System.out.println("imgsrc[i] "+imgsrc[i]); //deleteImage.setSrc(imgsrc[i]); w.appendChild(deleteImage); Button button =new Button("Details"); button.addEventListener("onClick", new ButtonListener(pageSrc[i],_desktop )); w.appendChild(button); _vbox.appendChild(w); //myhbox.appendChild(vbox); }		//_label = new Label("Execute "+ ++_cnt); synchronized (_mutex) { //to avoid racing Executions.notify(_desktop, _mutex); }

}