B4J Question CustomListView Issue JDK8 and JDK11

rwblinn

Well-Known Member
Licensed User
Longtime User
Working on a project to dynamically show Homematic Smart Home items (like devices, system variables) in a customlistview (clv).
The items are configured in a JSON file and used to load the clv. After initial load, the items value are updated via http requests.
Each clv item is created from a layout holding a label to show an fontawesome icon and two labels for the item name and value.
The designerutils are used for the toolbar and accessing the views (ensured to set in each layout DDD.CollectViewsData (Required to get views with dd.GetViewByName)

Tested with B4J 9.80 (64bit).

Issue
In JDK8 the first item shows a correct fontawesome icon in the label whereas the next labels do not show the fontawesome icon (basically lost all the font settings).
In addition the label name (like Battery Check) does not show the font in bold.
In JDK11 all working fine.

Would like to run this under JDK8, any hints appreciated how to resolve. The test project (in very early stage) is attached.

1660924652374.png
 

Attachments

  • Project.zip
    9.3 KB · Views: 70

rwblinn

Well-Known Member
Licensed User
Longtime User
Thanks for help and advice.
INFO
Running the latest Oracle JDK 1.8.0_341.

ACTIONS
Cleaned up B4J additional libaries folder to ensure no duplicates.
Installed Oracle JDK 1.8.0_221, tested with B4J = issue remain.
Tested B4A with JDK 1.8.0_341 = result OK.
 
Upvote 0

rwblinn

Well-Known Member
Licensed User
Longtime User
Still not found a solution regardless which Oracle JDK 8 version ... strange.
Running Windows 10.0.19044 N/A Build 19044.
 
Upvote 0
Top