Jun 12, 2015 Replies: 2 I needed a simple MessageBox for a non-UI B4J application. This is a wrapper of JOptionPane. http://docs.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html 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! Code: 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) i.ShowMessageDialog(response,"response",i.messageType_ERROR) Attachments JOptionPane.zip JOptionPane.zip 1.6 KB · Views: 725 Last edited: Jun 12, 2015 Click to expand...
I needed a simple MessageBox for a non-UI B4J application. This is a wrapper of JOptionPane. http://docs.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html 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! Code: 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) i.ShowMessageDialog(response,"response",i.messageType_ERROR)
rwblinn Well-Known Member Licensed User Longtime User Jun 12, 2015 #2 Hi, 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. Attachments jRLMsgDialogNonUI.zip jRLMsgDialogNonUI.zip 2.9 KB · Views: 710
Hi, 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.