Table of Contents

Class JOptionPane

Namespace
Javax.Swing
Assembly
MASES.JNet.dll
public class JOptionPane : JComponent, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
JVMBridgeBase<Component>
JOptionPane
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<Component>.IsAssignableFrom(IJavaType)
JVMBridgeBase<Component>.IsAssignableFrom<T>()
JVMBridgeBase<Component>.Execute<T>(params T[])
JVMBridgeBase<Component>.DynBridgeClazz
JVMBridgeBase<Component>.BridgeClazz
JVMBridgeBase.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.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.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

arg0 object

object

JOptionPane(object, int)

public JOptionPane(object arg0, int arg1)

Parameters

arg0 object

object

arg1 int

int

JOptionPane(object, int, int)

public JOptionPane(object arg0, int arg1, int arg2)

Parameters

arg0 object

object

arg1 int

int

arg2 int

int

JOptionPane(object, int, int, Icon)

public JOptionPane(object arg0, int arg1, int arg2, Icon arg3)

Parameters

arg0 object

object

arg1 int

int

arg2 int

int

arg3 Icon

Icon

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

public override string BridgeClassName { get; }

Property Value

string

CANCEL_OPTION

public static int CANCEL_OPTION { get; }

Property Value

int

CLOSED_OPTION

public static int CLOSED_OPTION { get; }

Property Value

int

DEFAULT_OPTION

public static int DEFAULT_OPTION { get; }

Property Value

int

ERROR_MESSAGE

public static int ERROR_MESSAGE { get; }

Property Value

int

ICON_PROPERTY

public static String ICON_PROPERTY { get; }

Property Value

String

INFORMATION_MESSAGE

public static int INFORMATION_MESSAGE { get; }

Property Value

int

INITIAL_SELECTION_VALUE_PROPERTY

public static String INITIAL_SELECTION_VALUE_PROPERTY { get; }

Property Value

String

INITIAL_VALUE_PROPERTY

public static String INITIAL_VALUE_PROPERTY { get; }

Property Value

String

INPUT_VALUE_PROPERTY

public static String INPUT_VALUE_PROPERTY { get; }

Property Value

String

Icon

public Icon Icon { get; set; }

Property Value

Icon

InitialSelectionValue

public object InitialSelectionValue { get; set; }

Property Value

object

InitialValue

public object InitialValue { get; set; }

Property Value

object

InputValue

public object InputValue { get; set; }

Property Value

object

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

MESSAGE_PROPERTY

public static String MESSAGE_PROPERTY { get; }

Property Value

String

MESSAGE_TYPE_PROPERTY

public static String MESSAGE_TYPE_PROPERTY { get; }

Property Value

String

MaxCharactersPerLineCount

public int MaxCharactersPerLineCount { get; }

Property Value

int

Message

public object Message { get; set; }

Property Value

object

MessageType

public int MessageType { get; set; }

Property Value

int

NO_OPTION

public static int NO_OPTION { get; }

Property Value

int

OK_CANCEL_OPTION

public static int OK_CANCEL_OPTION { get; }

Property Value

int

OK_OPTION

public static int OK_OPTION { get; }

Property Value

int

OPTIONS_PROPERTY

public static String OPTIONS_PROPERTY { get; }

Property Value

String

OPTION_TYPE_PROPERTY

public static String OPTION_TYPE_PROPERTY { get; }

Property Value

String

OptionType

public int OptionType { get; set; }

Property Value

int

Options

public object[] Options { get; set; }

Property Value

object[]

PLAIN_MESSAGE

public static int PLAIN_MESSAGE { get; }

Property Value

int

QUESTION_MESSAGE

public static int QUESTION_MESSAGE { get; }

Property Value

int

RootFrame

public static Frame RootFrame { get; set; }

Property Value

Frame

SELECTION_VALUES_PROPERTY

public static String SELECTION_VALUES_PROPERTY { get; }

Property Value

String

SelectionValues

public object[] SelectionValues { get; set; }

Property Value

object[]

UNINITIALIZED_VALUE

public static object UNINITIALIZED_VALUE { get; }

Property Value

object

VALUE_PROPERTY

public static String VALUE_PROPERTY { get; }

Property Value

String

Value

public object Value { get; set; }

Property Value

object

WANTS_INPUT_PROPERTY

public static String WANTS_INPUT_PROPERTY { get; }

Property Value

String

WARNING_MESSAGE

public static int WARNING_MESSAGE { get; }

Property Value

int

WantsInput

public bool WantsInput { get; set; }

Property Value

bool

YES_NO_CANCEL_OPTION

public static int YES_NO_CANCEL_OPTION { get; }

Property Value

int

YES_NO_OPTION

public static int YES_NO_OPTION { get; }

Property Value

int

YES_OPTION

public static int YES_OPTION { get; }

Property Value

int

Methods

CreateDialog(Component, String)

public JDialog CreateDialog(Component arg0, String arg1)

Parameters

arg0 Component

Component

arg1 String

String

Returns

JDialog

JDialog

Exceptions

HeadlessException

CreateDialog(String)

public JDialog CreateDialog(String arg0)

Parameters

arg0 String

String

Returns

JDialog

JDialog

Exceptions

HeadlessException

CreateInternalFrame(Component, String)

public JInternalFrame CreateInternalFrame(Component arg0, String arg1)

Parameters

arg0 Component

Component

arg1 String

String

Returns

JInternalFrame

JInternalFrame

GetDesktopPaneForComponent(Component)

public static JDesktopPane GetDesktopPaneForComponent(Component arg0)

Parameters

arg0 Component

Component

Returns

JDesktopPane

JDesktopPane

GetFrameForComponent(Component)

public static Frame GetFrameForComponent(Component arg0)

Parameters

arg0 Component

Component

Returns

Frame

Frame

Exceptions

HeadlessException

SelectInitialValue()

public void SelectInitialValue()

SetUI(OptionPaneUI)

public void SetUI(OptionPaneUI arg0)

Parameters

arg0 OptionPaneUI

OptionPaneUI

ShowConfirmDialog(Component, object)

public static int ShowConfirmDialog(Component arg0, object arg1)

Parameters

arg0 Component

Component

arg1 object

object

Returns

int

int

Exceptions

HeadlessException

ShowConfirmDialog(Component, object, String, int)

public static int ShowConfirmDialog(Component arg0, object arg1, String arg2, int arg3)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

Returns

int

int

Exceptions

HeadlessException

ShowConfirmDialog(Component, object, String, int, int)

public static int ShowConfirmDialog(Component arg0, object arg1, String arg2, int arg3, int arg4)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

arg4 int

int

Returns

int

int

Exceptions

HeadlessException

ShowConfirmDialog(Component, object, String, int, int, Icon)

public static int ShowConfirmDialog(Component arg0, object arg1, String arg2, int arg3, int arg4, Icon arg5)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

arg4 int

int

arg5 Icon

Icon

Returns

int

int

Exceptions

HeadlessException

ShowInputDialog(Component, object)

public static String ShowInputDialog(Component arg0, object arg1)

Parameters

arg0 Component

Component

arg1 object

object

Returns

String

String

Exceptions

HeadlessException

ShowInputDialog(Component, object, String, int)

public static String ShowInputDialog(Component arg0, object arg1, String arg2, int arg3)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

Returns

String

String

Exceptions

HeadlessException

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

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

arg4 Icon

Icon

arg5 object[]

object

arg6 object

object

Returns

object

object

Exceptions

HeadlessException

ShowInputDialog(Component, object, object)

public static String ShowInputDialog(Component arg0, object arg1, object arg2)

Parameters

arg0 Component

Component

arg1 object

object

arg2 object

object

Returns

String

String

ShowInputDialog(object)

public static String ShowInputDialog(object arg0)

Parameters

arg0 object

object

Returns

String

String

Exceptions

HeadlessException

ShowInputDialog(object, object)

public static String ShowInputDialog(object arg0, object arg1)

Parameters

arg0 object

object

arg1 object

object

Returns

String

String

ShowInternalConfirmDialog(Component, object)

public static int ShowInternalConfirmDialog(Component arg0, object arg1)

Parameters

arg0 Component

Component

arg1 object

object

Returns

int

int

ShowInternalConfirmDialog(Component, object, String, int)

public static int ShowInternalConfirmDialog(Component arg0, object arg1, String arg2, int arg3)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

Returns

int

int

ShowInternalConfirmDialog(Component, object, String, int, int)

public static int ShowInternalConfirmDialog(Component arg0, object arg1, String arg2, int arg3, int arg4)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

arg4 int

int

Returns

int

int

ShowInternalConfirmDialog(Component, object, String, int, int, Icon)

public static int ShowInternalConfirmDialog(Component arg0, object arg1, String arg2, int arg3, int arg4, Icon arg5)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

arg4 int

int

arg5 Icon

Icon

Returns

int

int

ShowInternalInputDialog(Component, object)

public static String ShowInternalInputDialog(Component arg0, object arg1)

Parameters

arg0 Component

Component

arg1 object

object

Returns

String

String

ShowInternalInputDialog(Component, object, String, int)

public static String ShowInternalInputDialog(Component arg0, object arg1, String arg2, int arg3)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

Returns

String

String

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

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

arg4 Icon

Icon

arg5 object[]

object

arg6 object

object

Returns

object

object

ShowInternalMessageDialog(Component, object)

public static void ShowInternalMessageDialog(Component arg0, object arg1)

Parameters

arg0 Component

Component

arg1 object

object

ShowInternalMessageDialog(Component, object, String, int)

public static void ShowInternalMessageDialog(Component arg0, object arg1, String arg2, int arg3)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

ShowInternalMessageDialog(Component, object, String, int, Icon)

public static void ShowInternalMessageDialog(Component arg0, object arg1, String arg2, int arg3, Icon arg4)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

arg4 Icon

Icon

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

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

arg4 int

int

arg5 Icon

Icon

arg6 object[]

object

arg7 object

object

Returns

int

int

ShowMessageDialog(Component, object)

public static void ShowMessageDialog(Component arg0, object arg1)

Parameters

arg0 Component

Component

arg1 object

object

Exceptions

HeadlessException

ShowMessageDialog(Component, object, String, int)

public static void ShowMessageDialog(Component arg0, object arg1, String arg2, int arg3)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

Exceptions

HeadlessException

ShowMessageDialog(Component, object, String, int, Icon)

public static void ShowMessageDialog(Component arg0, object arg1, String arg2, int arg3, Icon arg4)

Parameters

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

arg4 Icon

Icon

Exceptions

HeadlessException

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

arg0 Component

Component

arg1 object

object

arg2 String

String

arg3 int

int

arg4 int

int

arg5 Icon

Icon

arg6 object[]

object

arg7 object

object

Returns

int

int

Exceptions

HeadlessException

Operators

implicit operator Accessible(JOptionPane)

Converter from JOptionPane to Accessible

public static implicit operator Accessible(JOptionPane t)

Parameters

t JOptionPane

Returns

Accessible