final String title = getDisplayName();
// look where we have been added ...
final Window w = LibSwingUtil.getWindowAncestor(reportPane);
if (w instanceof Frame)
{
aboutFrame = new AboutDialog
((Frame) w, title, ClassicEngineInfo.getInstance());
}
else if (w instanceof Dialog)
{
aboutFrame = new AboutDialog
((Dialog) w, title, ClassicEngineInfo.getInstance());
}
else
{
aboutFrame = new AboutDialog
(title, ClassicEngineInfo.getInstance());
}
aboutFrame.pack();
LibSwingUtil.centerFrameOnScreen(aboutFrame);
}