开发者

Passing Objects between different Windows in a java based tool application

开发者 https://www.devze.com 2023-01-17 08:57 出处:网络
I am designing a tool application that requires different windows passing objects not just messages at run time. I am also new to design patterns. However, since this application is not designed for n

I am designing a tool application that requires different windows passing objects not just messages at run time. I am also new to design patterns. However, since this application is not designed for network problems I was wondering if there are/is any design patterns such 开发者_开发问答as router pattern for making this communications.

Regards,


Have a look at MVC and Observer design pattern. Both this patterns can help with the communication between the windows. They use a event notification mechanism to send messages(or objects) to all the listeners that are registered with the observable object.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号