hi!
however i never used awt window, but swing JFrame, in which to insert image we actually first make a JLabel object which constructor takes an argument of ImageIcon which represents the particular path of image the method is
JLabel picture = new JLabel(new ImageIcon("c:/jdk1.3/bin/pic.gif"));
after picture object may be added to Container as Component.
|