We have a Java Swing application that contains components such as JTable, JCombobox, JTextArea, and many other Swing components.
Now there is a requirement that says that we need to create multiple screens / copy of the same Java Swing applications. E.g. if my main Java Swing application is X, then I have to create the same applications A, B, C, D, ... as X.
So, there are some obvious design limitations that we should not create X applications many times. We need to create it only once and use them to create other applications A, B, C, D ....
The problem here is that these applications A, B, C ... may or may not be subsets of X. This means that A has fewer Swing components, then X.
There is one way to store class files and create an application from it, but what about Swing components, how to reuse them? Where can we store them?
This is a design issue. Any ideas ..
source
share