I set up a Card Layout at main Game Panel, in order to bring up some additional menus at certain times during the game.

When I run the build, the panels just flash back and forth between each other continually. Is this because both of them are continually refreshing? and is the card layout feasible in the main Game Panel,

Is there a better way to bring up in game menus?

Hi Friend,

May be you can try doing a setVisible (false) on the panels that you move to the back and setVisible(true) before you move the one you want to view to the front.

Try if it can solve your Query.

Thanks
Jay

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.