java simple JPanel management (see screenshot)

Posted by Allen on Stack Overflow See other posts from Stack Overflow or by Allen
Published on 2010-03-12T03:10:47Z Indexed on 2010/03/12 3:17 UTC
Read the original article Hit count: 447

Filed under:
|
|
|

I have a JPanel that encapsulates two JPanels, one on top of the other.

The first holds two JLabels which hold the playing cards.

The second holds the player's text (name and score).

However, when I remove the player's cards, the lower JPanel moves up to the top, which i would prefer that it not do. Is there a way to keep it in place regardless of whether the top JPanel is occupied or not?

Thanks

alt text

alt text

© Stack Overflow or respective owner

Related posts about java

Related posts about gui