Hi Mungo. On 05/12/2017 11:16, Mungo Carstairs (Staff) wrote:
I just stumbled across the fact that the Database chooser, Blog reader, and Graduated Colour chooser, are all dialogs that can be moved outside the bounds of the Desktop. It just surprised me, but maybe it is intended and/or harmless? Presumably because JalviewDialog doesn't extend JInternalFrame, although in JalviewDialog.initDialogFrame() frame = new JDialog(Desktop.instance, modal); // Desktop is the 'owner' of the JDialog I expected this to constrain the dialog to the bounds of the Desktop, but it doesn't. Modal dialogs are JFrames, and float above their parent by default. The blog reader is historically a JalviewDialog because we needed to route all popups through one dialog thread so we could avoid deadlocks with multiple threads raising modal dialogs (which caused a hang on Windows). The reader could become an internal frame, but it will need careful and thorough multiplatform testing. j. The University of Dundee is a registered Scottish Charity, No: SC015096
_______________________________________________ Jalview-dev mailing list [email protected] http://www.compbio.dundee.ac.uk/mailman/listinfo/jalview-dev
