B4J Library jOptionPane (MessageBox)

Discussion in 'B4J Libraries & Classes' started by tchart, Jun 12, 2015.

  1. tchart

    tchart Active Member Licensed User

    2015-06-12 21_12_49-Title.png

    I needed a simple MessageBox for a non-UI B4J application.

    This is a wrapper of JOptionPane.


    I've only implemented MessageDialog and ConfirmDialog. Please let me know if you need others such as input dialog.

    It doesn't require any additional libraries.

    Real easy to use!

    Dim i As JOptionPane
    Dim response As Int

    '0 = Yes
    '1 = No
    '2 = Cancel
    response = i.showConfirmDialog("Yollo","Title",i.optionType_YES_NO_CANCEL,i.messageType_ERROR)

    Attached Files:

    Last edited: Jun 12, 2015
    Mashiane, jmon, inakigarm and 2 others like this.
  2. rwblinn

    rwblinn Well-Known Member Licensed User


    pls find attached for more examples - the dialogs are defined using JavaObjects in a B4J class. The project is a B4J Non UI app showing as an example the About Dialog.
    Have a look if you want to include in your wrapper.

    Thanks for sharing.

    Attached Files:

    inakigarm and jmon like this.
  3. tchart

    tchart Active Member Licensed User

    Thanks Rob!
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice