JavaTM 2 Platform
Std. Ed. v1.3

java.awt
クラス Panel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
すべての実装インタフェース:
Accessible, ImageObserver, MenuContainer, Serializable
直系の既知のサブクラス:
Applet

public class Panel
extends Container
implements Accessible

Panel はもっともシンプルなコンテナクラスです。パネルは、ほかのパネルなどのさまざまなコンポーネントを貼り付けるためのスペースをアプリケーションに提供します。

パネルのデフォルトのレイアウトマネージャは FlowLayout レイアウトマネージャです。

導入されたバージョン:
JDK1.0
関連項目:
FlowLayout, 直列化された形式

内部クラスの概要
protected  class Panel.AccessibleAWTPanel
          このクラスは Panel クラス用のユーザ補助機能のサポートを実装しています。
 
クラス java.awt.Container から継承した内部クラス
Container.AccessibleAWTContainer
 
クラス java.awt.Component から継承した内部クラス
Component.AccessibleAWTComponent
 
クラス java.awt.Component から継承したフィールド
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
インタフェース java.awt.image.ImageObserver から継承したフィールド
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
コンストラクタの概要
Panel()
          デフォルトのレイアウトマネージャを使って新しいパネルを作成します。
Panel(LayoutManager layout)
          指定されたレイアウトマネージャを持つ新しいパネルを作成します。
 
メソッドの概要
 void addNotify()
          パネルのピアを作成します。
 AccessibleContext getAccessibleContext()
          この Panel に関連した AccessibleContext を返します。
 
クラス java.awt.Container から継承したメソッド
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate, validateTree
 
クラス java.awt.Component から継承したメソッド
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Panel

public Panel()
デフォルトのレイアウトマネージャを使って新しいパネルを作成します。すべてのパネルのデフォルトのレイアウトマネージャは FlowLayout クラスです。

Panel

public Panel(LayoutManager layout)
指定されたレイアウトマネージャを持つ新しいパネルを作成します。
パラメータ:
layout - このパネルのレイアウトマネージャ
導入されたバージョン:
JDK1.1
メソッドの詳細

addNotify

public void addNotify()
パネルのピアを作成します。ピアを使用すると、機能性を変えずに、パネルの外観を変更することができます。
オーバーライド:
クラス Container 内の addNotify
クラス java.awt.Container からコピーされたタグ:
関連項目:
Component.isDisplayable(), Container.removeNotify()

getAccessibleContext

public AccessibleContext getAccessibleContext()
この Panel に関連した AccessibleContext を返します。パネルの場合、AccessibleContext は AccessibleAWTPanel の形式を取ります。必要に応じて新しい AccessibleAWTPanel インスタンスを作成します。
定義:
インタフェース Accessible 内の getAccessibleContext
オーバーライド:
クラス Component 内の getAccessibleContext
戻り値:
この Panel の AccessibleContext として機能する AccessibleAWTPanel

JavaTM 2 Platform
Std. Ed. v1.3

バグや機能要求の報告
さらに詳しい API リファレンスおよび開発者ドキュメントについては、 Java 2 SDK SE Developer Documentation を参照してください。このドキュメントには、概念、用語の定義、回避策、 実用的なコード例など、開発者を対象にした詳細な解説が掲載されています。

Java、Java 2D、JDBC は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.