Class JmriJOptionPane

java.lang.Object
jmri.util.swing.JmriJOptionPane

public class JmriJOptionPane extends Object
JmriJOptionPane provides a set of static methods to display Dialogs and retrieve user input. These can directly replace the javax.swing.JOptionPane static methods.

If the parentComponent is null, all Dialogs created will be Modal. These will block the whole JVM UI until they are closed. These may appear behind Window frames with Always On Top enabled and may not be accessible. These Dialogs are positioned in the centre of the screen.

If a parentComponent is provided, the Dialogs will be created Modal to ( will block ) the parent Window Frame, other Frames are not blocked. These Dialogs will appear in the centre of the parent Frame.

Since:
5.5.4