posted 5 years ago
Read the API. The add(String, Component) method (inherited from Container) is documented as
This method is obsolete as of 1.1. Please use the method add(Component, Object) instead.