0119デフォルトの名無しさん (テテンテンテン MM4f-S9vL)垢版 | 大砲2023/02/07(火) 20:18:51.62ID:+C6/44ZiM JPanel p = new JPanel() { BufferedImage img; try { img = ImageIO.read(new File("....")); } catch (IOException e) {} void testA() {} void testB() {} }; な感じのインナークラスの書き方で、どのようにimgをtry catch書いたらいいでしょうか?