Is it possible in java when using the add command to create a copy of the object your adding?
I got this object:
JLabel seperator = new JLabel (EMPTY_LABEL_TEXT);
That I add:
add (seperator,WEST);
if I want to add several objects of this type, I reckon I gotta make copies of them, is there a way of doing that in the add() method, and if not - what is the simplest way of creating copies of objects? I only need 3 of them, so I don´t want any loops