Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.applet.*;
- import java.awt.*;
- public class DrawLineExample extends Applet
- {
- public void paint (Graphics g)
- {
- int x1 = 10;
- int y1 = 20;
- int x2 = 50;
- int y2 = 60;
- g.drawLine(x1, y1, x2, y2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment