学习笔记 import java.awt.Frame; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; public class Demo2 { public static void