I am developing quite a big application which uses several JPanels to display different data at different times. I create all panels in the beginning to make for a faster change of panels. I simply use setVisible to show and remove a panel but when i do that between some of them the screen flickers. Is there a way to double buffer them or so to fix this? I am quite experienced in java although not in using Swing/awt :D
I hope someone can help.
Re: JPanel flickering
JPanels are by default double buffered. I'm unclear where the flickering takes place...which is where posting an SSCCE would help demonstrate what exactly you are doing (often but not always flickering is due to painting outside of the paintComponent method, but again an example would clarify)