Java How to draw Images


SUBMITTED BY: Guest

DATE: Dec. 6, 2013, 10:12 p.m.

FORMAT: Java

SIZE: 214 Bytes

HITS: 824

  1. // How to draw Images in Java
  2. public void paintComponent(Graphics g){
  3. //Image
  4. g.drawImage(ImageName,xCoord,yCoord,this);
  5. //String
  6. g.drawString("Put your Text here",xCoord,yCoord,this);
  7. }

comments powered by Disqus