Problem with updating my GUI

Joined
Apr 25, 2012
Messages
1
Reaction score
0
So I have a GUI intended for a game. In the game you go through several rooms. Whenever you enter a new room you get as many Buttons as there are exits to the room, logically one for each. That is the theory however. I have managed to set it up so the buttons are dynamically generated according to the number of exits to the room, and have the new Buttons drawn. However, they are layered behind the OLD toolbar (which includes two lists and another panel intended for Buttons later on) and the old toolbar stays rigid in its place. When I resize the window the NEW toolbar resizes along with it, but the OLD toolbar stays in the exact same spot, even if I resize the frame so it is no longer on it and then return it to original size it is still there. I've read stuff about validating and revalidating and removing and packing, but none of that seemed to help, though I'm really unsure at what point I need to do any of that. I can post the entirety of my code here, but me being german it contains some german names, also it is pretty amateurish code. So yeah. Can anyone help?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top