Java java.awt Panel fields, constructors, methods, implement or subclass

Example usage for Java java.awt Panel fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt Panel.

The text is from its open source code.

Subclass

java.awt.Panel has subclasses.
Click this link to see all its subclasses.

Constructor

Panel(LayoutManager layout)
Creates a new panel with the specified layout manager.
Panel()
Creates a new panel using the default layout manager.

Method

Componentadd(Component comp)
Appends the specified component to the end of this container.
Componentadd(String name, Component comp)
Adds the specified component to this container.
Component[]getComponents()
Gets all the components in this container.
voidsetBackground(Color c)
Sets the background color of this component.
voidsetFont(Font f)
Sets the font of this container.
voidsetLayout(LayoutManager mgr)
Sets the layout manager for this container.
voidsetSize(int width, int height)
Resizes this component so that it has width width and height height .
voidsetVisible(boolean b)
Shows or hides this component depending on the value of parameter b .
voidvalidate()
Validates this container and all of its subcomponents.