Note that there are some explanatory texts on larger screens.

plurals
  1. POAdd Animation in the tableview rows
    primarykey
    data
    text
    <p>Here scenario is, there are three columns in tableview Task,Group Number and Status.Task number will have string, Group number will also have String but here in status column i want to disply colour filled circles below is my code.Its not giving any error and also not showing circles.</p> <p>part of xml controller class:</p> <pre><code>@FXML private TableView&lt;TaskSchData&gt; taskListTable = new TableView&lt;TaskSchData&gt;(); @FXML private TableColumn&lt;TaskSchData, String&gt; taskName; @FXML private TableColumn&lt;TaskSchData, String&gt; grpNo; @FXML private TableColumn&lt;TaskSchData, String&gt; statuscheck; taskName.setCellValueFactory(new PropertyValueFactory&lt;TaskSchData, String&gt;("taskName")); grpNo.setCellValueFactory(new PropertyValueFactory&lt;TaskSchData, String&gt;("grpNo")); statuscheck.setCellValueFactory(new PropertyValueFactory&lt;TaskSchData, String&gt;("statuscheck")); TaskSchData taskSchData = new TaskSchData(data.gettaskName(), data.getsuffix(),circle); </code></pre> <p>TaskSchData class:</p> <pre><code>public final SimpleStringProperty taskName; public final SimpleStringProperty grpNo; public Circle status ; Circle circle = new Circle(150, Color.web("red", 0.05)); public TaskSchData(String taskName, String groupNo,Circle cir) { this.taskName = new SimpleStringProperty(taskName); this.grpNo = new SimpleStringProperty(groupNo); this.status=cir; } public Circle getStatus() { return status; } public String getTaskName() { return taskName.get(); } public void setTaskName(String taskName) { this.taskName.set(taskName); } public void setStatus(Circle img) { this.status=img; } public SimpleStringProperty taskNameProperty() { return taskName; } public SimpleStringProperty grpNoProperty() { return grpNo; } </code></pre> <p>fxml:</p> <pre><code> &lt;TableColumn sortable="false" text="Tasks" fx:id="taskName"&gt; &lt;minWidth&gt; &lt;Long fx:value="50" /&gt; &lt;/minWidth&gt; &lt;prefWidth&gt; &lt;Long fx:value="150" /&gt; &lt;/prefWidth&gt; &lt;/TableColumn&gt; &lt;TableColumn sortable="false" text="Group No" fx:id="grpNo"&gt; &lt;prefWidth&gt; &lt;Long fx:value="75" /&gt; &lt;/prefWidth&gt; &lt;/TableColumn&gt; &lt;TableColumn text="Status" fx:id="statuscheck"&gt; &lt;prefWidth&gt; &lt;Long fx:value="100" /&gt; &lt;/prefWidth&gt; &lt;/TableColumn&gt; </code></pre> <p>Kindly help here.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload