javafx.scene.control.TableView.setPrefWidth()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(130)

本文整理了Java中javafx.scene.control.TableView.setPrefWidth()方法的一些代码示例,展示了TableView.setPrefWidth()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableView.setPrefWidth()方法的具体详情如下:
包路径:javafx.scene.control.TableView
类名称:TableView
方法名:setPrefWidth

TableView.setPrefWidth介绍

暂无

代码示例

代码示例来源:origin: com.aquafx-project/aquafx

  1. listTable.getStyleClass().add("hide-header");
  2. listTable.setPrefHeight(250);
  3. listTable.setPrefWidth(150);
  4. TableColumn<Person, String> firstNameListCol = new TableColumn<Person, String>("First Name");
  5. firstNameListCol.setMinWidth(100);

代码示例来源:origin: com.aquafx-project/aquafx

  1. TableView<Person> table = new TableView<Person>();
  2. table.setPrefHeight(250);
  3. table.setPrefWidth(650);
  4. table.setEditable(true);
  5. listTable.getStyleClass().add("hide-header");
  6. listTable.setPrefHeight(250);
  7. listTable.setPrefWidth(150);
  8. TableColumn<Person, String> firstNameListCol = new TableColumn<Person, String>("First Name");
  9. firstNameListCol.setMinWidth(100);

代码示例来源:origin: org.jrebirth.af.showcase/todos

  1. this.table.setPrefWidth(240);
  2. this.table.setPrefHeight(300);

代码示例来源:origin: org.jrebirth.af.showcase/todos

  1. this.table.setPrefWidth(240);
  2. this.table.setPrefHeight(300);

代码示例来源:origin: com.intuit.karate/karate-core

  1. this.setPadding(App.PADDING_HOR);
  2. table = new TableView();
  3. table.setPrefWidth(280);
  4. table.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);
  5. setCenter(table);

相关文章