Container container = new Container();
Button button = new Button("Click me"); container.add(button);
container.remove(button);The java.awt package library is a part of the Java Abstract Window Toolkit (AWT) and is used for creating graphical user interfaces (GUIs) in Java.