aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Optimization algorithm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Optimization algorithm" Watch "Optimization algorithm" New topic
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: 4642
    
    5

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: 4642
    
    5

Go through the source of AbstractTableModel and DefaultTableModel for inspiration.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Optimization algorithm