Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NX:Question about seperate GUI and Client  RSS feed

Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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(){
public void actionPerformed(ActionEvent ae){
am I right?
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!