public class myjava extends JFrame{
        public class MyMouseListener extends MouseAdapter {            // 定义一些基本属性            private Graphics g;
            private int x1, y1, x2, y2,x3,y3,x4,y4,i=1;
            private toolPanel tp ;
            private colorpanel cp;
            private Color color = Color.BLACK;
            static int array[]=new int[10000];
            static int array1[]=new int[10000];
            static int array2[]=new int[10000];
            public static boolean flag;
            /**
             * 构造方法
             */
            public MyMouseListener(toolPanel tp ,colorpanel cp,JPanel panel){                this.tp = tp;
                this.cp = cp;
                this.g = panel.getGraphics();
            }            public void mousePressed(MouseEvent e) {
                // 获得x1,y1的坐标
                x1 = e.getX();
                y1 = e.getY();
                //判断当前点击的是否是左键
                if(e.getButton() == 1){
                    color = cp.fcolor;
                }else if(e.getButton() == 3){
                    color = cp.bcolor;
                }
编译就一直是这个鬼样子 关键是三个静态数组后面还必须要用
怎么弄啊@#$%^&*&^%$#$%^&*()(*&^%^&*(