import java.util.*;
import java.io.*;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.*;
public class Operation {
public static void main(String args[]){
DrawPanel panel = new DrawPanel();
JFrame frame = new JFrame("Voronoi Diagram");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOS E);
frame.add(panel);
frame.setSize(800, 600);
frame.setLocation(220, 150);
frame.setVisible(true);
}
}
public class DrawPanel extends JPanel{
private static final long serialVersionUID = 1L;
public void PaintComponent(Graphics g){
super.paintComponent(g);
g.setColor(Color.orange);
g.drawLine(5, 10, 50, 60);
}
}
Copyright © 2011 - All Rights Reserved - Softron.in
Template by Softron Technology