Note that there are some explanatory texts on larger screens.

plurals
  1. POProgressbar and label in tablecell
    text
    copied!<p>I need to put in a table cell, one label and progressbar.</p> <p>For the progressbar, I was using:</p> <pre><code>@FXML private TableView tableView; @FXML private TableColumn columTabela; @FXML private TableColumn columSituacao; private List&lt;Tabela&gt; lista = new ArrayList&lt;Tabela&gt;(); public List&lt;Tabela&gt; getLista() { return lista; } public void setLista(List&lt;Tabela&gt; lista) { this.lista = lista; } private void test() { getLista().add(new Tabela("test", -1.0)); getLista().add(new Tabela("test1", null)); columTabela.setCellValueFactory(new PropertyValueFactory&lt;Tabela, String&gt;("nome")); columSituacao.setCellValueFactory(new PropertyValueFactory&lt;Tabela, Double&gt; ("progresso")); columSituacao.setCellFactory(ProgressBarTableCell.forTableColumn()); tableView.getItems().addAll(FXCollections.observableArrayList(lista)); </code></pre> <p>But now it is necessary to have one beyond progressbar label inside the cell, could not find a solution to this</p> <p>Class table:</p> <p>public class Tabela {</p> <pre><code>private String nome; private Double progresso; public Tabela(String nome, Double progresso) { this.nome = nome; this.progresso = progresso; } public String getNome() { return nome; } public void setNome(String nome) { this.nome = nome; } public Double getProgresso() { return progresso; } public void setProgresso(Double progresso) { this.progresso = progresso; } } </code></pre> <p>While my process is running, you'll have a progressbar in the cell of the table, where the label will change.</p> <p>I appreciate any help..</p>
 

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