Set up GridBag Constraints in a relative pattern. Components must be added in order row by row. @param gbc The gridbagconstraints to set up @param gw cols wide @param gh rows high @param wx weight of x, I typically put in percentile, only need to specify this once for each column,
(GridBagConstraints gbc, int gw, int gh, double wx, double wy, int fill, int anchor)
| 114 | * @param anchor Where should the component be placed if smaller than the space. |
| 115 | */ |
| 116 | public static void buildRelativeConstraints(GridBagConstraints gbc, int gw, int gh, double wx, double wy, int fill, |
| 117 | int anchor) |
| 118 | { |
| 119 | buildConstraints(gbc, GridBagConstraints.RELATIVE, GridBagConstraints.RELATIVE, gw, gh, wx, wy); |
| 120 | gbc.fill = fill; |
| 121 | gbc.anchor = anchor; |
| 122 | } |
| 123 | |
| 124 | /** |
| 125 | * Set up GridBag Constraints in a relative pattern. Components must be |
no test coverage detected