• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class design for GUI program

 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic