posted 11 years ago
Welcome to the JavaRanch, Maitri!
I can't tell 100%, but it does sound like you are causing the toggle panel to be re-rendered, and when you do that the entire contents of the components within the panel will be redrawn, which can cause flickering if the redrawing is a complex operation such as a calendar control with many sub-components.
To minimize flicker, you'll need to determine what triggers the redrawing (re-rendering) of the toggle panel and reduce the amount of redrawing. Also if you can be more selective about what you choose to update within the panel it will help.
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.