按日期在tableview JavaFX中加入项目

时间:2015-04-03 15:07:17

标签: javafx tableview

我有一个tableview,其中有一些项目date joineddate joined表单为dd nameOfMonth, yyy,我如何按date joined对项目进行排序?

以下是我的项目类的代码部分:

    public static class Person1 {

    private StringProperty firstName;
    private StringProperty joined;

    public Person1(String firstName, String joined) {
        this.firstName = new SimpleStringProperty(firstName);
        this.joined = new SimpleStringProperty(joined);
    }
    public StringProperty firstNameProperty() {
        return firstName;
    }

    public StringProperty joinedProperty(){
        return joined;
    }
}

0 个答案:

没有答案