Automatic database update of JTable

Greetings. I'm here because I want to do this and I don't know how to start.

I do an application that needs a JTable with data from an existing database. I need the table to periodically (I intend to use a timer) reflect the changes to the DB (insert new lines, deletion, or update existing lines) without making the dirty of the JTable together approach clearing and filling it again, which is not pleasant. I must just add/change/remove the necessary lines, not all of the table.

periflo90 wrote:

I need optimization for two reasons: less impact on the user (I mean, the table, take the refresh time is very ugly) and computers that are using my application are quite old. On records, I expected at this table, I expect to be hundreds or thousands.

That means you cannot show them both on screen anyway. Then you should think about pagination.

You're right about the separate thread, it will be better. Because my application GUI is prepared with swing, can I use a SwingWorker or regular NET? I'm quite new to competitive access.

Use of Threads is quite easy in Java. When you design an application Swing under you should have used wire already. If you idn can't you did all your work inside the event Dispatching Thread which will be bock your request effectively when you work any longer. And Yes, SwingWorker is an appropriate tool.

On the last questions, no, the table has these identifiers.

Your request is then impossible. How will you know the differences without either all data back to the database or to reload all the data to make the comparison on the client side.

I think that the background loading is your best option.

Good bye

DPT

Tags: Java

Similar Questions

  • Automate the update of Windows Server R2 2012

    Hi all

    I am currently looking for a method to update automatically to our servers. Rather than use Windows update to install and reboot servers, I want to be able to automate the download and install the updates, but to impose when the server reboots automatically. I know that WSUS automatically installs updates but I don't think there is a way to control when the server should restart. Also apart from that, I know that servers come online without having to login to them manually. I think that the only way to go about this is with a script.

    Any help or insight is most appreciated. Thank you.

    It is a forum for specific consumers.

    You will find the Windows Server support in these forums: http://social.technet.microsoft.com/Forums/windowsserver/en-US/home

    You will find support for WSUS in this forum: http://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverwsus

  • Is Windows XP automatic Driver Update Utility Download safe to use?

    Should I start the download for this automatic driver Update Utility

    for Windows XP Driver Downloads that suddenly popped up on my screen? Is it safe and legitimate?  This is the site web http://www.driverupdate.net/articles/xp_download/windows-xp-driver-downloads.php?aps=winXPtextsplit2.  Thank you in advance, Slowbutsure :~)

    Hello

    The problem with the automatic driver update utilities is they will fail all ultimately and

    sometimes with spectacular results (bad). So I recommend only utilities that help
    determine what drivers are loaded and help find sites of the manufacturer of the device
    where they are.

    This utility, it is easy see which versions are loaded:

    DriverView execution - Set VIEW of Microsoft drivers hide - update those without drain in their
    names.

    -Free - DriverView utility displays the list of all device drivers currently loaded on your system.
    For each driver in the list, additional useful information is displayed: load address of the driver,
    Description, version, product name, company that created the driver and more.
    http://www.NirSoft.NET/utils/DriverView.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Why my Windows defender updates itself automatically? I last updated and also I do not Windows update to automatically install updates.

    Why my Windows defender updates itself automatically? I last updated and also I do not Windows update to automatically install updates.

    Hey open58,

    Follow this link here to understand why Windows automatically updates itself, even if you do not assign it. I'm a bit confused about your real question so if it is not answered please just ask him one more time and I'll try again.
    Thanks for posting of Microsoft Answers!
  • TMS - automatically check updates question

    Hello

    I tried searching online but that isn't a direct response to this problem, with what I am currently blocked, he has been mentioned here https://supportforums.cisco.com/discussion/11251221/telepresence-managem...

    I have followed the instructions but still have the same issue where the MSDS cannot automatically download new software.

    My TMS version is 14.2.2

    When the automatic software update is set to Yes, TMS tries to download the software and then I got an error message (see below)

    Event log
    29/04/2016 14:25 - created event
    29/04/2016 14:26 - events executed by XXXXXXXXXXX
    29/04/2016 14:26 - check for software updates began. Connection for the update service.
    29/04/2016 14:28 - checking for updates failed. Please see the logs for more details. Note that MSDS must have access to the internet to communicate with the software update service.

    The server is connected to the Internet, even when you try to use a proxy TMS still can not download a new software.

    Someone else maybe solved a similar problem to mine.

    Concerning

    Starting with TC6.1 and later, TMS will download is no longer automatically TC software, this is due to a change in the verification procedure and download of these versions of the software.  When the new TC software is released, you will need to log in to Cisco.com and download the software yourself and then transfer it to your TMS servers.

    New procedure to download software for the endpoints of telepresence running TC software

  • How to manipulate the apex error to avoid lost database updates?

    Hello


    I'm looking for a way to manipulate the user error message hostile apex to avoid lost database updates. It seems that the message to the error handling function is not routed.


    Any ideas?


    THX.

    Gerd

    Hello

    Try the APEX error code. DATA_HAS_CHANGED

    Kind regards

    Jari

  • automate the update of customfield

    Hi Experts,

    I need help to automate the update of the custom attributes of annotation by importing the name of the virtual machine on the first column and using the new value on the product field on the 2nd column to a csv file.

    (csv file)

    Name | Product

    VM1. Test1

    VM2 | test2

    The custom attribute annotation must be:

    (Section summary Annotations)

    VM1 > product: test1

    VM2 > product: test2

    what I have in mind is the csv import, name, and values, and then perform a loop of this

    Get - VM VM2 | Game-CustomField-name test1 product-value

    Thank you very much.

    See you soon

    You mean something like this?

    foreach ($row in (Import-Csv-csv of entry, path - UseCulture)) {}

    Get-VM-name $row. Name | Game-CustomField-name of the product-value $row. Product

    }

  • SUBSCRIPTION of LIGHTROOM: If I continue with Lightroom CC for another year, I automatically gets updated to the latest version?

    Hello...

    My annual subscriotion of Lightroom is almost over. If I continue with Lightroom CC for another year, will I automatically receive updates to the latest version with additional development features or I stay with the version Loghyroom that I'm subscribed to return in January 2015?

    Thank you very much.

    Hi PhotosbyRob,

    You will get all updates that might be coming as long as you continue your subscription.

    Kind regards

    Claes

  • How to block the automatic Flash updates?

    How to block the automatic Flash updates?  Blocking possible updates in the registry? If Yes, then how?

    These questions are in reference to a work environment where Flash updates will be deployed by SCCM.

    Please see the section 'Update' chapter 4 'Administration' in our administrator's guide - http://www.adobe.com/devnet/flashplayer/articles/flash_player_admin_guide.html

  • upgrades of vcenter 5.0.1b to 5.0.2 (5.0 update 2) includes the schema of database update/upgrade?

    upgrades of vcenter 5.0.1b to 5.0.2 (5.0 update 2) includes the schema of database update/upgrade?

    Hello

    I'd be surprised if there is one, but have you checked with the database audit tool?

    http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2004286 - mentions not required for minor updates but still should be able to run it.

    Many tx

  • automatic column update

    I have a table called indicator_dimensions, and in this table, the columns as create_date create_user, modified_user, modified_date. and based on this table, I created a report. what I want is mentioned 4 columns automatically updated in the database, based on one that has creatied that this dimension will be the create_user and when will be the create_date and one who modifies this dimension will be the modifed_user and when will be the modified_date. is it possible to do like that.

    This is the code of my report
    select 
    "IND_DIM_ID",
    "IND_DIM_ID" IND_DIM_ID_DISPLAY,
    "INDICATOR",
    "DIMENSION_ID",
    "CREA_DATE",
    "CREA_USER",
    "MODI_DATE",
    "MODI_USER",
    "IS_PREDICATE"
    from "#OWNER#"."INDICATOR_DIMENSIONS"
    where indicator=:P54_indicator

    Hello

    You have already almost exactly same trigger.

    You could fix nvl (v ('USER'), USER) to be nvl (v ('APP_USER'), USER)

    BR, Jari

  • Automatic product update always XUL files. DLL deleted by Norton AV, resulting in death Ffox, the only solution is to use IE to reinstall Norton OK with XUL from Mozilla. DLL here

    Each time Firefox auto-updated runs Norton360 detects a virus in the file update xul.dll (virus is identified as: Suspicious.Cloud.9.B a heuristic virus) and removes the file "Mozilla firefox/getting updated. When Firefox tries to restart it inevitably crashes. I then load another browser to download Firefox on the Mozilla site. This version (supposed to be identical to the version used by auto-update) install without complaining of Norton360 (Note: Firefox keeps its previous settings OK).
    1. is there a difference between the two versions of xul.dll?
    2 xul.dll file contains a virus?
    and
    3. How can I get an auto-update to work the first time?

    I have lived this error condition for several recent updates of FireFox (38.0.5 Funnelcake June 2015 Mozilla 1.0 - 39). My security system is provided by Comcast Norton Security Suite ver 22.5.2.15, on a Win XP installation. Now when we announce an automatic update of FireFox, I avoid this error by 1) disabling NSS Auto Protect, 2) installation of the latest update of FireFox 3.) Re-activation NSS Auto Protect. There is no warning message and the update FireFox works unremarkably.

  • Firefox ask me to apply a critical update, he always tries to connect to the database update without success. What can I do?

    For a week now, when I run Firefox a windows prompts me to apply critical updates, I click Next and says he is trying to connect to the update database, but it can also take all day by showing attempts but do not go anywhere. What can I do? Thank you

    You are welcome.

    Could you please click on the button "solved it' next to the post that solved the problem for you? This will help others looking for a solution to the issue.

    Thank you.

  • Z930 Portege - Toshiba offers a sort of automatic driver update software?

    Hello

    I have Z930 from Portage and I was wondering of TOSHIBa offer a sort of automatic update driver software?

    For example on mu Lenovo or my office (MSI), I have apps that check currently installed version of the drivers with one that is available on WWW and allow to download and install the latest.

    Toshiba offers similar software?

    Thanks for the reply
    Best regards

    Yes, tools like gas stations or Tempro informs you about new drivers available for the Toshiba laptop.

    Usually such tools are already preinstalled on the laptop. In my case the Toshiba Service Station was already installed by default.

  • Automatic after update 6.5 does not respect the ID_FLUX

    Hello!

    Once the update to 6.5 automatic does not seem to respect the parameters of ID_FLUX. At least for recently added items, only it looks overall of all foods, no juice in the ID_FLUX defined in the config file

    Strange, I deleted the new show elements and add them manually (previously it was copy-and - paste to Evernote) and doesn't work very well.

    I have a suspicion some characters have been copied with codes utf frong and unrecognized by the application correctly.

Maybe you are looking for