JTree collaps after reload

Hi
I am using a dynamic tree - when i update a node i use:
in the model:
fireTreeNodesChanged(node,node.getPath(),null,null);
//and then i revalidate and repaint the tree panel so it will be refreshed.
//(I used to use reload(node) but this caused my tree to collaps after the reload)The update works fine but when i want to remove a node:
parentnode=node.getParent()
node.removeFromParent()
fireTreeStructureChanged(parentnode,parentnode.getPath(),null,null); //instead of reload
//and then i revalidate and repaint the tree panel so it will be refreshed.But still the tree collapse!!!!
Is there any way to prvant the tree fom collapsing?
Liat

Instead of using fireTreeStructureChanged, use fireTreeNodesRemoved - and in the last two arguments pass ann array with the index of the removed child, and an array with a reference to the removed child: eg
parent=node.getParent();
int[] indices = new int[] { parent.getIndex(child) };
Object[]  nodes = new Object[] { child };
node.removeFromParent();
fireTreeNodesRemoved(parent, parent.getPath(), indices, nodes);

Similar Messages

  • I am unable to edit information I have typed into a spacebar, this includes backspace, and when I highlight it, even after reloading the page

    I recently upgraded to Firefox 4 on my 3 yr old Macbook, though I am unsure if this is in fact connected. Now I am often unable to edit information I have typed into a search bar or text box (such as this one) even after reloading that page or pressing first the back, then the forward buttons. Has anyone else run into this, and does anyone know what is going on?

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    Create a new profile as a test to check if your current profile is causing the problems.<br />
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting&#58; Make a new profile]]
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • LMS 4.0.1 software distribution 3 out of 7 fail to pass traffic after reload

    I've distributed (7) IOS C3560-ipbasek9-mz.150-1.SE2.bin upgrades on identical 3560G PS-S platform using LMS 4.0.1. All jobs come back successfully completed with the /MD5 hash matching exactly what Cisco has on their website. All devices have sufficient 32MB worth of Flash and verified enough was available prior to distribution.
    Issue: After reload 2 of these 3560G devices would not pass traffic. Also, neighboring devices could see these devices through "show cdp neighbors detail" but the management IP was not being displayed. After consoling into these devices via (console port) the management IP address was there but was unable to ping this address locally and neighboring devices were unable to be pinged as well. Performed the "sh run" command and verified the config was correct.
    ***Cisco's engineers suggestion was to load a lower IOS.***
    ***I've perused the caveats with this release and have not found any solutions.***
    I've already replaced the offending switches with new devices but don't want to keep upgrading with this many failures after reloading.

    Your devices with the NX-OS versions you indicate should be OK per the LMS 4.0.1 Supported Devices Table.
    Have you updated your LMS with the latest device packages? See the procedure here.

  • Multicast VPN Extranet Support doesn't work after reload

    Hi!
    We have Cat6500 with configured Multicast VPN Extranet Support feature. After reload of the 6500 customers in the receive MVPN cannot get mcast stream. We connect test device into source MVPN on that 6500 - everything is OK, mcast stream is available.
    Workaround is "no mls ip multicast/mls ip multicast". After these commands mcast in the receive MVPN works fine.
    IOS 12.2 SXJ2
    Looks like a bug. We have several Cat6500 but only two of them have this issue.
    Does anybody faced with such trouble?

    Hi!
    We have Cat6500 with configured Multicast VPN Extranet Support feature. After reload of the 6500 customers in the receive MVPN cannot get mcast stream. We connect test device into source MVPN on that 6500 - everything is OK, mcast stream is available.
    Workaround is "no mls ip multicast/mls ip multicast". After these commands mcast in the receive MVPN works fine.
    IOS 12.2 SXJ2
    Looks like a bug. We have several Cat6500 but only two of them have this issue.
    Does anybody faced with such trouble?

  • 10000: PPPoE session recovery after reload

    Hi.
    We have seen that there are a feature that recover the PPPoE sessions closed in one side and up in the other. This feature is called 'PPPoE Session Recovery After Reload '.
    In the feature navigator, we can see that this feature is available for 7200 series. It seems not available for 10000.
    But in the release notes of Cisco IOS 12.3(7)XI3,
    http://www.cisco.com/en/US/partner/products/hw/routers/ps133/prod_release_note09186a008040929e.html
    appears this bug as resolved:
    CSCsa46626
    PPP PADT messages are not sent by a PPPoX PTA router to a client when the PPPoX user is no longer connected to the PPPoX PTA router.
    This feature is enabled only within the BBA Group configuration using:
    bba-group pppoe pppoe1
    sessions auto cleanup
    This issue can occur when a Cisco 10000 Series router is used as a PPPoX PTA router, and there has been a network flap causing the PPPoX users to lose their connections. PPPoE will experience this issue when BBA Groups are in use. VPDN Group configuration does not support this feature.
    There are no known workarounds.
    We have tested the IOS 12.3(7)XI6, but the router (10000) doesn't send the PADT (auto cleanup). In 7200, it works correctly.
    Anyone have has this problem?
    Anyone can confirm if this feature is supported?
    Regards.
    Jose

    Hi Jose ,
    I checked it using feature navigator and noticed that cisco 10000 doesn't support ""PPPoE Session Recovery After Reload"" feature.
    The following platforms support the feature.
    1700
    1800
    2600
    2800
    3200
    3600
    3700
    3800
    7200
    7301
    7400
    Thanks,
    satish

  • IPhoto will not open even after reload

    I have remove iPhoto and reloaded from disc. Still getting the same error message. I am basically pretty frustrated at this point, any ideas?
    Interval Since Last Report: 13374 sec
    Crashes Since Last Report: 8
    Per-App Crashes Since Last Report: 8
    Anonymous UUID: 41254D60-DDE4-4A37-A55C-DB4E70D14C3F
    Exception Type: EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread: 0
    Dyld Error Message:
    Library not loaded: /System/Library/PrivateFrameworks/iLifeSlideshow.framework/Versions/A/Framework s/iLifeSlideshowProducer.framework/Versions/A/iLifeSlideshowProducer
    Referenced from: /System/Library/PrivateFrameworks/iLifeSlideshow.framework/Versions/A/iLifeSlid eshow
    Reason: no suitable image found. Did find:
    /System/Library/PrivateFrameworks/iLifeSlideshow.framework/Versions/A/Framework s/iLifeSlideshowProducer.framework/Versions/A/iLifeSlideshowProducer:
    stat() failed with errno=5=

    I am at my wits end with iPhoto error messages and inability to reload it. It has worked fine until yesterday when I started getting the library not loaded error message. I deleted the app, removed the pkg files from HD/Library/Receipts and reloaded the app from my iLife CD as suggested. I have done this 6 times without success and continue to receive the same error message. During reinstall it runs for a long time saying loading packages. After reload there are no new pkg files in teh HD/Library/Receipts location. I do not know what to do next . . . I am open to any assistance.

  • Anyway to recover photos on a iPhone 4s after reload of os?

    Anyway to recover photos on a iPhone 4s after reload of os?

    Only from your backup if you have any.

  • After reloading adobe creative suite cs3 on my mac 10.4.11 acrobat will not open any pdfs it previously opened. help!

    after reloading adobe creative suite cs3 on my mac 10.4.11 acrobat will not open any pdfs it previously opened. help!

    hello.   hey, thanks very much for writing back.  i got some good info with a search or two.  (info about what regedit is and what corresponds to it in OS X -- regedit allows you to edit "preference" keys for individual programs,  OSX's equivalent for these keys are the .plists in User & System: Preferences and Application Support)
    what i ended up doing was uninstalling Premiere Pro (not the suite, just PPro).   Then i deleted a few preference files:
    from User /Preferences/Adobe:
    com.adobe.AdobePremierePro.plist
    com.Adobe.Premiere Pro.5.0.plist
    and from System Preferences:
    the file:  Adobe Premiere Pro Prefs
    and..
    /.../Premiere Pro/5.0/...
    AMEPrefs.xml     (i noticed that there's also a preference file in Media Encoder's own folder so i didn't sweat this one)
    Debug Database.txt
    Placeholder Preset.epr
    PostEncodeCmds.pref
    PresetCache.xml
    Trace Database.txt
    NOTE:
    of course i don't know if deleting any files beyond the 2 .plist files in User Prefs was necessary, but...  it seems to have worked.
    I then reinstalled Premiere Pro CS5, and fired up an old project and i've got playback of HD and DV files, and snappy editing and rendering,  so hopefully i'm good to go.   I'm just going to stick with v5.0.0 because i actually don't remember ever having any trouble with it, and i don't remember v5.0.4 adding anything i was 'missing' or 'needed'
    hopefully, this thread will be useful for any future folks that run into trouble - and it's got a solution for both Windows and OS X
    happy editing,
    peace

  • After reloading a website its page is not active.

    After reloading a website the page is not active. I have to click on a different program, minimize and restore, or click on the windows task bar and then things are able to be clicked on and pointer is recognized. All sites are affected
    == URL of affected sites ==
    http://ALL SITES
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16

    Hi ,
    According to your description, my understanding is that you got an error when you clicked the link to a library.
    Whether you customize the library page.
    Please check Recycle Bin on your site, see whether there is the library in it. If yes, restore the library, then compare the result.
    If this issue still exists, please find more information about this issue in the logging file, the path is C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • CX Module failed after reload

    Hi there!
    I do know if it is some kind of bug, but all the time after reload the CX module all things stop work, regardless of what form do I reset the module.
    I already tried to acccess the module and reload, tried to stop services with "services stop" command and after that "reload", tried to shutdown using ASA commands and reload it from ASA... everytime I reload when the module come back all services start perfectly, like example below:
    spcx02>show services status
    ============================================================
    Process           | PID   | Up    | Up Time
    ============================================================
    AD Interface      | 6284  | True  | 05:03:03
    Message Nameserver| 6022  | True  | 05:03:59
    HTTP Auth Daemon  | 6094  | True  | 05:03:58
    PDTS              | 6073  | True  | 05:03:59
    HTTP Inspector    | 6193  | True  | 05:03:37
    HTTP Server       | 5972  | True  | 05:03:59
    Data Plane        | 6270  | True  | 05:03:06
    Management Plane  | 6115  | True  | 05:03:45
    HPM Monitor       | 6289  | True  | 05:03:03
    Updater           | 6399  | True  | 05:02:52
    Card Manager      | 5930  | True  | 05:03:59
    ARP Daemon        | 6089  | True  | 05:03:58
    Event Server      | 6133  | True  | 05:03:41
    TLS Proxy         | 6204  | True  | 05:03:37
    ============================================================
    spcx02>show ver
    Cisco ASA CX Platform 9.1.2 (42)
    Cisco Prime Security Manager 9.1.2 (42) for spcx02 firewall
    spcx02>
    I even can access the GUI using my browser, but all athentication with CDA or AD that before boot was working correctly show up the error:
    "Connection failed with error: Could not connect to virtual directory interface."
    Everytime I reload I must reinstall the entire module and reconfigure everything. Anyone know if this is a bug that crashes the database or something like this?
    Regards,
    Rodrigo Alves

    Ah, I forgot to write down that after reload the module and it come back it stop all traffic passing through the firewall and I must remove the policy-map configuration:
    policy-map global_policy
    class inspection_default
      inspect dns preset_dns_map
      inspect ftp
      inspect rsh
      inspect rtsp
      inspect sqlnet
      inspect sunrpc
      inspect xdmcp
      inspect sip 
      inspect netbios
      inspect tftp
      inspect ip-options
      inspect icmp
      inspect h323 h225
      inspect h323 ras
      inspect skinny 
    class class-default
      cxsc fail-open auth-proxy

  • How to fix Gridview after reloading Grid in Adobe flex-

    hi folks,
    i have searched a lot but could not find the exact way to do this... you will understand better if you will look once this page.please open this in IE.
    http://www.freescale.com/webapp/search/MainSERP.jsp?SelectedAsset=Orderable%20Parts#breadc rumb_anchor
    Here is my scenario goes...
    click om power Actuation present in leftnav under Analog & Power Management.  you will get result table and above that i have a container which shows  different filter criteria. now find a filterable header(match header  name with filter header) that is out of the screen fold to the  righ,then Choose a value for filter exercise, filter by it.
    now here my problem arises
    after reloading the results, the table-view comes back to it's starting  position, which creates the confusion to end user about the results.
    so my question is how can i prevent my table-view to gets back to it's starting point?
    i want the scenario which i described above, should work in this way.
    Value is chosen for filtering, filtering starts, the reloaded  values appear in the same screen position, as before the value was  chosen.
    i thought about viewStack but could not figure about how to do?
    any suggestion or solution will highly appreciated!!!!!
    Thanks in advance for your valuable time which you spend to read my question.
    Thanks,
    Vivek

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • Thunderbird does not correctly save german letters ü,ä,ö,ß. After reloading a mail they are exchanged with useless ones.

    If a mail is written and saved with german letter ü,ä,ö,ß then after reloading it sometimes the letters are completely useless (only the letters) and they need to be rewritten. This bug is present for years and endless versions before but now at a specific big amount of the database this gets really messy. I am thinking about going to outlook for professional results (some more bugs are now meanwhile really critical, but this is one of them). Any solutions?

    right click the folder, select properties and check that the character encoding of the folder is correct. UTF-8

  • Config Register Not changing after reload

    Hi Al,
    I am having an issue with a Cisco 3850 Catalyst switch, issue as below:
    - Current config register is 0x142 and have configured the config register to 0x102 but even after reload the new config register does not come in place.
    - Have reloaded the switch 2x but with no luck. Changed the config register on the primary and secondary switch yet no luck. It is running SSO.
    Show version:
    sh ver
    Cisco IOS Software, IOS-XE Software, Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 03.03.02SE RELEASE SOFTWARE (fc2)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2014 by Cisco Systems, Inc.
    Compiled Thu 20-Feb-14 21:17 by prod_rel_team
    Cisco IOS-XE software, Copyright (c) 2005-2014 by cisco Systems, Inc.
    All rights reserved.  Certain components of Cisco IOS-XE software are
    licensed under the GNU General Public License ("GPL") Version 2.0.  The
    software code licensed under GPL Version 2.0 is free software that comes
    with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
    GPL code under the terms of GPL Version 2.0.
    (http://www.gnu.org/licenses/gpl-2.0.html) For more details, see the
    documentation or "License Notice" file accompanying the IOS-XE software,
    or the applicable URL provided on the flyer accompanying the IOS-XE
    software.
    ROM: IOS-XE ROMMON
    BOOTLDR: CAT3K_CAA Boot Loader (CAT3K_CAA-HBOOT-M) Version 1.2, RELEASE SOFTWARE (P)
    XXXX uptime is 1 day, 13 hours, 53 minutes
    Uptime for this control processor is 1 day, 13 hours, 56 minutes
    System returned to ROM by reload at 23:44:31 ADST Wed Feb 26 2014
    System restarted at 23:50:23 ADST Wed Feb 26 2014
    System image file is "flash:packages.conf"
    Last reload reason: Reload command
    This product contains cryptographic features and is subject to United
    States and local country laws governing import, export, transfer and
    use. Delivery of Cisco cryptographic products does not imply
    third-party authority to import, export, distribute or use encryption.
    Importers, exporters, distributors and users are responsible for
    compliance with U.S. and local country laws. By using this product you
    agree to comply with applicable laws and regulations. If you are unable
    to comply with U.S. and local laws, return this product immediately.
    A summary of U.S. laws governing Cisco cryptographic products may be found at:
    http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
    If you require further assistance please contact us by sending email to
    [email protected].
    License Level: Lanbase
    License Type: Permanent
    Next reload license Level: Lanbase
    9 Virtual Ethernet interfaces
    56 Gigabit Ethernet interfaces
    8 Ten Gigabit Ethernet interfaces
    2048K bytes of non-volatile configuration memory.
    4194304K bytes of physical memory.
    250456K bytes of Crash Files at crashinfo:.
    250456K bytes of Crash Files at crashinfo-2:.
    1609272K bytes of Flash at flash:.
    1609272K bytes of Flash at flash-2:.
    0K bytes of Dummy USB Flash at usbflash0:.
    0K bytes of Dummy USB Flash at usbflash0-2:.
    0K bytes of  at webui:.
    Base Ethernet MAC Address          :
    Motherboard Assembly Number        :
    Motherboard Serial Number          :
    Model Revision Number              :
    Motherboard Revision Number        :
    Model Number                       :
    System Serial Number             :
    Switch Ports Model              SW Version        SW Image              Mode  
    *    1 32    WS-C3850-24T       03.03.02SE        cat3k_caa-universalk9 INSTALL
         2 32    WS-C3850-24T       03.03.02SE        cat3k_caa-universalk9 INSTALL
    Switch 02
    Switch uptime                      : 1 day, 13 hours, 56 minutes
    Base Ethernet MAC Address          :
    Motherboard Assembly Number        :
    Motherboard Serial Number          :
    Model Revision Number              :
    Motherboard Revision Number        :
    Model Number                       : WS-C3850-24T
    System Serial Number               :
    Configuration register is 0x142 (will be 0x102 at next reload)

    I have a 3850 switch with an identical issue.  I have been unable to get the device to boot using the existing config .
    I have the following output in 'sh ver'
    Configuration register is 0x142 (will be 0x102 at next reload)
    BUT the device does not reload with 0x102, at the next reload, but continues to exhibit identical behaviour after repeated reboots.
    Kind regards

  • JTree change after Dnd

    Hello,
    I try to change the icon of the node source after a drag and drop in a JTree. Even if the icon information has changed in the node, I couldn't force the tree to reload with the changes.
    How could I do that ? Tell the treeCellRenderer to focus on the node source ?
    Regards,
    Anne

    You can use one of the methods of DefaultTreeModel
    ((DefaultTreeModel)tree.getModel()).nodeChanged(...)):
    void nodeChanged(TreeNode node)
              "Invoke this method after you've changed how node is to be represented in the tree. "
    void nodesChanged(TreeNode node, int[] childIndices)
              "Invoke this method after you've changed how the children identified by childIndicies are to be represented in the tree. "
    void nodeStructureChanged(TreeNode node)
              "Invoke this method if you've totally changed the children of node and its childrens children... "
    void nodesWereInserted(TreeNode node, int[] childIndices)
              "Invoke this method after you've inserted some TreeNodes into node. "
    void nodesWereRemoved(TreeNode node, int[] childIndices, Object[] removedChildren)
              "Invoke this method after you've removed some TreeNodes from node."
    Denis                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • After reloading CS4 back onto the same Comp I am no longer able to open any RAW files

    Heya,
    So decided since I was having some performance issues with CS4, that I would try reloading it all again back onto my system. So after it completed I open bridge and all of a sudden all my RAW photos cannot be seen as a preview tab. I click on them to open and I get a message in PSD saying that the format is not supported. Any ideas what might be going on?
    Thanks

    ANNNNNNDDDDD 10PTS!!! They only giv u 2 but I giv you 10
    Thankyou for your suggestion. I launched the updater from Bridge and now all my files have returned.
    Thanks once again

Maybe you are looking for