Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Bastet Massri   on Sep 09 In Java Category.

  
Question Answered By: Jonathan Harrison   on Sep 09

private class thePane extends JPanel<br> {<br>
public void thePane()<br> {<br> }<br> public void
paintComponent(Graphics g)<br> {<br>Image image  =
Toolkit.getDefaultToolkit().getImage("/dir/imagename.jpg-or-gif");<br>g.drawImag\
e(image,0,0,Iwidth,Iheight,this);

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Inserting An Image Or get search suggestion and latest updates.


Tagged: