How to check for database updation?

Hi All,
I have a JTable in my Porgram.Wherein JTable displays all the records from a particular table.As and when the database is getting new records ,I want my JTable also to be updated .How can i do that?
can i use a Timer?
Thanks,
Aarthy

Not sure if this works, but I think it should:
Create a timer
public static final int INTERVAL = somevalue;
timer = new Timer(INTERVAL, new ActionListener() {
               public void actionPerformed(ActionEvent evt) {
if (done) {
timer.stop();
model.setDataVector(....,....);
suppose the method you are running is call theMethod(), then:
     class ActualTask {
          ActualTask() {
     theMethod();
done = true;
     public void go() {    //download the swingworker class from http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html
          final SwingWorker worker = new SwingWorker() {
               public Object construct() {
                    done = false;
timer.start();
                    return new ActualTask();
          worker.start();     
So, this is running the timer on a thread. You can do other stuff at the same time.

Similar Messages

  • How to check for updates on SCM packages?

    Hey guys,
    I wondered for some time now how to check for updates on SCM packages, i.e. -git
    or -svn ones. Updates for binary packages are automatically updated by pacman,
    no problem there. Checking for updates on non-SCM packages from the AUR is
    easily done with one of the various helper tools available (personally, I use
    slurpy).
    However, SCM packages can change without their PKGBUILD changing, so I'm not
    notified that I should recompile and update them.
    Is there a "proper" way of doing this? Am I missing something?
    Thanks in advance!

    If your system is booting then u can say that your bootblks are installed.Usually BootBlks are present in 0 & 1 slice of UFS Filesystem
    /usr/platform/platform-name/lib/fs/ufs
    directory where ufs boot objects reside.
    An x86 FDISK partition for the Solaris software begins with a one-cylinder boot slice, which contains the partition boot program (pboot) in the first sector, the standard Solaris disk label and volume table of contents (VTOC) in the second and third sectors, and the bootblk program in the fourth and subsequent sectors. When the FDISK partition for the Solaris software is the active partition, the master boot program (mboot) reads the partition boot program in the first sector into memory and jumps to it. It in turn reads the bootblk program into memory and jumps to it. Regardless of the type of the active partition, if the drive contains multiple FDISK partitions, the user is given the opportunity to reboot another partition.

  • I just bought more Ram how do I check for bios updates before I install it?

    I purchased 2 4GBs 200 PIN DDR2 of memory  from Crucial to upgrade my Pavillion notebook dv4t 1400 from 4 to 8 gbs
    Series (DDR2)  ( p/n NS244AV)
    I'm running Win 7 Ultimate 64bit service pack 1
    The directions say I need to check for bios updates with the maufacturer to see if I need to flash the bios before I install the new memory. How do I do that?
    thank you for your help
    This question was solved.
    View Solution.

    Please see "Updating the BIOS" to determine the current BIOS version installed and how to update the BIOS if needed. Please see the HP Pavilion dv4t-1400 CTO Entertainment Notebook PC Drivers & Downloads page for the most current BIOS version available for your computer. Click HP Notebook System BIOS Update (Intel Processors) version: F.66 A for a direct link to the BIOS download page.
    Please click the white KUDOS star to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • In ecatt - how to check at database level using ABAP

    Hi,
    How to check at database level using ABAP in Ecatt tool.
    say,for example I want to check a particular sales order is invoiced or not ,at the database level and if it is invoiced I have stop proceeding to invoicing of that sales order number.
    Could anybody suggest on this with an example?
    thanks.

    Hi,
    you can use the command GETTAB to access single db records.
    Full specified or partitial specified keys can be use at GETTAB. It will return always only one record, also if a couple could match your selection.
    For more advanced scenarios you can also use eCATTs Inline ABAP. In a block between the commands ABAP. ENDABAP. you can code ABAP statements, e.g. SELECT ... INTO TABLE ...
    eCATT script parameters of type 'V' defined in that script using ABAP/ENDABAP will be transfered into the ABAP block and back to script after ABAP perform.
    Best regards
    Jens

  • I upgraded to Mountain Lion yesterday, but since doing so I find that my 1Password app will not work. I have checked for 1Password updates but there are none. Is there a compatibility issue

    I upgraded to Mountain Lion yesterday, but since doing so I find that my 1Password app will not work. I have checked for 1Password updates but there are none. Is there a compatibility issue

    Hmmm...I'm using 1Password Version 3.8.20 (build 31499) with a fresh install (scrape and pave) of Mt. Lion on my iMac and it's working fine.
    I use Dropbox to sync 1Password so for my fresh install I simply downloaded 1Password from Agilbits website and installed it.
    Have you tried reinstalling 1Password?  Depending on how you purchased it, download it from their website or from the Mac App store to reinstall/replace it.  (IIRC v3.8.x comes directly from Agilbits and v3.9 from the Mac App store.)  You shouldn't have to uninstall it, the new download should overwrite the existing copy.
    As with anything else, be sure to run a  backup first!
    More here:
    http://support.agilebits.com/discussions/1password-38-for-mac-from-agilebits-web site/17861-finding-existing-data-file-when-reinstalling-1password
    http://support.agilebits.com/discussions/1password-in-mac-app-store/3377-how-to- reinstall
    http://support.agilebits.com/discussions/1password-38-for-mac-from-agilebits-web site/13769-reinstall
    http://support.agilebits.com/discussions/1password-in-mac-app-store/2394-reinsta lling-1-password
    Hope that helps.
    D'oh!  Mende1 beat me to it! 

  • Check for Clause Updates ....

    Hello:
    In PO - Buyer Work Center (R12.0.6), When I do a check for clause updates, the system displays all the latest clauses from the library.
    On selecting a clause and applying it, I get the latest clauses.
    However, I want to revert it and get the original clause back.
    How do I do this ... ?
    Y

    Hello
    After you Check for Clause Updates and apply it, you cannot revert back to the original clause.
    The outcome is final and cannot be reversed.
    Even if you were to reapply the template it would still bring in the latest version of the clauses
    Thanks,
    Swarna K Duttagupta

  • Getting "The operation couldn't be completed. (NSURLErrorDomain error -1100.)" when trying to check for software updates

    Does anyone know how to resolve this problem?  I get "The operation couldn’t be completed. (NSURLErrorDomain error -1100.)" when trying to check for softward updates on my iMac.  I have the latest version of Mountain Lion installed.

    Apparently a server overload > NSURLErrorDomain error -1100
    Try again later.

  • HT4623 I Can't able to download IOS 7. I n my software update it is giving an error " Unable to check for updates. An error occured while checking for software update". What can be done for this error?

    I Can't able to download IOS 7. I n my software update it is giving an error " Unable to check for updates. An error occured while checking for software update". What can be done for this error?

    Me too having the same thing what's the solution for this how can I update

  • My iPhone is not receiving mail but these messages continue to flash at the bottom of the screen:  Checking for messages, Updated just now, checking for messages, etc.  After a minute or so it will flash downloading 1 - 32 messages but nothing is received

    My iPhone is not receiving mail but the following messages continue to flash over and over at the bottom of the screen:  "Checking for messages, Updated just now, Checking for messages", etc.  After a minute or so it will flash downloading 1 - 32 messages but nothing is received and then the "Checking for Messages," etc. starts back again.   I turned the phone off for 30+ minutes and also tried to reset it, but the problem continues.   Any ideas on how to solve the problem?

    Double click the home button and swipe up the messages app to stop it, then open the app again. This pretty much completely stops the process and freshly opens it again, resolving problems at times. I have had this happen before as well on my iPad, I get a banner, check messages, and nothing new is there.
    If that doesn't work, close the app like suggested above, but then restart the phone by holding down the home and lock button for 10-15 seconds until the apple logo appears.

  • Sound not working after checking for driver updates and resetting bios

    I am running a  (HP Pavilion dv7-6c60us Entertainment Notebook PC)
    I had muted the sound and did a system upgrad prompted by my HP assistant after logging on.   Now when I try to get sound nothing happens.  So I went out to the support site and checked for driver updates and none were found.  So I then went into my system bios and reset it as stated in a support for sound not working and still no sound.   HOW DO I GET MY SOUND TO WORK AGAIN?

     From your models support page Download & Save the latest Audio driver.Go into Control Panel,Programs & Features- Uninstall IDT software.Restart the laptop. After Windows loads, install IDT audio using the downloaded file.
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4063&lc=en&cc=us&dlc=en&sw_lang=&product=5218...
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • AnyConnect hangs when checking for required updates

    Several of our customers require us to use Cisco AnyConnect to connect to their computers.  I cannot connect to any of them because AnyConnect hangs when checking for required updates.  If I start AnyConnect myself, it will eventually (after five minutes) tell me that it cannot connect to a server.  If it is started from a web page, AnyConnect hangs forever.
    In the past, this error has been random.  If I try later, or the next day, it may work.  Or it may not.
    No customer has been able to give us any support on this issue.
    Could you please give me some ideas on how to overcome this problem?
    Thank you very much.

    Disable anti virus software if installed
    Make sure the firewall is turned off in System Preferences > Security & Privacy > Firewall
    Make sure Gatekeeper is enabled
    Open System Preferences > Security & Privacy then select the General tab.
    Make sure either Mac App Store or Mac App Store and identified developers is selected. If that area is grayed out, click the padlock icon to proceed.
    OS X: About Gatekeeper

  • How to check for impacts due to upgrade

    We are plannining to upgrade from 4.7 to ECC6..How to check for impacts on FTP'S,shell scripts and RFC's etc due to the assesment..Please suggest

    Hi,
    FTP's and Shell scripts are OS dependant not SAP or Database dependant so there will be no change at all unless you upgrade OS too. RFC's are not afected as per guides, notes and my experience.
    I´m doing an upgrade from 4.6C to 6.0 with connections with at least 10 systems and none of them had an issue during tests
    Good luck

  • Could someone please explain how to check for flashback, to a beginner?

    Could someone please explain how to check for flashback, to a beginner?  Thanks.

    Install all of the available software updates.  If you have flashback it will be automatically removed.

  • How to check for a function module with its description and functionality

    Hi all,
    How to check for a function module,with its description and its functionality,in detail how can I know the purpose of a particular function module,how to search for a function module which suits my requirement .

    Hi,
    You can search a FM of your requirement by putting in the Key words and searching for a FM. Like * KEYWORD * and then pressing F4.
    Say for example you need to search something regarding converstion.
    Search for * CONVERT * and press F4.
    If there is something specfic like converting date to something you can give
    DATE * CONVERT *
    OR
    CONVERT * DATE *  and press F4.
    Once you narrow down your search you will have a Function module documentation inside the Function module. Please note that all the FMs willl not have documentation.
    Regards,
    Pramod

  • Want to know how to check for new line character in text file

    Hi All,
    I`m trying to read data from text file. However I`m not sure whether the data is in 1st line or nth line. Now I`m trying to read the text from the readline. But if text is "" and not NULL then my code fails. So I want to know how to check for new line character and go to next line to find the data. Please help.
    Thanks
    static int readandwriteFile(Logger logger,String filepath){
              BufferedWriter out = null;
              BufferedReader in = null;
              File fr = null;
              int get_count = 0;
              try     {
              if(new File(filepath).exists())
              fr= new File(filepath);
                        System.out.println("FileName: "+fr);
                   if(fr != null){
    in = new BufferedReader(new FileReader(fr));
                             String text = in.readLine();
                             if(text != null){
                             get_count = Integer.parseInt(text);
                             in.close();
                             else{
                                  get_count = 0;
         else{                    
    out = new BufferedWriter(new FileWriter(filepath));
         out.write("0");
                out.close();
                   }          //Reading of the row count file ended.
              catch(Exception e) {
                   e.printStackTrace();
              finally {
                   try{               if (in != null) {
                             in.close();
              if (out != null) {
                             out.close();
              catch(Exception e) {
                        e.printStackTrace();
              return get_count;
         }

    You are calling the readline() only once which means you are reading only the first line from the file...
    Use a loop (Do-While preferably)
    do{
    //your code
    }while(text == "")

Maybe you are looking for

  • Lack of clarity in community guidelines

    As I was going through the language learning section, I noticed that a moderator had edited out the skype name in someone's post, but not the blaringly obvious gender specific contact and the request for a relationship.  I then went and checked the c

  • What's wrong with my code for a video embed?

    Hi all, I've embedded a video using Dreamweaver CS5 onto my site and the code is: <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=10,1,1,0" width="176" h

  • Using 1 movieclip in multiple swf's. possible?

    Ls, I was wondering if it is possible to have a movieclip that you can like export and then share in multiple .swf files. This, without importing them from external libraries in the .fla files afcourse. So like i have a movieclip containing different

  • Can't Search Trhough an Array Twice

    Hey all. I'm trying to write a a sort of phonebook program that takes in the first name and the last name of a person, and then searches trough the phonebook for it. This is the program: class PhoneEntry   String FirstName;    // first name of a pers

  • SAP MM / RFQ integration with Ariba Sourcing

    Hello, I am looking for the latest update on how to transform SAP RFQ into Ariba Sourcing event. From my knowledge it could be done using "Spot Quote", that is the RFQ created in ERP ECC are first converted into "Spot Quotes" which are then replicate