Ekrana Çubuk Çizen Uygulama
Harita metot defteri şeklinde çizim yapan uygulama
import java.applet.Applet;
import java.awt.Graphics;
import javax.swing.JOptionPane;
public class Dort extends Applet {
public void init() {
// TODO start asynchronous download of heavy resources
}
public void start() {
}
public void paint(Graphics LCDEkranimiz) {
for (int x = 0; x < 200; x = x + 20) {
LCDEkranimiz.drawLine(x, 0, x, 250);
}
for (int y = 0; y < 200; y = y + 20) {
LCDEkranimiz.drawLine(0, y, 250, y);
}
}
// TODO overwrite start(), stop() and destroy() methods
}
import java.awt.Graphics;
import javax.swing.JOptionPane;
public class Dort extends Applet {
public void init() {
// TODO start asynchronous download of heavy resources
}
public void start() {
}
public void paint(Graphics LCDEkranimiz) {
for (int x = 0; x < 200; x = x + 20) {
LCDEkranimiz.drawLine(x, 0, x, 250);
}
for (int y = 0; y < 200; y = y + 20) {
LCDEkranimiz.drawLine(0, y, 250, y);
}
}
// TODO overwrite start(), stop() and destroy() methods
}
Yorumunuzu Ekleyin