int ch = g.getClipHeight();
if(cmp instanceof Dialog) {
if(transitionType != TYPE_FADE) {
if(!(getSource() instanceof Dialog && getDestination() instanceof Dialog &&
cmp == getDestination())) {
Painter p = cmp.getStyle().getBgPainter();
cmp.getStyle().setBgPainter(null);
g.translate(x, y);
Dialog dlg = (Dialog)cmp;
g.setClip(0, 0, cmp.getWidth(), cmp.getHeight());
dlg.getTitleComponent().paintComponent(g, false);