B4J Question javax.swing.JOptionPane configurable ?

GMan

Well-Known Member
Licensed User
Is the
B4X:
javax.swing.JOptionPane
configurable in the way of looking ?
Looks like an old WIN3.1 Window :cool:

Here is the part i refer to:

B4X:
' Show Messagedialog
' Parameter Message as String
Public Sub showMessage(strMsg As String)
  ' Define the JavaObject
  Dim jo As JavaObject
  ' Initialize using the Swing Library class JOptionPane
  jo.InitializeStatic("javax.swing.JOptionPane")
  ' Show the message
  jo.RunMethod("showMessageDialog", Array As Object(Null, strMsg))
End Sub
 

GMan

Well-Known Member
Licensed User
I am using your example writing and compiling a library, so dont know anything better/other :rolleyes:
 
Upvote 0

GMan

Well-Known Member
Licensed User
This works,
B4X:
    If mi.Text = "_Beenden" Then
        If fx.Msgbox2(MainForm, "Wirklich beenden ?", "Frage", "Ja", "", "Nein", _
            fx.MSGBOX_CONFIRMATION) = fx.DialogResponse.POSITIVE Then
            ExitApplication
        End If
    End If

the XUI-Sample wouldnt work: "types are different".

But this is fine, too - relative good looking style
 
Upvote 0
Top