Class design for GUI program
My Swing GUI program will display different screens depending on the value of the prop attribute (variable).
Some data (e.g. address) are common (present) for all screens and some data are unique for each screen.
How to design the class?
Should the "State design pattern" used to represent value of the prop attribute as state?
Re: Class design for GUI program
By screen, do you mean JFrame? I recommend posting a simple example which demonstrates the design, otherwise advice may be out of context