Troubleshooting
Problem
JOptionPane is a Java object that allows a quick way to add simple dialogs to your Java application. However, when using this dialog object with the Rhapsody Java API, the dialog obscures the view of the Rhapsody applications graphical user interface.
Cause
You have used JOptionPane in a Rhapsody API plugin but the Rhapsody user interface hangs/blurs when the JOptionPane dialog is visible.
Resolving The Problem
JOptionPane objects are modal. If you want to view the Rhapsody application in the background while the JOptionPane object is visible in the foreground, you must use a model object instead. For example, you should use JDialog rather than JOptionPane.
Please refer to the third party Java documentation on how to use modality with dialogs.
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg22007219