Programlama | Programlama Dilleri | C Programlama Dili |C++

Hata
  • XML Parsing Error at 1:82. Error 9: Invalid character


?ekil Çizdirme 3

Java ile yaz?lm?? olan bu programda (applet) ?ekildeki gibi olan çizim kodlar yard?m?yla olu?turulmu?tur. Bu sayede benzer birçok karma??k ?ekli yapabiliriz. ?lerleyen örneklerde daha ba?ka ?ekiller ve daha zor ?ekillerin çizimi de yap?lacakt?r.

Java Programlama

  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package javaapplication4;
  6.  
  7. import java.awt.Graphics;
  8. import javax.swing.JApplet;
  9.  
  10. /**
  11.  *
  12.  * @author NEO
  13.  */
  14. public class NewJApplet extends JApplet {
  15.  
  16.     /**
  17.      * Initialization method that will be called after the applet is loaded into
  18.      * the browser.
  19.      */
  20.     public void init() {
  21.         // TODO start asynchronous download of heavy resources
  22.     }
  23.     // TODO overwrite start(), stop() and destroy() methods
  24. public void paint (Graphics g)
  25. {
  26. super.paint (g);
  27. for (int i=1; i<=10; i++)
  28. {
  29. g.drawLine(10,10,500,i*50);
  30. g.drawLine(500,500,50*i,10);
  31. }
  32. }
  33.  
  34.  
  35. }
  36.  

Yorumlar (0)
Sadece kayıtlı kullanıcılar yorum yazabilir!
Son Güncelleme ( Cuma, 11 Ocak 2013 00:10 )  
404 Not Found

404

Not Found

The resource requested could not be found on this server!


Proudly powered by LiteSpeed Web Server

Please be advised that LiteSpeed Technologies Inc. is not a web hosting company and, as such, has no control over content found on this site.