Design patterns to reduce coupling in Swing application

后端 未结 7 1823
刺人心
刺人心 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:06

    The best way to reduce coupling in a GUI, I think, is to use an Event Bus. There are several existing implementations out there, including some supporting Swing specifically.

    Just google for swing event bus and you'll find.

    If you use Guice in your GUI, you may also want to take a look at guts-events.

提交回复
热议问题