时间: 2020-11-26|47次围观|0 条评论

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.gridx = gridx;       this.gridy = gridy;       this.gridwidth = gridwidth;       this.gridheight = gridheight;     }

        public GBC setAnchor(int anchor)     {       this.anchor = anchor;       return this;     }

        public GBC setFill(int fill)     {       this.fill = fill;       return this;     }

        public GBC setWeight(double weightx, double weighty)     {       this.weightx = weightx;       this.weighty = weighty;       return this;     }

        public GBC setInsets(int distance)     {       this.insets = new Insets(distance, distance, distance, distance);       return this;     }

        public GBC setInsets(int top, int left, int bottom, int right)     {       this.insets = new Insets(top, left, bottom, right);       return this;     }

        public GBC setIpad(int ipadx, int ipady)     {       this.ipadx = ipadx;       this.ipady = ipady;       return this;     } }

原文链接:https://blog.csdn.net/w605283073/article/details/46572459

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《文件切割合并器 6  GBC 简化
   

还没有人抢沙发呢~