import java.awt.*;
public class GBC extends GridBagConstraints
{
private static final long serialVersionUID = 1L;
public GBC(int gridx, int gridy)
{
this.gridx = gridx;
this.gridy = gridy;
}
public GBC(int gridx, int gridy, int gridwidth, int gridheight)
this.gridwidth = gridwidth;
this.gridheight = gridheight;
public GBC setAnchor(int anchor)
this.anchor = anchor;
return this;
public GBC setFill(int fill)
this.fill = fill;
public GBC setWeight(double weightx, double weighty)
this.weightx = weightx;
this.weighty = weighty;
public GBC setInsets(int distance)
this.insets = new Insets(distance, distance, distance, distance);
public GBC setInsets(int top, int left, int bottom, int right)
this.insets = new Insets(top, left, bottom, right);
public GBC setIpad(int ipadx, int ipady)
this.ipadx = ipadx;
this.ipady = ipady;
}
————————————————
版權聲明:本文為CSDN部落客「明明如月學長」的原創文章,遵循CC 4.0 BY-SA版權協定,轉載請附上原文出處連結及本聲明。
原文連結:
https://blog.csdn.net/w605283073/article/details/46572459