I am trying to use command pattern to seperate application logic from gui. I have implemented seperate classes for booking and search as explained in
http://www.javaworld.com/javaworld/javatips/jw-javatip68.html. my actionPerformed event looks like this.
public void actionPerformed(ActionEvent e) {
SearchCommand search=new SearchCommand(Dataclient d,String searchCriteria,MyTableModel model);
search.performSearch();
}
I am passing MyTableModel also because to update the JTable after every search. Is there a way to avoid passing MyTableModel and make the the SearchCommand Class independent? How do guys handle this situation
-joey
}