B4J Question Tree List

MHND

New Member
Hello everyone
I hope you are doing fine and very well
I have Question About how can i use tree list in my B4J project
I need any ready example please
thanks
 

DonManfred

Expert
Licensed User
Longtime User
 
Upvote 0

MHND

New Member
Hi I got this Logs
--------------
B4J Version: 9.80
Parsing code. (0.01s)
Java Version: 14
Building folders structure. (0.02s)
Compiling code. (0.03s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Compiling generated Java code. Error
B4J line: 65
MainForm.RootPane.AddNode(TreeView1, 0, 0, 400, 4
src\b4j\example\accesslist1.java:77: error: package javafx.scene does not exist
__ref._mainform /*anywheresoftware.b4j.objects.Form*/ .getRootPane().AddNode((javafx.scene.Node)(__ref._treeview1 /*anywheresoftware.b4j.objects.TreeViewWrapper*/ .getObject()),0,0,400,400);
^
1 error
only showing the first 1 errors, of 3 total; use -Xmaxerrs if you would like to see more
 
Upvote 0

MHND

New Member
Two options:
1. You are not using Java downloaded from https://www.b4x.com/b4j.html
2. This is not a UI project.
Hello Erel
I need to use it in website server
this is my code how can i use this list in B4J
so i need to insert the data from database into list
--------------------
<ul id="myUL">
<li><span class="caret">Beverages</span>
<ul class="nested">
<li>Water</li>
<li>Coffee</li>
<li><span class="caret">Tea</span>
<ul class="nested">
<li>Black Tea</li>
<li>White Tea</li>
<li><span class="caret">Green Tea</span>
<ul class="nested">
<li>Sencha</li>
<li>Gyokuro</li>
<li>Matcha</li>
<li>Pi Lo Chun</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
 
Upvote 0

teddybear

Well-Known Member
Licensed User
If it is just for the UL, you can use a map ,the kind of drinks is used as a key, and the value is a list of drink used to store the corresponding the key
 
Upvote 0
Top