private void seticon() {
		Image icon;
		try {
			InputStream data = MainFrame.class.getResourceAsStream("icon.png");
			icon = javax.imageio.ImageIO.read(data);
			data.close();
		} catch (IOException e) {
			throw (new Error(e));
		}
		setIconImage(icon);
	}