这是我想要做的,其中一个类是包含所有 JButtons 的 JFrame,我想要另一个类来监听对 JFrame 类所做的操作。请看下面的代码:
public class Frame extends JFrame{
//all the jcomponents in here
}
public class listener implements ActionListener{
//listen to the actions made by the Frame class
}
谢谢你的时间。