Design patterns to reduce coupling in Swing application

后端 未结 7 1803
刺人心
刺人心 2021-02-09 12:20

Hey all, I\'m currently working on a Java Swing application and I was looking for some guidence. The application is fairly small, but I\'m noticing that as the code base is grow

7条回答
  •  独厮守ぢ
    2021-02-09 13:19

    If you want to communicate with other GUI components in the hierarchy then you should consider something like singleton that mediates calls between branches. See :

    http://blue-walrus.com/2013/06/mediator-pattern-in-swing/

提交回复
热议问题