JDialog performance issue in jdk 1.5 and jdk 1.6
Recently, we switched our application to jdk 1.5 and observed that displaying the dialog is taking longer than in jdk 1.4. It seems to be a very peculiar problem. There is a delay of about 80 to 90 milliseconds between the JDialog's setVisible(true) call to the start of the paint method in the JDialog class with both jdk 1.5 and jdk 1.6. Has anyone observed a similar problem?
Some other things to be noted:
1. Its not a plain vanilla JDialog, but contains a scrollpane and a panel within it. The paint method barely takes a few milliseconds to complete.
2. We checked the EventQueue. There are no events waiting to get executed during the period the dialog is shown.
3. The gap between the setVisible and start of the paint method seems to be either 1 ms or about 90 ms. Never an in between value like 40-50.
4. We have tried using the default no parameter constructor for RepaintManager.
Hope someone can think of a good solution.

