posted 11 years ago
I think you could do something like this. Create Square class with the following setBounds method:
Then create dynamic border. For example size of this border will be 10% of component size.
And then install this border to the square.