小骗子 发表于 2013-12-19 18:48 用KeyCode控制就行了; JButton button=new JButton("按纽"); button.addKeyListener(new KeyAdapter()