Hi all!
I’ve got a simple multiplayer black jack game that has several “rooms” and chat. On the UI there’s a place for a Component that displays various room info while player is in lobby and a game board while he’s playing. I’ve got separate Components for this tasks. The question is: how to “swap” components in swing correctly?
I’ve tried calling remove, add and revalidate in sequence and that worked just fine on one of my laptops. On another one I’m having an exception saying that it’s impossible to create buffered strategy 'cause component’s dimensions are zeros. Unfortunately I don’t have the sources to attach right now. Maybe you could suggest some solution just by this symptoms?
Thanks in advance.