This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
with the GridBagLayout i am creating a table and in the cells i am showing numbers. The numbers change, depending on what the user does.
The problem is now: When the length of the numbers change, so does the size of the corresponding cell. And when the cell size changes, so does the position of all the other cells and the whole table is moving, which doesn't look very nice. How can i tell the GridBagLayout to keep one cell size, no matter how the cell contents change?