遇到这种问题,就是把他拆成多条来理解。 JButton button=(JButton)e.getSource(); // 将事件源转换为JButton. String text=button.getText(); // 获取button的text ...
確定! 回上一頁