import java.awt.Button; import java.awt.FlowLayout; import java.awt.Frame; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; public class Java鼠标事件 { public static void main(String[] args) { Frame f = new Frame("WindowEvent");…
import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class Java窗体事件 { public static void main(String[] args) { Frame f = new Frame("WindowEvent"); f.setSize(400,300); f.setLocation(300, 200); f.se…