## page was renamed from イメージの表示 #acl All: == 画像を表示する == 画像を表示するには2つの処理が必要です。 * 画像を読み込む * 画像を表示する 画像を記憶するにはImageクラスを使います。 . {{attachment:image1.png}} ---- === 画像を読み込む === {{{#!java public class Sample11 extends JPanel { Image img; Sample11() { ImageIcon ii; ii = new ImageIcon( "sample.jpg" ); img = ii.getImage(); } } }}} ---- === 画像を表示する === {{{ g.drawImage(img, 10,10, this); }}}