MVC pattern with many ActionListeners

后端 未结 1 1433
抹茶落季
抹茶落季 2021-01-21 01:03

I am writing program with GUI using MVC design pattern. I have a question concerning using ActionListeners.

According to the MVC pattern, all of the ActionListeners shou

1条回答
  •  北海茫月
    2021-01-21 01:28

    Might not be perfect MVC, but you can still have inner class ActionListeners that just make calls to the controller that actually carries out the work.

    So the // some ActionEvent handler is still completed in the Controller.

    0 讨论(0)
提交回复
热议问题