package picture;
import meganetpo.MainFrame;
import meganetpo.picturehandler.PictureHandler;
/**
*
* @author Burtovoy Semen
*/
public class MainFormThread implements Runnable {
MainFrame main = null;
PictureHandler pictureHandler;
private String error;
public void run() {
main = new MainFrame();
main.setVisible(true);
main.setPicH(pictureHandler);
main.setError(error);
}
public PictureHandler getPictureHandler() {
return pictureHandler;
}
public void setPictureHandler(PictureHandler pictureHandler) {
this.pictureHandler = pictureHandler;
}
public void setErrorString(String error) {
if(main!=null)
main.setError(error);
this.error = error;
}
}