I have a JPanel which contains a lot of child components. While updatingadding new components to the parent JPanel I'd like to prevent it from repainting, how can this achieved?
Try RepaintManager.currentManager(component).markCompletelyClean(component). It will prevent the component from repainting. You might need to do this after each time you add new components.
1.4m articles
1.4m replys
5 comments
57.0k users