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.
精彩评论