C
***C.Steamer***
Basically I need to know how to set up a basic gui framework. I have heard
of the MVC approach but either I don't fully understand it or it doesn't
work properly for my needs. I simpley want to know a common structure how
most Java Applications will be constructed. Mainly, Should I have Say a
JFrame class that calls a MainPanel which in turn sets up all the Panels for
the program, and then say a ControllerClass which sets up all the
components. What do I do with the data. Specifically I am currently making a
simpe java card game application and I do that. I have a buch of Panels that
represent say my hand, or the deck. Know say I want to remove a card from
the display (say someone selected it to play). Should my panel class handle
all this or should there be some other type of class to handle user inputs
like perhaps a controller class. Obviously there must be a somewhat simple
way to organize the gui with the controls of a program. Any help would be
appreciated. I used the game as an example but this should be common to any
application on how to set up a organized java app so it is somewhat
managable and upgradable.
Thanks
of the MVC approach but either I don't fully understand it or it doesn't
work properly for my needs. I simpley want to know a common structure how
most Java Applications will be constructed. Mainly, Should I have Say a
JFrame class that calls a MainPanel which in turn sets up all the Panels for
the program, and then say a ControllerClass which sets up all the
components. What do I do with the data. Specifically I am currently making a
simpe java card game application and I do that. I have a buch of Panels that
represent say my hand, or the deck. Know say I want to remove a card from
the display (say someone selected it to play). Should my panel class handle
all this or should there be some other type of class to handle user inputs
like perhaps a controller class. Obviously there must be a somewhat simple
way to organize the gui with the controls of a program. Any help would be
appreciated. I used the game as an example but this should be common to any
application on how to set up a organized java app so it is somewhat
managable and upgradable.
Thanks