Set up GridBag Constraints. @param gbc The gridbagconstraints to set up @param gx cols from left (left-most col for multi-column cell) @param gy rows from top (top-most row for multi-row cell) @param gw cols wide @param gh rows high @param wx weight of x, I typically put in percentile,
(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy)
| 69 | * @param wy weight of y, same as weight for cols, just specify a non-zero value for one cell in each row. |
| 70 | */ |
| 71 | public static void buildConstraints(GridBagConstraints gbc, int gx, int gy, int gw, int gh, double wx, double wy) |
| 72 | { |
| 73 | gbc.gridx = gx; |
| 74 | gbc.gridy = gy; |
| 75 | gbc.gridwidth = gw; |
| 76 | gbc.gridheight = gh; |
| 77 | gbc.weightx = wx; |
| 78 | gbc.weighty = wy; |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * Set up GridBag Constraints. |
no outgoing calls
no test coverage detected