インスタンス・イニシャライザを使え

JPanel = new JPanel() {
  BufferedImage img = null;
  {
    try {
      img = ImageIO.read(new File("...."));
    } catch(IOException e) {}
  }

  void testA() {}
  void testB() {}
};