Problem with Jtree to xml tranform..how to set/get parent of a node?

Hi,
I am trying to develop xml import/export module.In import wizard, I am parsing the xml file and the display it in Jtree view using xml tree model which implements TreeModel and xml tree node.I am using jaxp api..
It is workin fine.
I got stuck with removal of selected node and save it as a new xml.
I am not able to get parent node of selected node in remove process,itz throwing null.I think i missed to define parent when i load treemodel.Plz help me out..give some ideas to do it..
thanks
-bala
Edited by: r_bala on May 9, 2008 4:44 AM

there's no way anyone can help you without seeing your code.

Similar Messages

  • Pages 08 fonts- problems with Arial, Times New Roman - how do I repair them?

    Pages 08 fonts- problems with Arial, Times New Roman - how do I repair them?
    Using 10.6.8 on MacBook Pro
    Mikeaaa

    I am running Snow Leopard. Transferring the same texts to TextEdit has no problems, so this is a Pages problem, I think.  Corruption of Times New Roman and Arial fonts, I suspect, but where? and what do I do about it? I just need to be pointed to a source of advice, I think.
    Thanks
    Mikeaaa

  • Problems with reports and XML-publisher - No XML

    Hi!
    I'm having a problem with Apps and XML-publisher. I made a report file, which queries some views. When executing in reports, I get all the data I expect.
    Now, when I upload the reportfile to Apps and let it generate XML, my xml-file is empty (well, almost empty)
    <?xml version="1.0" ?>
    <!-- Generated by Oracle Reports version 6.0.8.27.0 -->
    <T03501684>
    <LIST_G_PERSOON>
    <LIST_G_PERSOON />
    </T03501684>
    Anyone who can shed any light upon this problem?

    OK, finally solved the problem... A good night's sleep always helps ;).
    After just trying each queried table one after an other, I found the problem:
    The difference between Oracle Apps (Dutch locale) and the reports builder (English) is the language... And our functional people have changed some names, but the Dutch ones, leaving the english names in place and one of the tables I query has language specific data, which is also appears in a where clause.

  • Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    Hi my name Abukar I had an old apple ID and I had problem with signing it so I decided to make a new apple ID with a new email address, so how can I link with two apple IDs and how can I get back all my previous apps that I purchased before, I cloud stuff

    It is not possible to do that.
    Allan

  • I got a problem with my personal account data how can i recovery my icloud id information back i can't remember even my birthday pls help me

    I got a problem with my personal account data how can i recovery my icloud id information back i can't remember even my birthday pls help me how to recovery my id information back

    Did you follow all of the instructions provided in the article that you linked from? If not, you must follow each and every step.
    If you have, then all you can do is contact iTunes Support:
    http://support.apple.com/kb/HT5699?viewlocale=en_US
    or by email: https://ssl.apple.com/emea/support/itunes/contact.html
    Cheers,
    GB

  • Problems with JTree

    Hi,
         I have a few problems while working with JTree. Here is the detail:
    I get the name of the required file from JFileChooser and add it to the root node of JTree using
    root.add(new DefaultMutableTreeNode(fileName));
    The following happens.
    1) If I add it to root, it is not added(or shown,at least) there.
    2) if I add it to a child of root, then if the node is collapsed before the event, after the event when it is expanded fileName is there.
    3) However if it is expanded before adding the fileName,the fileName is not added (or not shown).
    4) Further if I add another file(whether the node is collapsed or expanded) it is also not shown, means that it works only once during the life-time of the application.
    5) I have used JFrame and call repaint() for both the JFrame and JTree but the problem is still there.
         Please help me in solving this problem.
    Thanks in advance,
    Hamid Mukhtar,
    [email protected]
    H@isoft Technologies.

    Try doing this...
    tree.getModel().reload(node)
    node here is the node to which a new node is added

  • I got problem with my ip4s lcd..how much it cost to replace it

    i got problem with my ip4s lcd..how much it cost to replace it

    Sorry, but replacing the LCD screen is no option for the iPhone 4s. This can only be done with the iPhone models 6 and 5.
    Apple will replace the whole unit if you are paying the service fee for the other models.
    Screen repair service pricing
    Repair and replacement costs depend on your iPhone model and your AppleCare product coverage. Apple will run a diagnostic test to determine whether your iPhone has experienced additional damage. If it has, or if it needs other repairs, you may need to pay an out-of-warranty service fee. Accidental damage isn't covered under the Apple One Year Limited Warranty.
    Model
    Screen repair cost
    iPhone 6
    $109
    iPhone 6 Plus, iPhone 5s, iPhone 5c, iPhone 5
    $129
    Plus a $6.95 shipping fee, if required. Fees are in USD and exclude local tax. Pricing is for service through Apple. The final service fee we charge will be determined during testing. Pricing and terms vary for service through an Apple Authorized Service Provider.
    Out-of-warranty repair service
    If your repair isn’t covered by Apple’s One Year Limited Warranty, AppleCare+, or AppleCare Protection Plan, your iPhone might be eligible for out-of-warranty service. For example, liquid damage isn’t covered by warranty but might be eligible for out-of-warranty service. Some damage isn’t eligible at all, for example if your device has been broken into multiple pieces. See Apple’s Repair Terms and Conditions for complete details.
    Read Apple’s Repair Terms and Conditions
    Model
    Out-of-warranty service fee
    Battery service*
    iPhone 6 Plus
    $329
    $79
    *available only if battery
    fails Apple’s diagnostic test
    iPhone 6
    $299
    iPhone 5s, iPhone 5c, iPhone 5
    $269
    iPhone 4s
    $199
    iPhone 4, iPhone 3GS, iPhone 3G,
    Original iPhone
    $149
    Plus a $6.95 shipping fee, if required. Fees are in USD and exclude local tax. Pricing is for service through Apple. The final service fee we charge will be determined during testing and may be less than the service fee listed above. Pricing and terms vary for service through an Apple Authorized Service Provider.
    Out-of-warranty pricing varies for Apple accessories such as adapters and Apple iPhone cases. Contact your carrier, Apple, or an Apple Authorized Service Provider for more information.
    copied from Service Answer Center - iPhone

  • Sir i have a problem with iphone its factory locked how to unlock

    sir i have a problem with iphone its factory locked how to unlock

    You have asked this question 3 times. Each time the answer being the same. ONLY, the original cellular provider can unlock the phone. However, if the phone has been previously hacked to provide unlocking, the fact that you have updated it has now re locked it. It is possible that it might never be ale to be properly unlocked.
    https://discussions.apple.com/message/22282979#22282979

  • Firefox is stumbling when pages with PDF content come up. how can i get my old version3.5.6 back?

    Question
    firefox is stumbling when pages with PDF content come up. how can i get my old version3.5.6 back?

    Thanks for your response Cor el, I'll try that the next time it happens, it's completely random. One moment it functions normally then suddenly it changes its mind.
    Restarting my pc usually brings it back to normal until next time.
    One thing I've noticed, but not 100% sure there's a connection here.....I edit my websites online and log into cpanel which opens new pages in separate tabs, as it should do. It seems that this problem occurs when I'm logged into cpanel...if i'm logged in then open a new tab for regular browsing of other sites then all links on those sites also open in new tabs.
    Ican't say for sure if it's always only happened when logged into cpanel, but certainly on the last 3 occasions.
    At the moment it's behaving normally so much I can do to check your suggestions, but will try them the next time it occurs.
    One other thing I forgot to mention too....since i've had the new firefox, I've noticed that when I log into yahoo and post comments, I often find myself having to log on for each new post. Everything was fine with old firefox and there have been no other changes to my pc .

  • I restared my Iphone 4s and now my photos are just grey with JPG in it. How do i get my photos back?

    I restared my Iphone 4s and now my photo's are gone. They are just grey with JPG in it.
    How do i get my photo's back? And why are they grey?
    Any help would be nice.
    Thank you.

    Restarting your phone doesn't cause it to grey out.
    Were you restoring from an icloud backup?  IF so, it does take awhile for pictures to download.

  • I connected an external monitor to my MacBook Pro, but it doesn't open any programs. It Just sits there with a blank screen.  How do I get it to open programs and act like a monitor?

    I connected an external monitor to my MacBook Pro, but it doesn't open any programs. It Just sits there with a blank screen.  How do I get it to open programs and act like a monitor?

    Dear Jean:
    It sounds like you are trying to get your external monitor to act as the primary viewing screen. For example it would have your Doc, Icons, Etc. In order to make the external monitor the primary screen you have to:
    Open System Preferences.
    Choose the Displays Icon
    There will be several tabs to choose from pick Arrangement
    Drag the toolbar to desired display
    Let me know if this helps at all!
    Lance

  • I am trying to install an app.  When I click install, my old gmail account  shows and asks for my password etc but I have a new gmail account that is associated with my apple id.  How can I get it to default to the new gmail?

    I am trying to install an app in my iphone.  When I click Install, my old gmail account comes up for verification and it asks for my password etc.  I dont use this account anymore and have a new gmail account that is associated with my apple account.  How can I get the new gmail to default when I am trying to install apps?

    Did you create a NEW Apple ID or did you change the email address for your OLD Apple ID? This will affect how you update apps in the future.
    Anyway, go to Settings/iTunes&App Stores, log out, then log in with the new ID.

  • I updated to 3.6.15 and every time I open Firefox the Thank You for upgrading window pops up along with my normal homepage. How do I get rid of that?

    I updated to 3.6.15 and every time I open Firefox the Thank You for upgrading window pops up along with my normal homepage. How do I get rid of that?

    This link shows how to do that - https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox

  • Hi! I sold my Iphone on ebay. The seller wants to connect the Iphone with his Apple ID, but it did not work because it says that the Iphone is already connected with another Apple ID. How can I get rid of this old connection? What do I have to do?

    Hi! I sold my Iphone on ebay. The seller wants to connect the Iphone with his Apple ID, but it did not work because it says that the Iphone is already connected with another Apple ID. How can I get rid of this old connection? What do I have to do?

    What to do before selling or giving away your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT5661
    MaggySimpson wrote:
    Hi! I sold my Iphone on ebay.
    Follow the instructions to remove a device you no longer have.
    From here  >  http://support.apple.com/kb/PH13695?viewlocale=en_US

  • My daughter's iPad is backing up to my iCloud, which is how we set it up originally. Now she has her own iPhone with her own iCloud. How can I get her iPad to back up to her own iCloud?

    My daughter's iPad is backing up to my iCloud, which is how we set it up originally. Now she has her own iPhone with her own iCloud. How can I get her iPad to back up to her own iCloud?  Her iPad is taking up 3.4MB of my 5MB. I need my space back!

    kat...mom wrote:
    I suppose ya.  If she deletes my account from her iPad it won't affect my account, right? 
    Yes, that's correct, it won't affect your account or your devices in any way.
    Use the delete account button in the iCloud settings.
    Then enter her iCloud details in the new screen that appears and log in. She should then be returned to the screen above but with her Apple ID at the top, enable the services she wishes to use and then tap the storage & backup option and ensure that iCloud backup is turned on.
    settings

Maybe you are looking for