Here a JTextPane is about to be added at grid position (2,2), indicated by the red box. The top-left position is (0,0). |
Here, the JTextPane has been added and the tooltip indicates it's grid position and size. Note that it does not fill up a grid cell. |
To make it fill the grid cell, select a "fill" constraint of "HORIZONTAL", "VERTICAL" or "BOTH" |
Now it fills the cell, and is being dragged up and left, to position 1,1, indicated by the red box. |
Now it has been moved, and it's bottom-right edge is being dragged to increase it's width by 1 column and it's height by 2 rows. |
Now it has been resized, and the tooltip indicates it's grid x, y, width and height values. |