net.hizlab.kagetaka.awt
クラス LayoutUtils
java.lang.Object
net.hizlab.kagetaka.awt.LayoutUtils
- public class LayoutUtils
- extends Object
AWT ユーティリティクラスです。
- バージョン:
- $Revision: 1.2 $
|
メソッドの概要 |
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)
コンテナにコンポーネントを指定した引数で追加します。
|
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addGridBag
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 - 追加するコンポーネントx - GridBagConstraints.gridxy - GridBagConstraints.gridywidth - GridBagConstraints.gridwidthheight - GridBagConstraints.gridheightweightx - GridBagConstraints.weightxweighty - GridBagConstraints.weightyfill - GridBagConstraints.fillanchor - GridBagConstraints.anchorinsets - GridBagConstraints.insets
Copyright (c) 2002-2003 The Kagetaka Project 'December 6, 2003'