私はゲームを作成していて、いくつかの画像を ide/images フォルダーに配置しましたが、プログラムで null ポインター例外エラーが発生しました。imageicon をロードするための私のコードは次のようになります
ImageIcon ac=new ImageIcon(getClass().getResource("images/actor.jpg"));
ImageIcon ac1=new ImageIcon(getClass().getResource("images/actor_shoot.jpg"));
//some codes
Image n=ac.getImage();
//some codes
試してみましたが見つかりませんでした。ご提案はありますか?ありがとうございます。