Thank you!
I have the following code (this is one of menu options):
The difficulty for me is range of variables parent (and, in analogical way, width and height):
parent is not public in java.awt.Component; cannot be accessed from outside package
and using drawRect and drawString in the context of the code above.
Regards!