Dynamic update of text from JTree manipulation

Hi I working on an application that uses both a JTree and text view at the same time.
What I want to do is everytime a node is added/edited/removed from the JTree the text for that node is dynamically updated in the tree view.
At the moment what I do is everytime something is edited in the JTree the whole text is re-written. This is causing the program to slow down for large files.
What I have thought of doing is producing the text for only the edited node, however this may affect others node, for example if a child node is added the parent node needs a closing tag.
Is there anyway I could possibly do this?
An alternative I had thought of was, because it is the syntax highlighting that is taking the time. I thought I could produce the full text for the edited tree then compare it to the pre-editted text. Then only sytax highlight the difference and add it to the text view. Would this be possible?
Cheers Alex

On 04 Apr 2007 in macromedia.dreamweaver.appdev, DrBlanston
wrote:
> I am trying to figure out a way to update certain fields
on my ASP
> pages based on input from different fields. For
instance, I am
> writing a program with an SQL 2005 database underneath.
This
> program takes data from fields that the user will input
and needs to
> update another field with a calculated result, then
update the
> database.
>
> Example,
>
> TaxRateField * SquareFootage = BilledAmount
> (where all three of these fields are in the table)
>
> When a new record page is there for the end user, I want
them to be
> able to select a rate code (which has a
factor/multiplyer associated
> with it), then enter the Square footage, and have the
> BilledAmount field automatically calculated. So when
they hit the
> submit button, all three values are inserted into the
database.
>
> Any suggestions?
Just enter the rate and the square footage; do the
calculation when you
pull the data from the database. In general, you don't want
information stored in a database which depends on other
information (ie
calculated fields). The prime example is calculating an age
when you
get Date of Birth information.
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php

Similar Messages

  • Dynamic update another html from pop

    Hi,
    I have a main html(jsp) page which calls a pop up window to let user to add some items.
    When user finished adding items in popup window, how can I update the main page(to show some items, like the finished uploading of attachment in "Yahoo Compose Mail") without refreshing the whole screen.
    This question seems much more related to dynamic html(I don't know)
    and anyway hopes someone can give me some advices?
    thank
    john

    Hi,
    dynamic update another html from pop???In this situation you can make use of Scripts like JavaScript or
    VBScript for updating the mail html browser content from popup window.
    These scripts provides access to objects like parent window..
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support/

  • Stop dynamic updating of ldap from radius

    We use iPlanet v.4.12 ldap server with radius extensions. At some point in time we have started dynamic updating of the ldap server with session information from the radius server and now I can't find out how to turn off this dynamic updating. I have removed the check mark beside Dynamic accounting in the console configuration page for the radius server, but am still getting the following error messages by the thousand
    [18/Dec/2002:17:39:13 +0100] - add value for type dynamicipaddress failed: duplicate value
    [18/Dec/2002:17:39:13 +0100] - add value for type dynamicsessionid failed: duplicate value
    Can anyone give me a detailed method of turning off this feature please.
    TIA
    James

    Solved this.
    When you turn off dynamic accounting in the console, the schema is changed from Dynamic=yes to Dynamic=false. I went in and manually adjusted the schema to Dynamic=no and dynamic accounting was finally turned off.
    Just in case anyone else has the same problem.
    mvh/regards
    James

  • Is Dynamic Loading of Text from an external file possible in Captivate?

    Hello all,
    I am wondering if Dynamic loading of text is possible in captivate or not.
    As we can load an external file in flash.
    & which is the universal font to be used for the text entry box which will visible on any media?
    Thanks & Regards,
    Chirag

    Hello,
    I'm not a specialist about JavaScript. Have a look at Jim Leichliter's blog:
    http://captivatedev.com/
    Lilybiri

  • Issue with loading updated 0version texts from R/3

    Hi Experts,
    I am currently working on 3.5.
    There are 15 records for version txts in BW in which 5 records are updated in R/3.
    I scheduled the job in BW to get the changed records. But I still see the old texts.
    I tried to check the changed txts in Master data table for version texts TKTVS.
    but the txts are not updated in that table. They are in TKT09.
    Now do I have to create a generic datasource on TKT09 and write a routine to get that 5 changed records ? If so could anybody help me with the routine.
    Or is there  any other way to get the data into BW.
    Please Advice.
    Many thanks in advance.

    Are you using the standard Datasource to load "0VERSION" data?
    If so, after making the full load for the texts, aren't the values updated in BW?
    Regards,
    Luis

  • Dynamic Values for text

    I apologize in advance.  Not much of a web designer or code guy here, but I just need to create a simple animation to be dropped into a MUSE creation and I think Edge Animate is the right way to do it.  For the life of me I cannot figure out how.
    Basically, I want to create a simple animation to explain the dimensions of a product.  A line with arrows on both ends would grow to the length of a line drawing symbolizing its height for example.
    Accompanying that would be a text box that I would like to simply count up from 0.0" to 3.5" for instance.
    The question is how do I dynamically update the text from 0.0 to 3.5 across a 2 second animation in Edge Animate?
    Is this even available or is this why people are still using Flash.
    Thanks in advance and apologies for the naivety!
    Karl

    Hi Karl,
    No naive at all : a very interesting exercise.
    We use three elements
    • a rectangular shape ;
    • a diamond cursor that moves along the shape (2 s tweening) ;
    • a text value element.
    1) The first solution leverages the update event that is fired by the timeline.
    First define constants that you can modify to your needs.
    Stage > creationComplete event handler :
    endValue = 35;
    duration = 2000; // 2000 ms
    Timeline.update event handler (accessed via the top left bullet+curly braces icon : circled on the screen capture) :
    var newValue = Math.floor( sym.getPosition()/duration *endValue);
    sym.$('value').text(newValue);
    sym.getPosition() gives the current position of the playhead in ms. We divide it by the total duration of the animation and multiply by the end value to display. Math.floor rounds to an integer value.
    2) The second solution leverages the JavaScript setInterval function, which calls a function at regular interval. For that, we define a new variable frequency : you can tweak its value until you get the correct frequency for the update.
    Stage > creationComplete event handler
    endValue = 35;
    duration = 2000; // 2000 ms
    frequency = 100;
    setInterval(function()
        var newValue = Math.floor( sym.getPosition()/duration *endValue);
        sym.$('value').text(newValue);
      }, frequency);
    Download the two versions here : https://app.box.com/s/gi7hownshaz6rti8kggu
    Gil

  • PROBLEM IN CREATING BOM ITEM TEXT FROM TEXT FILE

    Hi All,
    I am developing interface program for creating BOM based on data it text file. in my text file contain three column(material, qty and longtext). These text i need to upload to BOM TCODE CS01). Using SAVE_TEXT I have generated text object. it don't says any error. But while viewing text in CS03, text is not visible. Give me suggestion or give me any other method for updating item text from textfile.
    Thanks in advance.
    Regards.
    Peranandam.

    Hi Carl,
    Actually problem is SAVE_TEXT updates text but I cant able to view in CSO3 transaction. because while creating BOM I forget for updating language key for long text. After updating language key I can able to view text in CS03.
    Now I am facing another problem. If I am executing program directly without going to debug mode, It is not updates text. Logic everything is correct. Give me some suggestions for solving this issue. I am also tried with commit work, Commit_text and wait up n seconds statement.
    Regards,
    Peranandam

  • IPS Signature Dynamic Update

    Hello,
    I need to know what type of privilege I need to use IPS Signature Dynamic Update.
    Thank

    Since the IPS dynamic update is accessed from the Admin tab, only the accounts having Admin privilege can change/modify the dynamic update settings, Here is a description of the various user roles in CS-MARS (taken directly from the user guide):
    •Admin: has full use of the MARS.
    •Notification Only: for a non-user of the MARS appliance, use this to send alerts to people who are not administrators, security analysts, or operators.
    •Operator: has read-only privileges.
    •Security Analyst: has full use of the MARS, except cannot access the Admin tab
    Hope this helps

  • TS4268 My husband and I use the same apple ID, after the update he started getting all my texts from me to other people and from other people to me. Anyone know how to turn this off?

    My husband and I share the same apple ID for purchasing apps and what not, ever since the update he started receiving all my texts  from other people and I am not even getting them half the time. Any thoughts on trying to fix this would be appreciated. I tried turning off imessage but then he got no texts at all.

    Make sure that on each of your Settings>Messages> Send and Receive Addresses have only the appropriate phone number and email checked at the left.  If his is checked on yours click on his it will uncheck

  • Unable to send or receive text from another iphone after updating ver 7.02

    Before updating ver 7.02 I was able to send and receive text to any cell phone. After updating to ver 7.02 can no longer send nor receive any text from any iphone 4 or iphone 5. Can send and receive to/from an old iphone 3 and to any non-iphone but not iphone 4 or 5. Tried updating iTunes then restore phone from backup, no change. Deleted apps that were no longer being used and transferred all my pictures on phone to a folder on computer then deleted then out of iTunes. Tried restoring again, once again no change.
      Not having any idea what else to try, went to AT&T store for help. Pretty much got a shrug of the shoulders with the response of yep, a lot of texting problems after 7.02 update. No help at all.
    Anybody else have or had this issue? If yes,  what did you find causing the problem?
    Thanks in advance.

    Thanks for the response. I tried so many things forgot to list that I did try turning off iMessage, reset network and turned network back on- no change. Also forgot to mention it's my wife's phone, I'm more old school. If I need to talk to somebody, I just call since I already have a phone in my hand. That's my solution to the problem but she doesn't think so. LOL. Also tried hard restarting several times, didn't make any difference. I am still fiddling around with it, if I come up with anything I will post it.
    Thanks again for the help.

  • I cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    i cant use the highlight, underline, or strikethrough function in a specific pdf file. The file isnt locked. I used to highlight texts from that file before the latest update. The problem occurs only with that file. Urgent need. Please help. Thanks!

    Chester31,
    Thank you very much for sharing your file with us!  Now that we are able to reproduce the problem at our end, you may stop sharing the file on Acrobat.com.
    Do you know when this problem (for not being able to add new highlight/strikeout/underline) has started?  Did you update your iOS from 7.x to 8.0 recently?
    We will continue investigating the problem and let you know what we find.
    Thank you again for your help.

  • Why after a recent systems update, I can't copy text from the internet (every web page) and paste into word?

    MacBook Pro Community,
    I need help. After a recent systems update this week, I can not longer copy and paste text from the internet. I have never had this problem before. I have searched through systems preference and google'ed it. Please help!!
    Thank you!

    A book is a lot of work and in the end needs to not only be openable, printable, but also be laid out with facing pages amongst other numerous desirable features.
    None of which suggest Pages 5 to me.
    If you want to persist in Pages 5.5 you will have to laboriously cut and paste the content into one file and hope that will still be usable when you are finished.
    Or you could export to Pages '09 or pdf format and assemble it there.
    Peter

  • [svn] 3292: Update Download text and link from Flex 2 to Flex 3.

    Revision: 3292
    Author: [email protected]
    Date: 2008-09-22 08:49:21 -0700 (Mon, 22 Sep 2008)
    Log Message:
    Update Download text and link from Flex 2 to Flex 3.
    Modified Paths:
    flex/sdk/branches/3.0.x/frameworks/javascript/FABridge/samples/srcview/SourceIndex.xml

    I haven't done any charts, so I can't be much specific help,
    but start with the MigrationGuide, here:
    http://download.macromedia.com/pub/documentation/en/flex/2/flex2_migrationguide.zip
    Then run the example and debug it.
    You might also be able to find updated examples here:
    http://www.adobe.com/devnet/flex/
    Tracy

  • Read from File which is dynamically updated

    Hello all
    Is there any class for reading from a file which is dynamically updated?and those updates are immediatley reflects in java File object without closing previous and reopen that file again to get the latest updates?
    thanks
    sjafery

    I meant RandomAccessFile

  • Update app for sending texts from my truck with Siri

    I have a 2014 Dodge Ram and linked the iPhone 6 to the truck. Everything work great, can send and receive calls, it even tells me when I have new text messages, I can read them and even listen to them with the trucks Siri if you want to call it that way, awesome. Here is where am stuck, to answer the text from my trucks system I can't because I need to update the app in my phone. What app is that that I have to update? or do I have to install it? which app is that? please let me know to fix this issue. Thanks.

    I have a 2014 Dodge Ram and linked the iPhone 6 to the truck. Everything work great, can send and receive calls, it even tells me when I have new text messages, I can read them and even listen to them with the trucks Siri if you want to call it that way, awesome. Here is where am stuck, to answer the text from my trucks system I can't because I need to update the app in my phone. What app is that that I have to update? or do I have to install it? which app is that? please let me know to fix this issue. Thanks.

Maybe you are looking for