| Author |
Optimization algorithm
|
Dmitriy Logov
Greenhorn
Joined: Feb 05, 2012
Posts: 4
|
|
When I press the button "accept" the table is not updated. I use updateUI. But when more than 1000 lines updated 30 times per second - this method is not suitable. Are there ways to optimize?
|
 |
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 3221
|
|
Calling updateUI() is a mistake. That method is to be called after changing the Look&Feel.
There's too much code there that's unrelated to the stated problem. To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example.
edit But I do see that your TableModel implementation doesn't seem to be firing any updates. Fixing that iwll probably solve your problem.
|
luck, db
There are no new questions, but there may be new answers.
|
 |
Dmitriy Logov
Greenhorn
Joined: Feb 05, 2012
Posts: 4
|
|
|
Darryl Burke, сan you give some examples or help to fix my code?
|
 |
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 3221
|
|
|
Go through the source of AbstractTableModel and DefaultTableModel for inspiration.
|
 |
 |
|
|
subject: Optimization algorithm
|
|
|