View Single Post
  #2 (permalink)  
Old 08-07-2007, 08:13 AM
lenny lenny is offline
Member
 
Join Date: Jul 2007
Posts: 40
lenny is on a distinguished road
.bmp bitmaps should not be used in Java. JPEG and GIF are the standards. You could simply draw the image in the paint method of your applet or another component.

Code:
public void paint(Graphics g) { super.paint(g); Image im = getImage(getDocumentBase(), "myfile.gif"); g.drawImage(im, 0, 0, getSize().width, getSize().height, this); }
Reply With Quote