My answer to my post.
When adding new JAVA control to form, component container is form itself. But ContentFrame, where we draw JABACO
component is VB#Picture, and she cannot be container for JAVA component.
The solution is to set Form.ContentFrame.Opaque=False. This will set ContentFrame to be transparent, and we now can
combine Java and Jabaco controls. Here is sample code and picture of it.
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Dim Con As Class
Dim dbTable1 As quick#dbtable#DBTable = New quick#dbtable#DBTable()
Dim rs As ResultSet
con=class.forName("org.firebirdsql.jdbc.FBDriver")
'Add control on form without layot manager
me.add(dbTable1)
Me.ContentFrame.Opaque=False
Database1.Connect ("jdbc:firebirdsql:localhost/3050:/Program Files/Firebird/Firebird_2_1/examples/empbuild/EMPLOYEE.FDB", "sysdba", "masterkey")
rs=database1.ExecuteStatement("Select * from Customer")
dBTable1.createControlPanel ()
dbTable1.refresh (rs)
'Set control position and size
dbtable1.setBounds(100,100,500,300)
dbtable1.updateUI
|
Good luck, and keep posting your samples and pictures of your work!
Milan