![]() ![]()
|
25
Thread Safety Utilities
Features of the Thread Safety Classes
Methods
25.1 Features of the Thread Safety Classes
JCMessageHelperlets you build a message dialog based onJOptionPane. The advantages of theJCMessageHelperare:
JCMessageHelperinvokesJOptionPanein a thread-safe manner.- You can set an audible indication when the dialog appears as a parameter in the constructor.
JCMessageHelperutilizesJCSwingRunnable, an abstract runnable class that provides therun()method. You can create an object of this type, and call therunSafemethod to get it going.
25.2 Methods
JCMessageHelper
JCMessageHelperhas static methods that resemble those inJOptionPane. These are:JCSwingRunnable
![]() ![]()
|