home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Pro 2003 March
/
DPPCPRO0303.ISO
/
Components
/
Microsoft ASP
/
_SETUP.1
/
ASPWizard.jar
/
asp
/
netobjects
/
nfx
/
ui
/
AwtUtil.class
(
.txt
)
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Java Class File
|
1998-11-20
|
1.1 KB
|
24 lines
package asp.netobjects.nfx.ui;
import java.awt.Component;
import java.awt.Container;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
public class AwtUtil {
private AwtUtil() {
}
public static void addComponent(Container cont, Component comp, GridBagLayout gbl, GridBagConstraints gbc, int x, int y, int width, int height, double weightx, double weighty) {
if (gbl == cont.getLayout()) {
gbc.gridx = x;
gbc.gridy = y;
gbc.gridwidth = width;
gbc.gridheight = height;
gbc.weightx = weightx;
gbc.weighty = weighty;
cont.add(comp, gbc);
}
}
}