http://cookxml.sf.net/cookswing/

Tag <panel>

All Ancestor Tags

<listeners> , <component>

Class

JPanel

JPanel is a generic lightweight container. For examples and task-oriented documentation for JPanel, see How to Use Panels, a section in The Java Tutorial.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see {@link java.beans.XMLEncoder}.


Attribute Summary
Attribute Type Description
actionmap ActionMap Sets the ActionMap to am.
alignmentx <float> Sets the the vertical alignment.
alignmenty <float> Sets the the horizontal alignment.
autoscrolls <boolean> Sets the autoscrolls property.
background <color> Sets the background color of this component.
border Border Sets the border of this component.
bounds <rectangle> Moves and resizes this component to conform to the new bounding rectangle r.
componentorientation ComponentOrientation Sets the language-sensitive orientation that is to be used to order the elements or text within this component.
cursor <cursor> Sets the cursor image to the specified cursor.
debuggraphicsoptions <int> Enables or disables diagnostic information about every graphics operation performed within the component or one of its children.
defaultlocale <locale> Sets the default locale used to initialize each JComponent's locale property upon creation.
doublebuffered <boolean> Sets whether the this component should use a buffer to paint.
droptarget DropTarget Associate a DropTarget with this component.
enabled <boolean> Sets whether or not this component is enabled.
focusable <boolean> Sets the focusable state of this Component to the specified value.
focuscycleroot <boolean> Sets whether this Container is the root of a focus traversal cycle.
focustraversalkeysenabled <boolean> Sets whether focus traversal keys are enabled for this Component.
focustraversalpolicy FocusTraversalPolicy Sets the focus traversal policy that will manage keyboard traversal of this Container's children, if this Container is a focus cycle root.
font <font> Sets the font for this component.
foreground <color> Sets the foreground color of this component.
ignorerepaint <boolean> Sets whether or not paint messages received from the operating system should be ignored.
inputverifier InputVerifier Sets the input verifier for this component.
layout LayoutManager Sets the layout manager for this container.
locale <locale> Sets the locale of this component.
location <point> Moves this component to a new location.
maximumsize <dimension> Sets the maximum size of this component to a constant value.
minimumsize <dimension> Sets the minimum size of this component to a constant value.
name <text> Sets the name of the component to the specified string.
nextfocusablecomponent Component Overrides the default FocusTraversalPolicy for this JComponent's focus traversal cycle by unconditionally setting the specified Component as the next Component in the cycle, and this JComponent as the specified Component's previous Component in the cycle.
opaque <boolean> If true the component paints every pixel within its bounds.
preferredsize <dimension> Sets the preferred size of this component.
requestfocusenabled <boolean> Provides a hint as to whether or not this JComponent should get focus.
size <dimension> Resizes this component so that it has width d.width and height d.height.
tooltiptext <text> Registers the text to display in a tool tip.
transferhandler TransferHandler Sets the transferHandler property, which is null if the component does not support data transfer operations.
ui PanelUI Sets the look and feel (L&F) object that renders this component.
verifyinputwhenfocustarget <boolean> Sets the value to indicate whether input verifier for the current focus owner will be called before this component requests focus.
visible <boolean> Makes the component visible or invisible.