java.lang.Object
com.vuze.plugins.mlab.tools.ndt.swingemu.JOptionPane
Emulation of javax.swing.JOptionPane for the NDT (Network Diagnostic Tool) plugin.
This class provides a minimal stub implementation of standard dialog boxes to allow the NDT tool to run in headless environments. All dialog methods are no-ops that silently discard messages, maintaining API compatibility without requiring an actual graphical display system.
This allows the NDT tool to display informational messages without interrupting execution in server or headless environments.
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intOption pane message type: an unadorned informational dialog.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic voidshowMessageDialog(Object wha, String str) Show a message dialog (no-op).static voidshowMessageDialog(Object wha, String str1, String str2, int a) Show a message dialog with title and type (no-op).
Field Details
INFORMATION_MESSAGE
public static final int INFORMATION_MESSAGEOption pane message type: an unadorned informational dialog.- See Also:
Constructor Details
JOptionPane
public JOptionPane()Constructor. The dialog methods below are all no-ops that discard their arguments, so an instance is only needed to sit behind a static call.
Method Details
showMessageDialog
showMessageDialog
Show a message dialog with title and type (no-op).- Parameters:
wha- the parent component the dialog would be centred on; unusedstr1- the message text; unusedstr2- the dialog title; unuseda- the message type, one of the constants declared here; unused