java实现太极八卦的绘制计算机等级考试
文章作者 100test 发表时间 2010:01:01 12:30:56
来源 100Test.Com百考试题网
package paint.
import javax.swing.JFrame.
public class Graph2DG extends JFrame{
public Graph2DG(){
G2DPanel jp=new G2DPanel().
getContentPane().add(jp).
setSize(200,200).
setVisible(true).
}
public static void main(String[] args) {
new Graph2DG().
}
}
package paint.
import java.awt.Color.
import java.awt.Graphics.
import java.awt.Graphics2D.
import java.awt.geom.Arc2D.
import java.awt.geom.Rectangle2D.
import java.awt.geom.RoundRectangle2D.
import javax.swing.JPanel.
public class G2DPanel extends JPanel{
public void paintComponent(Graphics g){
super.paintComponent(g).