public void paint(Graphics g){
	  //ここに描画処理を書きます。
		Color bgcol = new Color(220,220,220);
		setBackground(bgcol);

		g.setColor(Color.BLACK);
		g.drawLine(0, (int)dmax.get(1,0) - 100, (int)dmax.get(0, 0), (int)dmax.get(1, 0) - 100);	//
		g.drawLine(100 , 0, 100, (int)dmax.get(1, 0));	//y軸

		int zeropointx = 100;
		int zeropointy = (int) dmax.get(1, 0) - 100;

		for(int i = 0; i < drawpo.length; i++){
			for(int j = 0; j < drawpo[i].samplenum(); j++){
				double xy[] = new double[drawpo[i].dimension()];

				for(int k = 0; k < drawpo[i].dimension(); k++){
					xy[k] = drawpo[i].returnPoint(j).get(k,0);
				}

				if(classmethod == 0){
					g.setColor(setclr(drawpo[i].returnkclass(j)));
				}
				else{
					g.setColor(setclr(drawpo[i].returnnnclass(j)));
				}

				g.fillRect(zeropointx + (int) xy[0], zeropointy - (int) xy[1], 3, 3);
			}
		}
	 }