开发者

Passing Objects between different Windows in a java based tool application

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜