posted 20 years ago
In order to seperate Client and Client GUI, I wrote a class ClientGUI for the GUI use, and a class Client which has a ClientGUI member, but my remote reference is in Client, so how can I monite the action that the GUI made and refresh the data? I think i should let Client implements ActionListener, and regist it to ClientGUI something like this:
private DBAccess dbAccess; //the remote reference
public Client(){
...
clientGUI.addActionListener(this);
}
public void actionPerformed(ActionEvent ae){
//react
}
am I right?
[url]Olnex.net[/url]
[SCJP 1.2, SCJD, SCWCD]