Originally posted by damodar kumar:
how can i add same label repetedly for the frame
You
cannot add the same label repeatedly.
You can take the following approach.
Subclass JLabel to create your own CustomLabel.
Set all the background,foreground,opaque properties in the CustomLabel so that they are the attributes for all
instances of CustomLabel.
Then on the UI, you create as many instances of CustomLabel and add them to the UI.