JavaFX misaligned header on TableView or extra column -


pic of tableview header

i need aligning headers columns on tableview. problem seems related setting tableview's column resize policy constrained-resize. can explain how fix this? thanks.

i setting policy constrained-resize rid of column based on post: tableview has more columns specified

my stack: java 8, javafx 8, , scenebuilder

<?xml version="1.0" encoding="utf-8"?>    <?import javafx.scene.control.tablecolumn?>  <?import javafx.scene.control.tableview?>  <?import javafx.scene.layout.borderpane?>    <borderpane maxheight="200.0" maxwidth="322.0" prefheight="200.0" prefwidth="320.0" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1">     <center>        <tableview fx:id="statustable" minheight="-infinity" minwidth="-infinity" prefheight="200.0" prefwidth="322.0">          <columns>            <tablecolumn fx:id="statusdescription" minwidth="120.0" prefwidth="210.0" text="description" />            <tablecolumn fx:id="status" prefwidth="97.0" text="priority" />          </columns>           <columnresizepolicy>              <tableview fx:constant="constrained_resize_policy" />           </columnresizepolicy>        </tableview>     </center>  </borderpane>


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -