scrollbar - Default javafx tableview scroll bar position -


i having tableview @ .fxml file below,

<tableview fx:id="tblviewer" prefheight="340.0"  prefwidth="800.0"                               styleclass="tableview" stylesheets="@clsmain.css" /> 

i have select box of tables. when selecting table data columns populated tableview. if columns more, tableview automatically render horizontal scroll bar same vertical scroll bar.

problem when scroll right end , if changing dropdown selection not let me go left side. , of columns truncated left. showing in image.

enter image description here

if have solution me out please.

kind regards.

updated:

here binding tableview , data

private void initclstable() {                system.out.println("in inintclstable");         bindings.bindcontentbidirectional(tblviewer.getcolumns(), getviewmodel().getcolumnlist());         bindings.bindcontentbidirectional(tblviewer.getitems(), getviewmodel().getdatalist());     } 

here selection taken place: (when user changes selection)

private void subscribechoosentabledataconfig() {         this.columnslist.clear();         this.datalist.clear();         system.out.println("subscribechoosentabledataconfig");               if (choosentabledataconfig.get() != null && choosentabledataconfig.getvalue().gettablename() != null                 && choosentabledataconfig.getvalue().gettablenumber() != 0) {             clsmanager.tell(new clsmanager.clstabledatarequest(eventhandler, choosentabledataconfig.getvalue()                     .gettablename(), choosentabledataconfig.getvalue().gettablenumber()), actorref.nosender());         }     } 

by removing these 2 lines have wanted.

this.columnslist.clear(); this.datalist.clear(); 

many itachiuchiha


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -