0
Make a class then extend it to the JLabel class. Give the class any properties you want. Now every time you call an instance of the class it will have all the features of the class.
solo learn doesn't support swing thus I couldn't prepare code for you