So, I have an expensive sort that can use IO or capture data from the network to help sort.
My problem is that the JTable sort is in the event stream and therefore freezes the GUI.
How can I change it so that he does not?
I had a solution that I forgot to post. But still it was not perfect, so in the end I just used a table library.
Glazed lists are pretty good at sorting and viewing large datasets: http://www.glazedlists.com/
Java 6 RowSorter. , , , ( ).
RowSorter
You can start a new thread and pass an anonymous Runnable instance:
new Thread(new Runnable() { public void run() { //Sort the JTable } }).start();
Source: https://habr.com/ru/post/1790291/More articles:Using jQuery on sites like Gmail or Facebook - javascriptGetting early control of a large file upload request - c #Spring access to UserDetailsService security from deeper layers - javaКак создать неуязвимый раздел (или файл) реестра в С++ - c++How to create anonymous IDispatch functions using ATL? - winapi3D manipulation in augmented reality - augmented-realityCreating a stored procedure with a variable number of parameters - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1790294/websphere-7-portal-servlet-checking-for-login-status-to-portal&usg=ALkJrhhwLN9U3CuWZsFK_PH6bJAkmn2gkAChange the time by pressing. beat in the windows - windows-7How to pass a variable to an inner class? - javaAll Articles