Mornng
I am currently learning Swing and am wondering what is the best way to approach designing a windowed application. The book I am following doesn't seem to use a single design structure so I would appreciate any guideance from the experts.
Currently I am using the following design method - the names of the classes below are arbitary and for example only:
main
FrameClass
PanelClass
I am unsure if the above would be suitable for an application with multiple windows as it only uses a single frame. Would it be more appropriate to encapsulate a window/frame into a single class as:
FrameClass
Which approach is better, if any, or what other approaches should be used for best OO design?
I am currently learning Swing and am wondering what is the best way to approach designing a windowed application. The book I am following doesn't seem to use a single design structure so I would appreciate any guideance from the experts.
Currently I am using the following design method - the names of the classes below are arbitary and for example only:
main
FrameClass
PanelClass
I am unsure if the above would be suitable for an application with multiple windows as it only uses a single frame. Would it be more appropriate to encapsulate a window/frame into a single class as:
FrameClass
Which approach is better, if any, or what other approaches should be used for best OO design?