0

I am working with javafx2.2. I am creating a table using tableview, my data is of different type. int,string,float,double have SimpleIntegerProperty, SimpleFloatProperty, SimpleDoubleProperty, SimpleStringproperty

But what to do for long , char , TimeStamp and float sequence.

I need to use these because of sorting performance see this

Thank You

Community
  • 1
  • 1
learner
  • 1,952
  • 7
  • 33
  • 62

1 Answers1

2

You can just create ObjectProperty like that

ObjectProperty<Float> floatObjectProperty = new SimpleObjectProperty<Float>();
ObjectProperty<Long> longObjectProperty = new SimpleObjectProperty<Long>();
ObjectProperty<Timestamp> timestampObjectProperty = new SimpleObjectProperty<Timestamp>();

And use it like any ohter property

agonist_
  • 4,890
  • 6
  • 32
  • 55