关于java适配器的问题 package applet; import java.awt.event.*; import java.awt.*; public class AdapterDemo { Frame f; Panel panel; Point start,end; public static void main(String args[]){ new AdapterDemo();
} public AdapterDemo(){ f=new Frame("请单击,或者拖拽"); panel=new Panel(); f.add("Center",panel); panel.addMouseListener(new MouseAdapter(){ public void mousePressed(MouseEvent e){ start=e.getPoint(); System.out.println(start);