这样调用怎么不行啊?
下面有个地方调用怎么不行啊70行的 p.paintLine(ul);
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
public class ScribbleDemo extends JFrame implements ActionListener{
JMenuBar menubar=new JMenuBar();
JMenu [] menus= new JMenu[]
{
new JMenu( "文件 "),
new JMenu( "编辑 "),
new JMenu( "查找 "),
new JMenu( "帮助 ")
};
JMenuItem menuitems [][] =new JMenuItem[][]
{
{
new JMenuItem( "打开 "),
new JMenuItem( "保存 "),
new JMenuItem( "退出 ")
},
{
new JMenuItem( "全选 "),
new JMenuItem( "剪切 "),
new JMenuItem( "粘贴 "),
new JMenuItem( "复制 ")
},
{
new JMenuItem( "查找 "),
new JMenuItem( "替换 ")
},
{
new JMenuItem( "About ")
}
};
private FileDialog fd;
private LinkedList[] m=new LinkedList[20];
public ScribblePanel p =new ScribblePanel();
public ScribbleDemo() {
// Create a PaintPanel and add it to the content pane
getContentPane().add(p, BorderLayout.CENTER);
for(int i=0;i <menus.length;i++)
{
menubar.add(menus[i]);
for(int j=0;j <menuitems[i].length;j++)
{