• Post Reply Bookmark Topic Watch Topic
  • New Topic

AWT Image

 
Isaias C. Barroso
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
how to insert a Image on a panel?
I only can use AWT.
Thanks
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Isaias,
I don't have an answer for you -- sorry
But, in case you are unaware of them, you may find an answer at one (or more) of the following Web sites:
Java image FAQ
Real's Java How-To (AWT Section)
Java AWT Reference
Java Developers Almanac 1.4
Graphic Java� 1.2, Volume I: AWT, Third Edition
Good Luck,
Avi.
 
Dorothy Finkel-Laverty
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this:
private Image imageName;
imageName = createImage(50, 50);
imageName = Toolkit.getDefaultToolkit().getImage("imagename.gif");
I had to write a GUI game in AWT only as an exercise before taking my Cert exam - it worked for me.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!