java - Removing a JPanel from a JFrame -


I am currently working on an introduction screen for games designed using JOGL. Before changing the game, I need to have an introduction with some buttons to change the options.

So, I have Jeffram which I attach to GL Kanvas. GLCanvas also includes a GLEventListener Finally, I add zipalal.

I have overridden the JPNL Paint communion method to set a background image. I have some buttons within the panel whenever you click on the 'play' button, it is called such a function Which is:

frame. Line (JPNL); Frame.repaint (); Animator.start ();

What happens is that my JPNell is correctly removed, but when it is redone again, my frame is filled with gray only, I know that the animator is starting correctly Because my GLEventListener is calling as a display method.

Do anyone know what the problem is?

What is your layout manager? If you have not specified any, you replace the JL Kanvas by adding JPNL.

I will do your code like this:
frame. Away (JPNL); frame.ed (singular); Animator. Start ();
You may need to throw a frame. I'm not working yet.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -