Problem
I want to add data dynamically to a TableView and scroll to the new data\'s position. But when the rows in the TableView reach the ViewPort
I dont find a solution but the problem is not about using scrollTo() method it's always happen when you're scroll to bottom (even manually) and increase the window height when the scroll disappear i don't know why need to open a bug ticket
I solved this problem using fixed cells..
listCategory.setFixedCellSize(40);
or
-fx-fixed-cell-size : 40;
Suppress the warning by resetting the log manager:
import javafx.application.*;
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.control.*;
import javafx.scene.control.cell.*;
import javafx.scene.layout.*;
import javafx.beans.property.*;
import javafx.collections.*;
import java.util.logging.LogManager;
public class TableViewSample extends Application {
// ... setup ...
public static void main(String[] args) {
// Suppress the warning message when the Add button is clicked.
LogManager.getLogManager().reset();
launch(args);
}
This will affect the entire application's logger. If that is not desired, change the logging level for the offending class (com.sun.javafx.scene.control.skin.VirtualFlow
) to Level.OFF
.
See also:
Since this is a warning message, it can probably be ignored, and therefore suppressed. As far as I can tell, the new row is added successfully. Here is the offending code that was checked in, which, IMO, violates the principle of least astonishment: