Simple generation of Messageboxes and Inputboxes using Java?

Using Java and the LibreOffice SDK, is there a simple way to generate messageboxes and inputboxes similar to the commands in LibreOffice Basic?

Alternatively, does anyone know of existing Java classes for performing these functions? I’ve searched quite a bit but haven’t found any. :frowning:

I’m prepared to carve up the Developer’s Guide example UnoDialogSample (http://api.libreoffice.org/examples/DevelopersGuide/GUI/UnoDialogSample.java) to roll my own, but I’d rather not have to go to the trouble…

Thanks!

Found a messagebox class at [Java, BSH and JS Script examples] Display a message box (View topic) • Apache OpenOffice Community Forum.

Update:
The messagebox class at the site noted above is actually a large example and includes a main function to enable running it as a stand-alone program. Using that class as starting point, I developed a messagebox class with only about 10% of the code as in the exemplary class. The newly developed class is available at https://sourceforge.net/projects/libreoffice-java-messagebox.

Update: An inputbox class, crafted from the aforementioned UnoDialogSample, is now available at https://sourceforge.net/projects/libreoffice-java-inputbox. It’s considerably longer than the messagebox class since LibreOffice provides no XInputBoxFactory and XInputBox analogous to the XMessageBoxFactory and XMessageBox.