• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NX:Question about seperate GUI and Client

 
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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(){
...
clientGUI.addActionListener(this);
}
public void actionPerformed(ActionEvent ae){
//react
}
am I right?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic