Modification of Jtree at Runtime ...Forurth Posting on this Prb..Help me

Hello ALL:
I am developing a swing application.The initial JTree is populated using the Sql Query(JDBC)
My application have a JPopupItem which has a item namely"Add".
The ADD opens a Component Display Class in the SplitPane(ScrollPane is enabled).The ADD Class has a Saving functionality (The Procees will go to the SQL Server)which will help me add a new node to the JTree.
Can I do this...A Population of Jtree when I add a new node at Runtime and execute the Query again to populate the Jtree and my problem has to be solved using JDBC.I have to call my Sql query with the fresh value inserted into the Database when I add a value.Can I recall my Swing Constructor again with a boolean flag which would help me identify the refresh of the fresh values inserted by the user.
Help me with how to call the Constructor(The Jtree is built using the Sql Quert initially).
Thanking you.
Help me..This is urgent.
Regards
Ritesh

When you add the whatsit to the database, add it to the JTree also. Don't rebuild the entire tree from scratch every time; this will perform very badly when your tree becomes large.

Similar Messages

  • "You do not have permission to post in this forum"

    I have another account that cannot do anything much at all, and I would like to get it fixed without a five day wait for a Genius Bar appointment, then a 1 hour bus trip each way with an "I can't help with that" in the middle.
    The account has been broken for over a year.  This is what happens:
    I can submit a question to the community.
    I can open any postings that show as matches.
    If there are no matches and I get thrown to the list of communities, then I can't view or post to any of them.  I see the product names and icons (iPad, for example, but the list of related communities on the right is missing for all products.  Which seems unfair because I own most of them.
    You do not have permission to post to this forum
    It appears you are not allowed to view what you requested.  You might contact your administrator yadda yadda.
    I have posted about this before:
    https://discussions.apple.com/message/17393255#17393255
    with no real answer (a threat of possible help, if you like, but with no resultant benefit.)
    My question is - how does one get help with the help forums?  I have phoned Apple's help desk and they said they could not do anything.
    I would really like to get my primary account working - it connects to the right email address, it all set up and comfortable - and it does not use my name and location as an alias (who's idea was that?  Fire that person!)
    If you know of any court of appeal, help desk support forum support line, 21-step program or anything else that might help, please tell me.  This has gone on long enough.
    I tried to do something about this from the other account but to get support for the support communities you have to be able to post to them.
    "That's some catch, that Catch-22"
    "It's the best there is."
    Thanks in advance for your help.
    PG.

    Seventy-one -  To my knowledge, I have been a model citizen.  And not impertinent of you at all - a very reasonable question.  All words have been 1-3 or 5+ letters long, I certainly have not received any communication (that I have been able to find) that indicates a transgression.  And there is another question - which castle, and are you saving for the deposit?
    Bleach  - other user name is "Ploughguy".  But I was more after a means of contacting those with influence myself.  Most fora like this have a contactable moderator or administrator.  I am rather amazed that one needs the intercession of the saints.  Such as St Roger...
    Roger - This situation.  The "can't look-can't post" situation.  It has been (not) happening for some time.
    I previously raised the issue here .
    BTW, I created yet another ID because I was not careful enough when I set up the second ID and it defaulted to "NameFromSuburb".  This is OK for johnfromnewyork but a huge privacy risk if you are ranulffromlittlestorpingintheswuff - an unusual name in a small place.  I do not know how that default got through the peer review. Basically it says "ranulf has the good taste to own an Apple something which is portable and fenceable, and he lives not far from here".  I have suggested to the privacy people that it is a very bad idea.  And yes, I realise my alias is already out there.  I have asked the privacy people to blow it away.

  • Centro wired headsets wont work i have read the other posts on this

    I've been reading posts on this topic.  will try to find some wd40 or a paperclip when I get out of this airport!
    but I dont know if this is my problem.  because when my headset is plugged in  you hear no sound coming from the
    "earpiece" but the minute I unplug the headset you can hear fine with the phone.
    if it was the "switch" and wd 40 would work, wouldnt I hear the call thru the phone if the headset was not registering?
    it almost seems like it thinks bluetooth is on. I had to stop using bluetooth it kept resetting itself and not connecting.
    so it is now t urned OFF.   I have bought millions of headsets.  I can call palm but have not had time and dont trust them.
    thanks so much! 
    Post relates to: Centro (Sprint)

    As with most problems that occur on a Palm PDA, it is either software or hardware related and we have to determine which one.
    Best method is to first make a complete backup of your unit to your SD card using the free "NVBackup" (available from http://www.freewarepalm.com) After the backup is complete, Hard Reset the unit, then test to see if full functionality returns.
    How to Hard Reset a Palm Centro.
    Go to http://kb.palm.com and enter the number 45050 into the "Solution ID" box.
    DO NOT HOTSYNC YET! Test the unit before reinstalling any software. If the unit works correctly, your problem is being caused by a "drug interaction" of software - maybe one rogue program, or a combination of several. You'll have to reinstall the third-party programs one or a few at a time to find the problem one. To avoid re-installing a software issue, rename your /Backup directory in your Palm folder (on a PC it's found here: C/Program Files/Palm(One)/"your HotSync ID name truncated"/Backup) to something like "/BackupOLD". Now perform the HotSync, choose your HotSync name you've been using, and all your PIM data will return, but not the third-party programs. Test for functionality again. If all is good, start installing the old programs from your /BackupOLD directory one (or a few if brave) at a time.
    If the unit does not work after a Hard Reset is performed correctly, then it may be Hardware-related. (If it's a connection problem via either BlueTooth or Wifi, be sure nothing has changed on the unit you're trying to connect to!)
    Hope this has helped,
    Wyrenut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • You cannot use this transaction type to post to this asset Message no. AA83

    < MODERATOR:  Message locked.  Please post this message in the [Asset Accounting forum|SAP ERP Financials  - Asset Accounting;. >
    Hi,
    I am settling credit values [-ve values] from WBS to Asset Under Constructions Assets during CJ88 period settlement run.
    These assets belongs to Investment Measure. For few assets I am getting below error and
    You cannot use this transaction type to post to this asset
    Message no. AA834
    Diagnosis
    The transaction type entered belongs to transaction type group 15. According to the specifications for this transaction type group, posting with transactions types belonging to this group are only allowed in specific asset classes (for example, asset classes for assets under construction).
    The asset to which you are posting belongs to class XXXXX (chart of depreciation XXXX). You cannot post to this class using the transaction type you have entered.
    Procedure
    Check the asset number entered. You may want to allow posting with this transaction type group for the asset class of the asset.
    I know normally we do this way
    During charging
    Dr Exp  A/c WBS name
    Cr B.S A/c
    During settlement
    Cr Exp A/c WBS name
    Dr AuC GL A/c
    But we have situation that during settlement, we are doing reverse
    ie., Cr AuC GL A/c
          Dr Exp A/c WBS Name
    These expenses are through POs and no downpayments. The below error taking me to down payment accounts config but we dont have down payment scenario, can any one advise, thanks
    Regards,
    Sridhar

    Hi,
    Please check the SAP note 1091728 for this.
    Regards

  • You cannot use this transaction type to post to this asset Message no.AA834

    Hi,
    I am settling credit values -ve values from WBS to Asset Under Constructions Assets during CJ88 period settlement run.
    These assets belongs to Investment Measure. For few assets I am getting below error and
    You cannot use this transaction type to post to this asset
    Message no. AA834
    Diagnosis
    The transaction type entered belongs to transaction type group 15. According to the specifications for this transaction type group, posting with transactions types belonging to this group are only allowed in specific asset classes (for example, asset classes for assets under construction).
    The asset to which you are posting belongs to class XXXXX (chart of depreciation XXXX). You cannot post to this class using the transaction type you have entered.
    Procedure
    Check the asset number entered. You may want to allow posting with this transaction type group for the asset class of the asset.
    I know normally we do this way
    During charging
    Dr Exp A/c WBS name
    Cr B.S A/c
    During settlement
    Cr Exp A/c WBS name
    Dr AuC GL A/c
    But we have situation that during settlement, we are doing reverse
    ie., Cr AuC GL A/c
    Dr Exp A/c WBS Name
    These expenses are through POs and no downpayments. The below error taking me to down payment accounts config but we dont have down payment scenario, can any one advise, thanks
    Regards,
    Sridhar

    When you have an investment order/WBS create from there the AUC. You collect the cost on the AUC. Final you fill in the settlement rule the final asset in (from a normal asset class) and then you transfer the costs to the final asset.
    In the IO or WBS should be assigened a investment profile and the asset class AUC should be set-up correct
    Search on this forum for more information or read the SAP help

  • Asset Settlement You cannot use this transaction type to post to this asset

    Hi All,
    A CAPEX is created. An Asset is created. The asset is assigned to CAPEX under settlement rule. Out of several purchases made against the CAPEX, settlement for 2 months are carried out and the value of CAPEX was transferred to Asset.
    However, during the current month, while doing the settlement, the system is giving the following error :-
    "You cannot use this transaction type to post to this asset"
    Message no. AA 834
    The details diagnosis of the error message is
    "The transaction type entered belomgs to transaction type group 15. It has been specified for this transaction type group, that it is only allowed to post to asset classes for which it has been explicitly allowed (for example, the asset class for assets under construction). The asset to which you are posting belongs to class PM-501 (chart of depreciation DEIL). You cannot post to this asset class using the transaction type entered"
    Request to please let me know what could be the possible reasons for system giving such message adn how to rectify it.
    Regards
    Santosh

    Hi Santosh,
    I would suggest that you Check the <b>asset number</b> you entered. You may want to allow posting to this asset class using this transaction type group. If this is not the case, then, you may have to ask the business to reverse the initial posting causing this error and re-post with the correct transaction type that is allowed for this asset class.
    I hope the above helps.
    Do not forget to award the points please.
    Regards,
    Jacob

  • How do i make a template (poster) of this sizes 3.74in x 8.27in?

    How do i make a template (poster) of this sizes 3.74in x 8.27in?

    Inspector, Document tab
    Page Setup
    Click in the Paper Size box and choose Manage Custom Sizes
    Click the + to make a new custom setting
    Name it
    Type in the  dimensions
    Hit OK
    That gets the size you want.  Save as a template.

  • How to attach files to the thread we post in this forum?

    How to attach files to the thread we post in this forum?
    I’m wondering why there is no feature that allows attaching files from our hard drives! It is not practical to upload our file first in a certain web to provide it as a link in the post.
    Is there a way to attach our files directly from our hard drive to the post?
    Please, have a look on the screenshot below that shows a forum which includes all the very basic features!
    Thank you for the help
    Best
    Jamal

    Pierre,
    Just a guess on my part, but I would suspect non-image files in this case.
    As Ted points out, that WAS possible early on, and then the capbility to attach non-image files, was actually retained by a certain few forums, though not for long. This change was coincidental with a major spam attack, and at least one disgruntled user attempting to attach some rather nasty "stuff." I do ot know if those events prompted the change, as I was not part of the decision making group, that initiated the change.
    Though 95% of the files that I wish to attach, ARE image files, there are times, where a TXT file would be ideal, say for a crash log, or similar. Now, I can convert that TXT to a PNG, but then one has to work with pixel x pixel dimensions, and some files, like those crash logs, can be rather long.
    Personally, I find the loss of the Attach File (was via a button at the bottom-left of the editing screen) to be a sad comment on the actions of some, on these forums, but then that just reflects life outside of the forums.
    Hunt
    PS - I am glad that you found that little article useful Especially in the PS, PrPro, PrE and Encore forums, screen-caps can tell so very much about what is going on with a person's program, system or their Projects/Images.

  • No stock posting for this material

    I have create a material  with item category LEIH for returnable packaging,while doing stock posting in MB1C error comes as "No Cmaterial posting for this material".plz help how to post the  material.

    Duplicated thread no stock posting for this material
    Please close this post.
    Regards.

  • How to give the link to specific post in this newsgroup?

    Hi everybody.
    I run to a situaion when I wanted to give a link to some earlier posts in this newsgroup, but I did not know how .
    There is a long line in address field in my IE and it is to my personl setting I guess. What I shell do to give somebody a link to specific posr?
    thanks in advance
    Pawel

    I believe you are wanting to just provide a link to another newsgroup? If so, you can just copy and paste the address into your response. Also, you can use HTML code to make it look nicer. For example, I can use the following address:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000008F550000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Or, you can use simple HTML code within your posting. The format in this case is display text .
    So, for example, I could also have a link LIKE THIS which will take you to a page also. Refer to This Page for more of the simple HTML commands you can use.
    J.R. Allen

  • How to put a picture/screen shot  on a post in this forum?

    How do you put a picture here on a forum page? Others have done it and there are times, like now, when it would be great if I could post and include a screen shot of the problem area.
    Lorna in Southern California

    great question, this would help if we had problems
    and could possibly use a picture of the problem to
    help solve it. I have seen this done before and now
    my curiosity is back again on how to do this.
    I hope that someone who knows how to do it will write the answer here. It would go along way to help us describe problems. Lorna in Southern California

  • How can i view all my messages i posted in this form?

    hello,
    how can i view all my messages i posted in this form?
    i can view only the recent message i sent.
    is thier any way to view all my message i posted
    thaks
    daya

    Do a forum Serach for your screen name.

  • Just updated the lion os x, and now when I try to use my optus dongle, it comes up with the message saying that it won't work because Java Runtime needs to be installed.  Help?

    just updated the lion os x, and now when I try to use my optus dongle, it comes up with the message saying that it won't work because Java Runtime needs to be installed.  Help?

    Have you run Software Update.  You have Java already installed, but it needs to be updated.

  • Wifi greyed out...yet another post about this.

    One of a million posts about this same issue.  I have iphone 4S with iOS 7.  My phone has been going along just fine.  On Sunday, I was on it, using wifi,
    off and on all day long.  Sunday night, my connection to it on my phone was acting a little weird (slow/not connect/or drop in signal).  I tried turning my router/modem off and then rebooted thinking it was that.  Still acting strange, so I turned my phone off, let it sit for a minute, then turned it back on as that has
    worked before.  Well, when I did that, now my wifi button is "greyed" out and can't be turned on.  I've tried the reset network connection about 5 times----with airplane mode on, with airplane mode off, with cellular data on, with it off, etc etc etc.  I won't do the hairdryer/refrigerator trick because I don't want to make it worse.  I've had the phone about 14 months so it's clearly out of warranty and I'm not paying $200 to have it repaired.  So now, it's no better than a flip phone as I can't use any apps without it going against my data usage.  What a crock.  I can't believe Apple, whom I've trusted and with the advice of friends, would put out
    something that does this.  Apparently this is not a new problem as I've seen others' posts about this happening with iOS 6.  So any other solutions? 

    Oh I forgot to mention that on the Easy Access it says my wifi is on but at the top of the phone it still says 4G.  So is it on or not?

  • Why does my iphone 4 turn off by itself randomly? I have read many posts on this and there seems to be no solution other than replacing it.

    It turns off randomly and sometimes when I try to turn it back on, it doesn't turn on right away. Sometimes it would take multiple tries before it actually turns back on. I have read many posts regarding this and there seems to be no solution. The bad thing about this also is that I don't have a warranty either.

    Because there is a hardware problem.
    Apple has an out of warranty or not covered under the warranty "repair" price which pays for an exchange at a discounted price off the full retail sales price, or if you qualify for upgrade pricing with your carrier you can purchase a 4S or iPhone 5 for about the same or not much more depending on storage capacity.

Maybe you are looking for

  • Is there any way to get the finder window spinning wheel status indicator back?

    In Mac OS X Lion the bottom finder window frame is gone. Consequently the spinning wheel status indicator in the lower right corner is also gone. How do I get the status wheel back so I can tell whether the window view is still loading or hung?

  • FF68 - Manual Check Deposit - entering multiple invoices against one check

    We are requiring the functionality to enter multiple invoice numbers into the layout against one customer and one check payment to then allow these to be cleared as part of the batch processing. Currently it only appears to allow you to enter one inv

  • ALV Report heading

    Hi, When I am display data using ALV I am not able to display some fields data in the output it's like this if I have f1,f2,f3,f4,f5 i am able to see the data only for f4 and f5 but not able to see the data of f1,f2 ,f3 even then I have data for that

  • How to make a simple program in numbers that i can use on my iphone

    how can i make a touchable program in numbers that i can trasfer to my iphone and use out in the field of work? i am pretty good at excel sheets,but am still new with my macbook.

  • Using IVI driver for reading delay in MSO6104A

    Hi, I have the NI IVI driver for the MSO6104A scope. The driver is functional and I manage to use it. My scope has a function of measuring delay between two different channels. But, how can I read the Delay measurement using IVI scope step? Is there