how do I define absolute size and location for a layout?
Posted on 2002-03-09
I'm writing a card game in java, and I have a problem with the GUI: I defined several JPanels on the JFrame, for the card "hands", and used GridBagLayout. Whenever I add a card to the "hand", the whole dimensions of the panel change, and the whole layout changes as well.
How do I set the layout, the parameters, or anything else to define that the dimensions are absolute?