Hi guys,
I'm trying to come up with the best design for the following requirements:
There would be many commands mapped with buttons or menu items. each one of these commands will launch a different GUI window with different functionality.
the UI windows will have many common components but there will be a JTable which need to be different for each command.
each common GUI component in each window X will do a different job. ex: there will be a common button B in all windows. in window X this button will execute a given task TX. but in window Y it will execute a different task TY.
So
command X -> window X (JTable with a Table model X +other UI common components)
command Y -> window Y (JTable with a Table model Y +other UI common components)
and so on...
this system must be extensible so that every time i add a new command, i'll only need to implement a new Window for this command.
what is the best design
patterns and architectural designs to implement such system?