• Post Reply Bookmark Topic Watch Topic
  • New Topic

urgent ! swing design pattern

 
raj varma
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!