|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectnet.hizlab.kagetaka.awt.LayoutUtils
AWT ユーティリティクラスです。
メソッドの概要 | |
static void |
addGridBag(Container container,
Component comp,
GridBagLayout gbl,
int x,
int y,
int width,
int height,
double weightx,
double weighty,
int fill,
int anchor,
Insets insets)
コンテナにコンポーネントを指定した引数で追加します。 |
static Frame |
getFrame(Component comp)
指定されたコンポーネントのフレームを返します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
public static void addGridBag(Container container, Component comp, GridBagLayout gbl, int x, int y, int width, int height, double weightx, double weighty, int fill, int anchor, Insets insets)
GridBagLayout
を利用する際の簡易メソッドです。
従って、引数は GridBagLayout
のもので、
事前にコンテナのレイアウトマネージャを GridBagLayout
に設定しておく必要があります。
container
- コンテナcomp
- 追加するコンポーネントgbl
- レイアウトマネージャx
- GridBagConstraints.gridx
y
- GridBagConstraints.gridy
width
- GridBagConstraints.gridwidth
height
- GridBagConstraints.gridheight
weightx
- GridBagConstraints.weightx
weighty
- GridBagConstraints.weighty
fill
- GridBagConstraints.fill
anchor
- GridBagConstraints.anchor
insets
- GridBagConstraints.insets
public static Frame getFrame(Component comp)
comp
- コンポーネント
null
|
Kagetaka | |||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
Copyright (c) 2002-2004 The Kagetaka Project 'November 20, 2004'