//此文件用了JFrame、JPanel、Graphics2D实现了坐标系绘制
参考
https://blog.csdn.net/x541211190/article/details/77414861
package cn;
import javax.swing.*;
import java.awt.*;
//此文件用了JFrame、JPanel、Graphics2D实现了坐标系绘制
public class test8888 extends JPanel
{
Polygon po = new Polygon();
Font fn = new Font("宋体", Font.BOLD, 22);
Font fn2 = new Font("宋体", Font.BOLD, 20);
int x = 100;
int y = 100;
int[] pox ={
90, 100, 100 };
int[] poy ={
110, 90, 100 };
int[] poxx ={
100, 100, 110 };
int[] poyy