B4J Question TableView Issue.

Tyler

Member
Licensed User
Longtime User
Hey guys, every time I attempt to put anything in my TableView, I get the following:



B4X:
Program started.
SEVERE: javafx.scene.control.Control loadSkinClass Failed to load skin 'StringProperty [bean: TableView[id=tbl, styleClass=table-view skin], name: skinClassName, value: skin]' for control TableView[id=tbl, styleClass=table-view skin]
java.lang.NullPointerException
    at javafx.scene.control.Control.loadClass(Control.java:134)
    at javafx.scene.control.Control.loadSkinClass(Control.java:1021)
    at javafx.scene.control.Control.access$500(Control.java:70)
    at javafx.scene.control.Control$12.invalidated(Control.java:972)
    at javafx.beans.property.StringPropertyBase.markInvalid(StringPropertyBase.java:127)
    at javafx.beans.property.StringPropertyBase.set(StringPropertyBase.java:161)
    at com.sun.javafx.css.StyleableStringProperty.set(StyleableStringProperty.java:71)
    at javafx.scene.control.Control$12.set(Control.java:964)
    at com.sun.javafx.css.StyleableStringProperty.applyStyle(StyleableStringProperty.java:59)
    at com.sun.javafx.css.StyleableStringProperty.applyStyle(StyleableStringProperty.java:31)
    at com.sun.javafx.css.StyleableProperty.set(StyleableProperty.java:70)
    at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:902)
    at javafx.scene.Node.impl_processCSS(Node.java:7415)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1146)
    at javafx.scene.control.Control.impl_processCSS(Control.java:1154)
    at javafx.scene.Parent.impl_processCSS(Parent.java:1153)
    at javafx.scene.Node.processCSS(Node.java:7383)
    at javafx.scene.Node.processCSS(Node.java:7377)
    at javafx.scene.Scene.doCSSPass(Scene.java:446)
    at javafx.scene.Scene.access$3800(Scene.java:170)
    at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2202)
    at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
    at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
    at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
    at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
    at java.lang.Thread.run(Thread.java:722)
SEVERE: javafx.scene.control.Control impl_processCSS The -fx-skin property has not been defined in CSS for TableView[id=tbl, styleClass=table-view skin]
SEVERE: javafx.scene.control.Control impl_processCSS The -fx-skin property has not been defined in CSS for TableView[id=tbl, styleClass=table-view skin]


I'm not sure what it's requiring that I do. Any help would be greatly appreciated, Cheeers!
 

stevel05

Expert
Licensed User
Longtime User
How are you loading the data?
 
Upvote 0

Tyler

Member
Licensed User
Longtime User
using

B4X:
TableView1.Items.Add("test")

OR

TableView1.Items.AddAll(List1)

Nothing seems to work...

I can set the columns no problem but not add content to the cells :(

I don't need any fancy programmatic stuff or math to be done, I simply need the user to be able to click each cell and edit the content and have it all output in a semi-legible format(ie.: spreadsheet, properly spaced text file, database tables, etc.)
 
Last edited:
Upvote 0

stevel05

Expert
Licensed User
Longtime User
The TableView.Items should hold an Array of the items for a row, one array element for each column.

So:

B4X:
TableView1.Items.Add(Array As String("test"))

Should give you one row and one column.

B4X:
TableView1.Items.Add(Array As String("Test1","Test2"))

Will give you one row with two columns.
 
Upvote 0
Top