I am developing 1 swing image manupalation application, its 1st screen has 4 buttons in "Center" of borderlayout, on respective click on them, i have to change respective JPanle in each regions (North,South,..). I also have to take care of event which are inter dependant on components in other panels. Which Design patter should i use and how ? Plese Help !
posted 13 years ago
hi, as Design Pattern, I would suggest you take a look at State and State Machine. See the online book "Thinking in Patterns" by Bruce Eckel (www.mindview.net). For changing components dynamically, I found CardLayout the best (better than messing around with calls to repaint() etc.). chantal