B4X FEED Java3D on B4J Powerful Object Oriented 3D API, problem with JavaObject

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Java3D on B4J Powerful Object Oriented 3D API, problem with JavaObject است. این موضوع تا کنون 36 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Java3D on B4J Powerful Object Oriented 3D API, problem with JavaObject
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
36
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hi all,

this is a first attemp to make Java3D working on B4J using JavaObject.

This worked on pure Java and Jabaco that use directly java functions calls, with these I've managed it a lot and worked very well, but with B4J and JavaObject I cannot make it to work.

To start with... I've tried to port a simple demo project of a colored 3D cube that can be rotated with the mouse.
This on Jabaco works, but I cannot make it to work on B4J using JavaObject. Please what I do wrong here ?

Because Java3D works on top of Swing and AWT components I used a SwingNode to adapt it on JFX Form.
Because add directly the Canvas3D to the SwingNode seem not possible (it expets a JComponent), I used a JPanel with a BorderLayout set to the CENTER alignment, than put the Canvas3D inside it and then I add the JPanel to a SwingNode content, and finally to a JFX Form.

With the code I wrote, If I execute it in debug mode all objects seem to be fully initialized, I can see all Java3D properties changes...



 

عقب
بالا