0

I am trying to delete row from javafx table by using this code

new AnimationTimer() {
            @Override
            public void handle(long now) {
                int index = RNG.nextInt(table.getItems().size());
                table.getItems().remove(index); 
              }
        }.start();

but deletion performance is very bad.

Any suggestion on how to improve it.

EDIT: I have 48 columns

Uluk Biy
  • 48,655
  • 13
  • 146
  • 153
learner
  • 1,952
  • 7
  • 33
  • 62
  • Can you explain bad performance? Time consuming, freezing, sluggish GUI experience? If you want improve performance, you need to provide more codes? Or try your with a simpler demo code. – Uluk Biy Jun 26 '13 at 10:51
  • 1
    Bad performance in terms of gui freezing and more time consumption, slow scrolling and selection.... you can consider my use case as creating a table with 48 columns of type "order" (mainly object property of different type.). I have provided cellvaluefactory for fast sorting check [this](http://stackoverflow.com/questions/16805845/javafx-tableview-sort-is-really-slow-how-to-improve-sort-speed-as-in-java-swing) – learner Jun 26 '13 at 10:59
  • the same problem happen with me....i am also add more jar for hibernate. – Anshul Parashar Nov 08 '13 at 10:08
  • try to delete by breaking list in two parts one before index and one after index and then combine these two parts – learner Nov 08 '13 at 11:00

0 Answers0