图书管理系统代码 7GBC  网格组布…

2021-08-27 10:59:40 浏览数 (2)

import java.awt.*;

public class GBC extends GridBagConstraints { 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; } }

0 人点赞