I'm doing a desktop application in java, I currently have a template
I have a table of documents and users in a Bd, a user has many documents, what I want to do with the Bd data, replace the data that is in the template with Bd data, and for that I must " multiply "the" letters "that I have in the template.
[! [What I was thinking of doing, but running the application does not generate more objects] [2]] [2]
I was thinking when I started the application to create a for that runs through all the components. Then ask if it is Jpanel and extract its elements, and all that roll, but when running the application, it does not create more objects.
for (Component panel : this.jPanelAll_documentos.getComponents()) {
if (panel instanceof JPanel) {
JPanel instancia_panel = new JPanel(((JPanel) panel).getLayout());
....
}
}