Good friends and fellow developers, I am making an application in which components with certain characteristics must be created, which allows me to collect certain information to then process it, all this at runtime, in short, that part I am already working on the following shape:
JpnlPunto jpnlComp = new JpnlPunto(index);
JpnlContPuntos.add(jpnlComp);
JpnlContPuntos.validate();
JpnlContPuntos.updateUI();
jpnlComp.setLocation(0, jlblBlock.getY()-45);
JpnlContPuntos.repaint();
ubiComp.put(String.valueOf(jlblBlock.getY()-45), String.valueOf(i));
componentes.put(""+index, jpnlComp);
index++;
i++;
The components are created perfectly, NOW, my question is how to make these components remain once created, that is, once the application is closed and reopened they are visible where you create them!
Regards, I hope you can help me!
(sorry for my english, use google translator)
What I have tried:
I was investigating, and I found that by applying the serialization of the components these could be maintained but if someone could explain to me how to do it I would be grateful!