Updating JTable Column in real time

Hello:
I have a JTable which has listener listens for a specific event and updates the corresponding column accordingly in real time. This works fine. One small problems though, the user could actually see the redrawing of the JTable sometimes. Most of time, it went so fast, they don't see it, sometimes, user could see it. Why is it?

try
http://www.jgraph.com/pub/api/org/jgraph/event/GraphModelListener.html

Similar Messages

  • Update two columns at a time

    HI can we update two columns at a time by regular update by mentioning two where clauses with respect to the columns

    just need to put a comma between the fields to update them at the same time
    update emp e1
    set e1.ename=upper(e1.ename), e1.sal=(select avg(e2.sal) from emp e2 where e2.deptno=10 group by e2.deptno)
    where e1.deptno=10;cheers ^^.
    PS: at least in the example you have written.
    PS2: sorry didnt put Edited by: Anaita on 31-ene-2011 1:58                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to read updated data from a real-time generated file?

    I have a question:
    I want to read the 10 mostly updated data from a real time generated data file. The data in this file is accumulated. how can i read mostly recently data to an applet? and further to using this data to draw a real-time graph? pls help
    kelvin t.l. tse

    Hi,
    I think there is no "typical" way. You will have to define a convention on how the new data are stored into the file, so as to know how to accessthem. If new data are simply put at theend of your file, you may use a RandomAccessFile to read only those lines that interest you (the 1 final lines).Otherwise, you should at least know how the data file is written.
    You can know if thedata file has been modified with the File.lastModified() method. This retrurns a long value corresponding to the date and hour the file was last modified. Store that value ito you appl. and perdiodically (use a Thread), compare that value with the value returned by lastModief(). If both value are NOt equal, then the file has been updated
    it's all a question of knowing how the data are stored into the datafie generated.
    Be also aware that you will probably have problem when your java appl. tries to read the file at the same time it is updated by the other application. I guess when theother application writes data into the file, you will not be able to read it. So, use try{} catch statements and first check to see if you can read the file with File. canRead(). If not, simply delay the reading process by asking a Thread.yield() or Thread.delay (1000)...
    vincent

  • Trouble getting a subvi to update a graph in real-time on the front panel

    Hi All,
    First post here, so play nice =). I am trying to update a graph on the front panel from within one of my subvis, however it does not update it in real-time. It will only show the completed graph after the subvi finishes running. I have tried to use references/property nodes and I have also tried using my chart as a global variable, but neither of those methods have worked (I am probably doing it wrong). Can anyone provide a detailed walk-through of how to do this using either one of those methods? Or perhaps even a different method?

    ModusPwnens wrote:
    This is how you do it, right?:
    Try this for a quick demo of the reference method:
    Create a VI as shown in the image.
    Select only the while loop and do "edit...create subVI" (as shown). (you will get a subVI that contains the needed connectors and is alread wired to the reference)
    Run the main VI, and the chart will update every 200ms.
    Note that this is only a draft and many things are missing. (For example, the subVI cannot be stopped at the moment. Also, you want a graph, and not a chart.)
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    updateViaSub.PNG ‏32 KB

  • "Activity Monitor" utility does not update the "CPU Time" column in real ti

    If I use Activity Monitor to display "All Processes", why doesn't it update the "CPU Time" column in real time? It updates the "% CPU" and others, but not the total "CPU Time". I have all columns viewed if that matters. However if you double click on a process in the Activity Monitor window, the details about the process are displayed in another window (number of threads, ports, CPU Time, Context Switches, Faults, etc), and as long as that detail window exists, the "CPU Time" column is updated in real time in the main Activity Monitor window. Is this a bug or a feature?? Does Leopard do this also? Have lots of free memory so that is not an issue. Thanks...
    -Bob

    I noticed the same behavior reported by Bob: Not regarding the "process filter" or the "update frequency" selected "CPU Time" column is only updated when details dialog is open. I noticed it just today (which triggered the search here), I wonder if this "feature" has been always present or maybe activity monitor is getting lazy?
    Regards,
    Mauro

  • How can I get updated data in sub VI in real time?

    Hello.
    I'm making application using Labview 7.0.
    What I want to do is the data acquisition changing some parameters. I get the data each time
    I changed variable parameters. I can do it in sub VI by inserting array component into 'for' loop.
    As loop iterates, the parameter sets are changed, and new data is inserted into array by 'replace subset array'.
    New data fills the array by each iteration.
    However, I can't bring this result array to my main.vi. Sub VI gives me the result array only when
    its processes are done. I want to display the data while parameters changing is still on
    the way.
    Are there any solution to get the output of sub VI while the it is not finished yet?

    Hi Joewun:
    Yes, you can update that data in real time.
    It's done using references and property nodes.
    You can Create Reference of an array in your main VI
    In your SubVI, create a new Input to an array reference, and insert a Property Node function into the For where you update the value, and select Value property.
    This way when your array updates in the SubVI you will see the changes in your main VI.
    Attatched Image:
    Left: Main VI
    Right SubVI.
    Aitortxo.
    Attachments:
    Update Array Data from SubVI.png ‏54 KB

  • Real Time update through ODBC

    One of our customers is currently using Lotus Notes to maintain service calls. They want to keep using Lotus Notes while migrating accounting functions to B1. Most of the BP master data will be maintained in B1, but they want to enter comments in Lotus Notes. Is there a way to make the changes in Lotus Notes but update data in B1 in real time, i.e. no other interface for upload? Can this be done by ODBC alone, and would it violate any business rules if this can be done?

    You can't write directly to B1 master data tables with ODBC.
    (see Forbidden, allowed and recommended database issues )
    AFAIK, a feasible workaround might be something like this:
    [code]
    1. in B1 create  a User Defined Table for your comments
    Tools - User Defined Fields - Manage User Fields
            - Click "User Tables"-button on the bottom of
              the form and add your table
            - In matrix:
               - Open "User Tables"
               - select your table
               - Click "Add" to add columns to your table
                    - CardCode
                    - Comments
    2. use ODBC to replicate comments from Lotus Notes
       to your User Defined Table
    you can fill in test data using
            - Tools - User Tables - [YOUR_TABLE]
            - use Tools - Form Settings to make your columns
              visible and enabled
            - Code and Name must be unique
    3. in B1 application create a Formatted Search to the
       field of your choice (for example BP MasterData -Remarks)
    create and save a user query
             SELECT T0.U_Comments
             FROM [dbo].[@SXM_TABLENAME] T0
             WHERE T0.U_CardCode = $[$5.0.0]
    Define the Formatted Search to the field you want
          to see the comments
             - Alt-Ctrl-F2 - Search By Saved Query - Auto
               Refresh When Field Changes - BP Code
    [/code]
    HTH
    Juha

  • Real time ROLAP or Automatic molap cubecube does not update the value

    Hello Everyone,
    I am working with Real time Rolap and Automatic MOLAP cube. I had created cube using AdventureWorks DW sample given by Microsoft Tutorial. when i fire insert query, It updates data. It works fine in both the cases after reconnecting in SSMS and SSAS browser.
    But I have a one database table in SQL server with 4 varchar and 10 numeric fields [simple table with one primary key without any relationship with other table]. I tried to create both type of cube from direct database table [selecting varchar fields as
    dimensions and numeric as measures], created partitions, specified server side tracking table. It processes the cube. but when i add rows into this table. It inserts record but does not update in SSAS browser or SSMS browser.
    Please help me what is the problem???
    Thanks in Advance!

    I noticed the same behavior reported by Bob: Not regarding the "process filter" or the "update frequency" selected "CPU Time" column is only updated when details dialog is open. I noticed it just today (which triggered the search here), I wonder if this "feature" has been always present or maybe activity monitor is getting lazy?
    Regards,
    Mauro

  • Odd behavior on web template used to update real-time cubes

    Hello all
    This is my first time posting on this forum so please excuse any blunders.
    I have a situation wherein 2 queries (one built on an aggregate level which is set up on a multiprovider containing a real-time cube and the other built on an aggregate level set up directly on a real-time cube) are being used to update data. For both of these queries, I'm trying to fill in fields such as user, created by, time, date etc. These fields are being filled in the custom class "ZCL_LOC_CR_LINE_ITEM" and all of the settings are correct for the aggregation level/infoproviders.
    However, I'm encountering 2 problems. Firstly, for one of these queries on the web template, the fields I want filled are not getting filled in by the exit. In fact, I put hard-code break points in the exit's DERIVE method but the control is not even going in there. But for the other query, the control flows into the user-exit correctly when I hit the return key after populating all of the remaining characteristic fields on the input screen. Secondly, for the first query, the fields are not input-enabled. But I've set up both queires to be more or less similar in the sense that the fields to be populated in the user-exit are not on the query screen etc. I'm stumped and would appreciate some help from the experts out there.
    Regards
    Sam

    Regarding yor first quesiton, if the exit is not being reached, then most likely you have not correctly defined the characteristic relationship in the planning modeler.  For it all to work, go to the planning modeler for the infoprovider that you are deriving the characteristics.  Ensure that your source characteristics are all contained in the aggregatin level being used by the planning query in question.  Also ensure that none of the target characteristics are contained in the aggregation level.
    Also, make sure that the "inactive" checkbox is not marked for the individual characteristic relationships.
    Note that whether or not the query is on an multiprovider or a real-time sube, the characteristic relationships are always defined directly on the underlying real-time cube.
    Regarding the second question, for a query to be input-ready:
    -There must be a real-time cube in the query directly (or indirectly via mutliprovider)
    -The query must start up in change mode (or be switched into change mode)
    -Cell(s) must be defined as input ready either by their settings in the row or column
    -Every characteristic in the aggregation level must be fully qualified (including currency,UOM, or any nav attributes used as selections)
    - note that when using a mulitiprovider, it is necessary to specify the real-time infocube name in the planning cell/row/col selections
    If all of the above are met, try drilling down in the query once it is presented and see if anything is unaccounted for

  • Updating a Real-time Infocube

    Hi All,
    In one of the requirements in BPS planning.
    We are using the Exit function for validating the data.
    In our function module we are fetching the data and two of the fields in the cube needs to be modified in the cube after completion of the validations.
    I would like to know if there is any existing functionality or Function module in BPS planning for this for updating the Real-time Info cube.
    Thanks
    Prathish

    Try this link:
    www.geocities.com/cynarad/reference_for_bps_programming.pdf
    In the chapter where table xth_data is described more detailed this can be one possibility to validate your realtime IC.
    Have fun,
    Clemens

  • BT NetProtect plus – Real time scanning and update...

    I have posted this message as both a pointer in case others have the same issue as well as whether anyone has found a proper resolution.
    I have recently experianced problems with my BT NetProtect plus indicating the Real time scanning has stopped and any attempt to restart it does not work. This is accompanied with it keep promptig that there is a new update and to restart the computer. This happened every time I logged on.
    I had spent some considerable time with the BT support people who have now reinstalled the software about 6 time's after the 2 time I had already tried.
    I run Windows 7 64 bit and recently installed an SSD drive. The key thing I have subsequently discovered in my upgrade is that I changed some registry settings to make my default installation location to be my D: drive. I followed this post :
    The 64bit version has two versions of regedit. Make this change as well:
    1.) Enter into Start>Run: %systemroot%\syswow64\regedit 2.) Go to: HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion 3.) Change the Path in DWORDs ProgramFilesDir, ProgramFilesDir (x86) to the new path, probably just changing the drive letter
    Everything works fine apart from BT NetProtect plus which when installed new has the above issue.  If I change the default install location back to C: drive then it installs OK and works OK when I subsequently change the default install location back to the D: drive. When I say works OK, that is until BT NetProtect plus issues a major update when the same problem appears again.
    I am waiting further contact from the 3rd line helpdesk but the 2nd line team did not seam to know of this problem.
    Has anyone else experenced it or know of a proper solution ?

    A full McAfee scan on my desktop PC can take about 2 hours or so and a full scan sometimes slows down my over 3 year old desktop PC. Thats why I only do a full McAfee scan every once in a while but I do a quick McAfee scan every 6 or 7 days.
    I do like the McAfee shredder though and use that now and again. I also got McAfee quick clean set to run at lest twice a week.  
    I have used Norton in the past and that slowed down my last PC more than McAfee from BT. The free version of AVG is good but its only an anti-virus. Some say the windows firewall is ok but not the best.
    I also have windows defender set to do a quick scan every evening around 9pm. As most nights I have my Desktop PC on at that time.
    I also do a disk clean up at leat once a day.
    Darren

  • Update real time account general data into a custom table

    Hi,
    I have created a z table for storing account general data for some business requirement. I have created a program and executing batch job to update this z table on periodic basis. Can anyone suggest some other alternative solution to update this z table whenever an account gets created/modified in CRM system? Instead of running a batch job periodically, I need a real time replication of the account data in this custom table.
    Thanks and Regards,
    Sneha.

    Hi,
    Thanks for your reply.
    But, Can you elaborate the solution, Can we use Business Transaction Events(BTEs) for updating Partner data? Will these be triggered for Account Creation/Modification. If so, Can u suggest any BTE which can be used for my requirement?
    Thanks and Regards,
    Sneha.

  • Edit in datasheet field is not updated in real time

    Hello,
    I have SharePoint 2007, a list viewed in Edit in DataSheet and a workflow attached to the list which updates a field FirstTitle in the list when the item is created. 
    The problem is that, while in Edit in Datasheet view, the field FirstTitle is not updated in real time so the workflow starts again and again because the field is still viewed as empty. The users keep receiving the error message "Your changes conflict
    with those made concurrently by another user" (the other user being actually themselves). So they have to exit Edit in Datasheet and enter again in order to have FirstTitle field refreshed and that is annoying and totally unproductive.  
    I tried from SharePoint designer different checks, I used different actions like wait until item is changed and then stop but nothing worked. Is there any workaround to this ?
    Thanks in advance,
    Teddy
    Able was I ere I saw Elba

    Thanks for sharing the answer here, it is really helpful for others with the similar issue.
    Qiao Wei
    TechNet Community Support

  • Smart Mailboxes: Why don't they update in real time?

    I have a Smart Mailbox that shows me any Unread messages i have. As i read these messages, they become Read messages, yet they remain in the Smart Mailbox. Is there any way to initiate a real time update to these so that I am not required to switch Smart Mailboxes to initiate the update.
    Not very 'smart' are they…
    Any solutions are welcome.d

    sphereboy wrote:
    That all sounds correct on paper. But in real life it just doesn't work out that way. Let's say I have 20 Unread messages in my Unread SmartMailbox. As I read each message they become Read messages. The messages do not automatically clear this mailbox. They stay there in a Read status inside the Unread Smart Mailbox. The only way I can update the mailbox is by switching over to another mailbox, any mailbox, and back to my Unread Smart Mailbox and then it properly shows only Unread messages.
    And that is the correct action...the update trigger is when you move out of one and into another (acts as a confirmation that you're done).
    Seems appropriate and a small price to pay. It would seem to be a burden if otherwise as it would always be working while you were trying to read....can't have everything at once

  • Dynamic Update in real time with slider control

    We have requirements to display complex data in a graphical format. So far this has gone well by leveraging ADF and DVT components (dvt:Map, dvt:gauge, dvt:bargraph, af:tables, af:inputNumberSlider, etc.); however, we recently have been asked to add real-time animation of these controls over time. In brief, the user requires the ability to control the on-screen visualization of data by sliding the control on an af:inputNumberSlider (or equivalent) that represents a multi-month time scale. While sliding this control, the user expects to see the data visualization controls dynamically update in real time, keeping up with the rate at which the user moves the slider control. Think of this like a flip book animation where the slider controls the page the user is looking at and they can flip through the pages forwards or backwards at any desired speed. The time slider increments are one hour.
    Our current application architecture:
    Oracle ADF Fusion Web Application (v 11.1.1.5)
    EJB 3.0
    Eclipselink
    Oracle 11g
    Any kind of help is highly appreciated.
    Thanks,
    Mehabub

    Hi,
    the af:inputNumberSlider does not provide this functionality. Your alternative is a custom component (or any component that raises a client JS event) and call an af:serverListener in a custom event to send the notification to the server.
    Frank

Maybe you are looking for