Class JOptionPane
public class JOptionPane : JComponent, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<Component>JOptionPane
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<Component>.IsAssignableFrom(IJavaType)JVMBridgeBase<Component>.IsAssignableFrom<T>()JVMBridgeBase<Component>.Execute<T>(params T[])JVMBridgeBase<Component>.DynBridgeClazzJVMBridgeBase<Component>.BridgeClazzJVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.ToString()JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeListener
- Extension Methods
Constructors
JOptionPane()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public JOptionPane()
JOptionPane(object)
public JOptionPane(object arg0)
Parameters
JOptionPane(object, int)
public JOptionPane(object arg0, int arg1)
Parameters
JOptionPane(object, int, int)
public JOptionPane(object arg0, int arg1, int arg2)
Parameters
JOptionPane(object, int, int, Icon)
public JOptionPane(object arg0, int arg1, int arg2, Icon arg3)
Parameters
JOptionPane(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public JOptionPane(params object[] args)
Parameters
args
object[]
Properties
BridgeClassName
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
CANCEL_OPTION
public static int CANCEL_OPTION { get; }
Property Value
CLOSED_OPTION
public static int CLOSED_OPTION { get; }
Property Value
DEFAULT_OPTION
public static int DEFAULT_OPTION { get; }
Property Value
ERROR_MESSAGE
public static int ERROR_MESSAGE { get; }
Property Value
ICON_PROPERTY
public static String ICON_PROPERTY { get; }
Property Value
INFORMATION_MESSAGE
public static int INFORMATION_MESSAGE { get; }
Property Value
INITIAL_SELECTION_VALUE_PROPERTY
public static String INITIAL_SELECTION_VALUE_PROPERTY { get; }
Property Value
INITIAL_VALUE_PROPERTY
public static String INITIAL_VALUE_PROPERTY { get; }
Property Value
INPUT_VALUE_PROPERTY
public static String INPUT_VALUE_PROPERTY { get; }
Property Value
Icon
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getIcon() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setIcon(javax.swing.Icon)
public Icon Icon { get; set; }
Property Value
InitialSelectionValue
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getInitialSelectionValue() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setInitialSelectionValue(java.lang.Object)
public object InitialSelectionValue { get; set; }
Property Value
InitialValue
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getInitialValue() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setInitialValue(java.lang.Object)
public object InitialValue { get; set; }
Property Value
InputValue
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getInputValue() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setInputValue(java.lang.Object)
public object InputValue { get; set; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
MESSAGE_PROPERTY
public static String MESSAGE_PROPERTY { get; }
Property Value
MESSAGE_TYPE_PROPERTY
public static String MESSAGE_TYPE_PROPERTY { get; }
Property Value
MaxCharactersPerLineCount
public int MaxCharactersPerLineCount { get; }
Property Value
Message
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getMessage() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setMessage(java.lang.Object)
public object Message { get; set; }
Property Value
MessageType
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getMessageType() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setMessageType(int)
public int MessageType { get; set; }
Property Value
NO_OPTION
public static int NO_OPTION { get; }
Property Value
OK_CANCEL_OPTION
public static int OK_CANCEL_OPTION { get; }
Property Value
OK_OPTION
public static int OK_OPTION { get; }
Property Value
OPTIONS_PROPERTY
public static String OPTIONS_PROPERTY { get; }
Property Value
OPTION_TYPE_PROPERTY
public static String OPTION_TYPE_PROPERTY { get; }
Property Value
OptionType
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getOptionType() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setOptionType(int)
public int OptionType { get; set; }
Property Value
Options
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getOptions() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setOptions(java.lang.Object[])
public object[] Options { get; set; }
Property Value
- object[]
PLAIN_MESSAGE
public static int PLAIN_MESSAGE { get; }
Property Value
QUESTION_MESSAGE
public static int QUESTION_MESSAGE { get; }
Property Value
RootFrame
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getRootFrame() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setRootFrame(java.awt.Frame)
public static Frame RootFrame { get; set; }
Property Value
SELECTION_VALUES_PROPERTY
public static String SELECTION_VALUES_PROPERTY { get; }
Property Value
SelectionValues
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getSelectionValues() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setSelectionValues(java.lang.Object[])
public object[] SelectionValues { get; set; }
Property Value
- object[]
UNINITIALIZED_VALUE
public static object UNINITIALIZED_VALUE { get; }
Property Value
VALUE_PROPERTY
public static String VALUE_PROPERTY { get; }
Property Value
Value
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getValue() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setValue(java.lang.Object)
public object Value { get; set; }
Property Value
WANTS_INPUT_PROPERTY
public static String WANTS_INPUT_PROPERTY { get; }
Property Value
WARNING_MESSAGE
public static int WARNING_MESSAGE { get; }
Property Value
WantsInput
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#getWantsInput() https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/JOptionPane.html#setWantsInput(boolean)
public bool WantsInput { get; set; }
Property Value
YES_NO_CANCEL_OPTION
public static int YES_NO_CANCEL_OPTION { get; }
Property Value
YES_NO_OPTION
public static int YES_NO_OPTION { get; }
Property Value
YES_OPTION
public static int YES_OPTION { get; }
Property Value
Methods
CreateDialog(Component, String)
public JDialog CreateDialog(Component arg0, String arg1)
Parameters
Returns
Exceptions
CreateDialog(String)
public JDialog CreateDialog(String arg0)
Parameters
Returns
Exceptions
CreateInternalFrame(Component, String)
public JInternalFrame CreateInternalFrame(Component arg0, String arg1)
Parameters
Returns
GetDesktopPaneForComponent(Component)
public static JDesktopPane GetDesktopPaneForComponent(Component arg0)
Parameters
Returns
GetFrameForComponent(Component)
public static Frame GetFrameForComponent(Component arg0)
Parameters
Returns
Exceptions
SelectInitialValue()
public void SelectInitialValue()
SetUI(OptionPaneUI)
public void SetUI(OptionPaneUI arg0)
Parameters
arg0
OptionPaneUI
ShowConfirmDialog(Component, object)
public static int ShowConfirmDialog(Component arg0, object arg1)
Parameters
Returns
Exceptions
ShowConfirmDialog(Component, object, String, int)
public static int ShowConfirmDialog(Component arg0, object arg1, String arg2, int arg3)
Parameters
Returns
Exceptions
ShowConfirmDialog(Component, object, String, int, int)
public static int ShowConfirmDialog(Component arg0, object arg1, String arg2, int arg3, int arg4)
Parameters
Returns
Exceptions
ShowConfirmDialog(Component, object, String, int, int, Icon)
public static int ShowConfirmDialog(Component arg0, object arg1, String arg2, int arg3, int arg4, Icon arg5)
Parameters
Returns
Exceptions
ShowInputDialog(Component, object)
public static String ShowInputDialog(Component arg0, object arg1)
Parameters
Returns
Exceptions
ShowInputDialog(Component, object, String, int)
public static String ShowInputDialog(Component arg0, object arg1, String arg2, int arg3)
Parameters
Returns
Exceptions
ShowInputDialog(Component, object, String, int, Icon, object[], object)
public static object ShowInputDialog(Component arg0, object arg1, String arg2, int arg3, Icon arg4, object[] arg5, object arg6)
Parameters
Returns
Exceptions
ShowInputDialog(Component, object, object)
public static String ShowInputDialog(Component arg0, object arg1, object arg2)
Parameters
Returns
ShowInputDialog(object)
public static String ShowInputDialog(object arg0)
Parameters
Returns
Exceptions
ShowInputDialog(object, object)
public static String ShowInputDialog(object arg0, object arg1)
Parameters
Returns
ShowInternalConfirmDialog(Component, object)
public static int ShowInternalConfirmDialog(Component arg0, object arg1)
Parameters
Returns
ShowInternalConfirmDialog(Component, object, String, int)
public static int ShowInternalConfirmDialog(Component arg0, object arg1, String arg2, int arg3)
Parameters
Returns
ShowInternalConfirmDialog(Component, object, String, int, int)
public static int ShowInternalConfirmDialog(Component arg0, object arg1, String arg2, int arg3, int arg4)
Parameters
Returns
ShowInternalConfirmDialog(Component, object, String, int, int, Icon)
public static int ShowInternalConfirmDialog(Component arg0, object arg1, String arg2, int arg3, int arg4, Icon arg5)
Parameters
Returns
ShowInternalInputDialog(Component, object)
public static String ShowInternalInputDialog(Component arg0, object arg1)
Parameters
Returns
ShowInternalInputDialog(Component, object, String, int)
public static String ShowInternalInputDialog(Component arg0, object arg1, String arg2, int arg3)
Parameters
Returns
ShowInternalInputDialog(Component, object, String, int, Icon, object[], object)
public static object ShowInternalInputDialog(Component arg0, object arg1, String arg2, int arg3, Icon arg4, object[] arg5, object arg6)
Parameters
Returns
ShowInternalMessageDialog(Component, object)
public static void ShowInternalMessageDialog(Component arg0, object arg1)
Parameters
ShowInternalMessageDialog(Component, object, String, int)
public static void ShowInternalMessageDialog(Component arg0, object arg1, String arg2, int arg3)
Parameters
ShowInternalMessageDialog(Component, object, String, int, Icon)
public static void ShowInternalMessageDialog(Component arg0, object arg1, String arg2, int arg3, Icon arg4)
Parameters
ShowInternalOptionDialog(Component, object, String, int, int, Icon, object[], object)
public static int ShowInternalOptionDialog(Component arg0, object arg1, String arg2, int arg3, int arg4, Icon arg5, object[] arg6, object arg7)
Parameters
Returns
ShowMessageDialog(Component, object)
public static void ShowMessageDialog(Component arg0, object arg1)
Parameters
Exceptions
ShowMessageDialog(Component, object, String, int)
public static void ShowMessageDialog(Component arg0, object arg1, String arg2, int arg3)
Parameters
Exceptions
ShowMessageDialog(Component, object, String, int, Icon)
public static void ShowMessageDialog(Component arg0, object arg1, String arg2, int arg3, Icon arg4)
Parameters
Exceptions
ShowOptionDialog(Component, object, String, int, int, Icon, object[], object)
public static int ShowOptionDialog(Component arg0, object arg1, String arg2, int arg3, int arg4, Icon arg5, object[] arg6, object arg7)
Parameters
Returns
Exceptions
Operators
implicit operator Accessible(JOptionPane)
Converter from JOptionPane to Accessible
public static implicit operator Accessible(JOptionPane t)