Example usage for Java java.awt Panel fields, constructors, methods, implement or subclass
The text is from its open source code.
Panel(LayoutManager layout) Creates a new panel with the specified layout manager. | |
Panel() Creates a new panel using the default layout manager. |
Component | add(Component comp) Appends the specified component to the end of this container. |
Component | add(String name, Component comp) Adds the specified component to this container. |
Component[] | getComponents() Gets all the components in this container. |
void | setBackground(Color c) Sets the background color of this component. |
void | setFont(Font f) Sets the font of this container. |
void | setLayout(LayoutManager mgr) Sets the layout manager for this container. |
void | setSize(int width, int height) Resizes this component so that it has width width and height height . |
void | setVisible(boolean b) Shows or hides this component depending on the value of parameter b . |
void | validate() Validates this container and all of its subcomponents. |