>  2010/03/17 (水) 20:39:28        [qwerty]
> Java詳しい人いる?(;´Д`)
> メインのクラスと別のところでバッファに画像をまとめて読み込んで
> バッファで返したいけどうまくいかないんだ
> どうしたらいいだろう
> 	public static BufferedImage[] BufImg(File[] imgFiles){
> 		Graphics g = null;
> 		Graphics2D g2 = (Graphics2D)g;	//	←ここでエラー(;´Д`)
> 		//	変数の初期化
> 		BufferedImage[] readImage;	// イメージバッファ
> 	    readImage = new BufferedImage[100];
> 	    readImage = null;
> 	    for(int count = 0 ; count <= 100 ; count ++){	//	イメージファイルのあるだけをバッファへ展開
> 	    	if(imgFiles[count] == null){
> 	    		break;
> 	    	}
> 	    	try {
> 				readImage[count] = ImageIO.read(imgFiles[count]);
> 			} catch (IOException e) {	//	キャスト失敗
> 				e.printStackTrace();
> 			}
> 	    }
> 		return readImage;
> 	}

エラーの内容調べたらええやんヽ(´ー`)ノすてきやん

参考:2010/03/17(水)20時34分58秒