I am not Java trained, but it seems there is not yet a simple implementation for: frmChild1.Show vbModal.
I was thinking of a simple way to simulate vbModal, at least externally to the user person. The idea is to disable the controls on the parent form whenever a frmChildx.Show is executed. Save the controls, so when the child form shuts down it will again activate the parent controls. In the meantime, the user must attend only (in true vbmodal fashion) to the child form before doing anything further with the parent form. Users get into lots of trouble when they have too many choices (multiple child widows open at the same time or even the same child window open multiple times). Here is just one example of how it could work.
Parent program:
Public ModalControl(100) As CommandButton ... must be some way to identify all parent controls, if necessary
Public ModalControlCount As Integer
MyParent form:
Public Sub cmdChild1_Click()
cmdChild1.Enabled = False: ModalControl(1) = MyParent.cmdChild1
cmdChild2.Enabled = False: ModalControl(2) = MyParent.cmdChild2
cmdChild3.Enabled = False: ModalControl(3) = MyParent.cmdChild3 ...etc ...
ModalControlCount = 3
MyChild1 = New frmChild1
MyChild1.Show
End Sub
cmdChild2_Click() and cmdChild3_Click() in parent form are similar to above
Each child MyChildx form:
Public Sub cmdExit_Click()
Dim I As Integer
For I = 1 To ModalControlCount
ModalControl(I).Enabled = True
Next I
Unload Me
End Sub
Public Sub Form_Deactivate()
Dim I As Integer
For I = 1 To ModalControlCount
ModalControl(I).Enabled = True
Next I
End Sub
I have tested this code and it does work. Other folks can simplify it further, but it is an idea for those needing vbModal support.
Thank you