I'm using JCP in an application and would like to launch it in a modal dialog. Adding JChemPaintPanel to a JDialog works fine but dialogs invoked by JChemPaint become inaccessible (the dialog containing JChemPaint remains active). Most dialogs invoked by JCP are in fact JFrames and are not bound to a parent component. Using JDialogs instead of JFrames solves the problem.
Imho using JChemPaintPanel in dialogs is a desirable functionality that might also be of interest to other users.
I changed all dialogs to JDialog. If I missed any, please file bug report.