资源简介
javafx删除table行的demo
代码片段和文件信息
package demo;
/**
* @author 于维涛
* @date 2013-3-11
*/
import javafx.beans.property.SimpleStringProperty;
import javafx.scene.control.cell.PropertyValueFactory;
import javafx.application.Application;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.layout.VBox;
import javafx.scene.text.Font;
import javafx.stage.Stage;
import javafx.beans.value.*;
import javafx.beans.*;
import javafx.beans.property.*;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
public class DeleteSelectedRow extends Application {
private IntegerProperty index = new SimpleIntegerProperty();
public final double getIndex() {
return index.get();
}
public final void setIndex(Integer value) {
index.set(value);
}
public IntegerProperty indexProperty() {
return index;
}
public static class Person {
private final SimpleStringProperty firstName;
private final SimpleStringProperty lastName;
private final SimpleStringProperty email;
private Person(String fName String lName String email) {
this.firstName = new SimpleStringProperty(fName);
this.lastName = new SimpleStringProperty(lName);
this.email = new SimpleStringProperty(email);
}
public String getFirstName() {
return firstName.get();
}
public void setFirstName(String fName) {
firstName.set(fName);
}
public String getLastName() {
return lastName.get();
}
public void setLastName(String fName) {
lastName.set(fName);
}
public String getEmail() {
return email.get();
}
public void setEmail(String fName) {
email.set(fName);
}
}
private TableView table = new TableView();
private final ObservableList data =
FXCollections.observableArrayList(
new Person(“Jacob“ “Smith“ “jacob.smith@example.com“)
new Person(“Isabella“ “Johnson“ “isabella.johnson@example.com“)
new Person(“Ethan“ “Williams“ “ethan.williams@example.com“)
new Person(“Emma“ “Jones“ “emma.jones@example.com“)
new Person(“Michael“ “Brown“ “m
相关资源
- javafx版高校人员管理系统
- javafx写的记事本
- JavaFX本质论英文版
- 将jsp页面中的table中的数据导出到ex
- Pro JavaFX 9 A Definitive Guide to Building De
- Java摄像开源框架文档、案例、Jar包、
- javaFX实现的图书馆后台管理系统,有
- javafx 选课系统
- JavaFx实现百度文本框的下拉提示功能
- javafx-8u152-apidocs-api
- Bria Android Tablet Edition
- 基于JavaFx的公寓租赁系统
- 基于Java FX实现的可视化排序算法
- javafx实现的贪吃蛇
- JavaFx2.0 api 手册
- javaFX基础教程及详实
- javafx2.0中文api
- 个人密码管理系统源代码
- javafx组件-中文文档
- Windows7和10亲测可破解myeclipse 2015 sta
- JavaFxchatroom.zip
- 影院管理系统GUI界面
- javafx模拟磁盘管理系统
- JavaFX2.0内建控件教程全部控件
- JavaFX2.0基础教程整合版
- JavaFX 官方中文说明文档及完整DEMO
- 用javafx写的宠物商店
- RIA开发权威指南:基于JavaFX 完整版
- JavaFX的.jar包
- 利用JavaFx实现照片册功能
评论
共有 条评论