D dk9uv Member Licensed User Longtime User Aug 12, 2017 #1 Hello, I wonder how to replace the "no content in table" in an empty TableView with an own text. There is a hint here: https://stackoverflow.com/questions...-content-in-table-text-for-empty-javafx-table I do not know how to implement that in B4J. Thanks for your help Chris
Hello, I wonder how to replace the "no content in table" in an empty TableView with an own text. There is a hint here: https://stackoverflow.com/questions...-content-in-table-text-for-empty-javafx-table I do not know how to implement that in B4J. Thanks for your help Chris
stevel05 Expert Licensed User Longtime User Aug 12, 2017 #2 Like this: B4X: Public Sub SetTVPlaceholder(TV As TableView,Text As String) Dim TVJO As JavaObject = TV Dim L As Label L.Initialize("") L.Text = Text TVJO.RunMethod("setPlaceholder",Array(L)) End Sub An call it: B4X: SetTVPlaceholder(TableView1,"No Data") Upvote 0
Like this: B4X: Public Sub SetTVPlaceholder(TV As TableView,Text As String) Dim TVJO As JavaObject = TV Dim L As Label L.Initialize("") L.Text = Text TVJO.RunMethod("setPlaceholder",Array(L)) End Sub An call it: B4X: SetTVPlaceholder(TableView1,"No Data")
D dk9uv Member Licensed User Longtime User Aug 12, 2017 #3 Thanks a lot, works perfectly With best regards Chris Upvote 0