Java Swing application design in a way to create multiple instances of application by creating all objects only once

We have a one Java Swing app. Now there is one requirement that it should be created in multiple desktops in one machine/computer. So its like creating different instances of main Java Swing app into different desktops/monitors with same CPU/machine just like in linux we can have different desktop in one OS at the same time.

Design constraints:

We need to create only one app instance and we need to utilize/store all objects of this app and use them to create different instance of main app

its looks we need to create a pool of objects of main swing app and use them to create others but is it correct way? Is there any other efficient way to achieve it?

This is kind of design question for creating new Java swing app for different desktops.


You can use Builder pattern here , I think.Based on the requirement it will render different desktop UI components (set of features), if the features are not dynamic in nature.

Need Your Help

json_decode and float values

php json floating-point

A friend asked me a simple code to grab values from a website, no problem.

Keyword not supported: 'data source' in Entity Framework 6

c# sql-server entity-framework connection-string

I've been poking my brain around for a few days trying to figure this out.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.