class Canvas extends JPanel implements Runnable{ public sport com=null; public String com_number = "COM6"; //私のPCではCOM6 public int baut_rate = 115200; //ZigBee使用のため //public InetAddress target_ip=null; public Image img=null; public int image_count=0, jpeg_size=0; public byte[] jpeg_data =new byte[0xFFFF]; //画像データ用配列Max64kbyte private volatile Thread th=null; private int status=-1; private int i=0, j=0, k=0, loop=0, data_size=0, get_size_flag=0; private String str=null; private byte[] data =new byte[1024]; //受信データ用配列 // public File f = new File("C:\\Documents and Settings\\i06326\\C328\\image.jpg"); public BufferedImage bimg = new BufferedImage(320, 240, BufferedImage.TYPE_INT_RGB);
public class sport{ public SerialPort port = null; protected CommPortIdentifier comID = null; public DataInputStream dis = null; protected DataOutputStream dos = null; protected String message = "(´・ω・`)";