FULL PRODUCT VERSION :
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
OSX El Capitan 10.11.1
A DESCRIPTION OF THE PROBLEM :
I have a tableview for which the -fx-fixed-cell-size style is set. On resizing the window in the width the values of the table appear slowly or sometimes only values of the first row and the others are staying empty.
If i increase the width, that all columns are visible all values appear.
The style is also causing problem, while hiding columns via the TableMenuButton. The separator of the columns just stays visible.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Execute the following program:
public class Test extends Application {
@Override public void start(Stage primaryStage) throws Exception {
TableView<String> tableView = new TableView<>();
tableView.getItems().addAll("row1","row2","row3");
for (int i = 0; i < 10; i++) {
TableColumn<String, String> col = new TableColumn<>("column" + i);
col.setCellValueFactory(param -> new SimpleStringProperty(param.getValue()));
tableView.getColumns().add(col);
}
tableView.setTableMenuButtonVisible(true);
tableView.setStyle("-fx-fixed-cell-size: 24px");
tableView.setPrefWidth(300);
Scene value = new Scene(tableView);
primaryStage.setScene(value);
primaryStage.show();
}
}
2. increase the width of the panel
1. execute program
2. press column edit button in the right top corner
3. hide some columns
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
All values of the table should immediately be visible.
Column should get invisible and separator of the column should disappear.
ACTUAL -
Values of the first row are visible immediately but second and third are staying empty.
The separator of the hidden column stays visible. You can see this, if you change the width of the columns.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class Test extends Application {
@Override public void start(Stage primaryStage) throws Exception {
TableView<String> tableView = new TableView<>();
tableView.getItems().addAll("row1","row2","row3");
for (int i = 0; i < 10; i++) {
TableColumn<String, String> col = new TableColumn<>("column" + i);
col.setCellValueFactory(param -> new SimpleStringProperty(param.getValue()));
tableView.getColumns().add(col);
}
tableView.setTableMenuButtonVisible(true);
tableView.setStyle("-fx-fixed-cell-size: 24px");
tableView.setPrefWidth(300);
Scene value = new Scene(tableView);
primaryStage.setScene(value);
primaryStage.show();
}
}
---------- END SOURCE ----------
java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
OSX El Capitan 10.11.1
A DESCRIPTION OF THE PROBLEM :
I have a tableview for which the -fx-fixed-cell-size style is set. On resizing the window in the width the values of the table appear slowly or sometimes only values of the first row and the others are staying empty.
If i increase the width, that all columns are visible all values appear.
The style is also causing problem, while hiding columns via the TableMenuButton. The separator of the columns just stays visible.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Execute the following program:
public class Test extends Application {
@Override public void start(Stage primaryStage) throws Exception {
TableView<String> tableView = new TableView<>();
tableView.getItems().addAll("row1","row2","row3");
for (int i = 0; i < 10; i++) {
TableColumn<String, String> col = new TableColumn<>("column" + i);
col.setCellValueFactory(param -> new SimpleStringProperty(param.getValue()));
tableView.getColumns().add(col);
}
tableView.setTableMenuButtonVisible(true);
tableView.setStyle("-fx-fixed-cell-size: 24px");
tableView.setPrefWidth(300);
Scene value = new Scene(tableView);
primaryStage.setScene(value);
primaryStage.show();
}
}
2. increase the width of the panel
1. execute program
2. press column edit button in the right top corner
3. hide some columns
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
All values of the table should immediately be visible.
Column should get invisible and separator of the column should disappear.
ACTUAL -
Values of the first row are visible immediately but second and third are staying empty.
The separator of the hidden column stays visible. You can see this, if you change the width of the columns.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public class Test extends Application {
@Override public void start(Stage primaryStage) throws Exception {
TableView<String> tableView = new TableView<>();
tableView.getItems().addAll("row1","row2","row3");
for (int i = 0; i < 10; i++) {
TableColumn<String, String> col = new TableColumn<>("column" + i);
col.setCellValueFactory(param -> new SimpleStringProperty(param.getValue()));
tableView.getColumns().add(col);
}
tableView.setTableMenuButtonVisible(true);
tableView.setStyle("-fx-fixed-cell-size: 24px");
tableView.setPrefWidth(300);
Scene value = new Scene(tableView);
primaryStage.setScene(value);
primaryStage.show();
}
}
---------- END SOURCE ----------
- duplicates
-
JDK-8145503 TableView in SplitPane not rendered correctly
-
- Closed
-
- relates to
-
JDK-8167010 TableView is not displayed after refresh() with fixedCellSize set
-
- Closed
-