Package picture

Source Code of picture.MainFormThread

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;
    }
}
TOP

Related Classes of picture.MainFormThread

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.