JTree doesn't refresh when adding node in a node

Hello,
I have a strange problem
I have a JTree, with a root, and two nodes, which have nodes...
I have one node that is expanded, and the other is collapsed.
I made a method that enables me to add a sub node to the node selected by the mouse.
If I select the collapsed node and use my "add" method, and then expand the node, the node is here. No problem.
If I do the same thing on the expanded node, the tree doesn't seem to be willing to refresh. I can use some refresh(), expandPath()...and other methods to make it refreshed, but it doesn't care... is there some particular method that I must use, a listener that I must add to the tree....?
Any help would be appreciated
Thanks 4 help
Philippe

You need to call nodeStructureChanged(parentNode) on the model.

Similar Messages

  • [Photoshop CC 2014] Click&hold-move-release doesn't work when adding adjustment layer from the layer panel

    When selecting a menu item I used to click the left mouse button and hold it down, move the pointer to the desired menu item and release the mouse button. Everything works fine in the mine menu, but there's a problem when adding new adjustment layer from the layer panel: when I release the button nothing happens, I have to press the button again. In previous PS version it worked fine. How can I fix this?

    I don't think that is user fixable, meaning you'll have to wait till adobe fixes it with an update.
    Photoshop cc 2014
    windows does not work
    mac does work
    Did you already post over here:
    [Photoshop CC 2014] Click&hold-move-release doesn't work when adding adjustment layer from the layer panel

  • Master detail refresh when adding new record

    Guys,
    Can't believe I need to ask this question ....but here we go
    when adding new master record --> I want to refresh the detail record..... in my case old detail records stays as it is until i click the save button
    for detail panelformlayout-->partial trigger--> i set the ids of master panelformlayout and newMasterrecord button..... but still it doesn't refresh the child record when new master record is being created.....
    any thought will be greatly appreciated

    In application module it works fine......
    Even on the page when i click next/previous button on masters it refreshes details information.
    but when i click the button "create" it doesn't refreshes details...... (but when i save the information, i certainly see the updated details)
    seems like there is some settings or binding i need to check but can't able to find one.....
    any help is greatly appreciated

  • How can I see more than 100 users when adding users to a node?

    When adding new users through the User Management interface, only the
    first 100 entries are listed. How do I increase the number of entries
    so I can see the next hundred (or more) users? Is this done via the server
    configuration parameter maxsearchresult?
    <P>
    The GUI Add User to Node option was meant for infrequent adds in smaller
    environments. In large deployments (more than 100 user adds at a time), you
    should be using the command line script "unidsattach". See the Administrators
    Guide for more details on the command.
    <p>
    The parameter, maxsearchresult, is meant to limit the number of users that can
    be returned on a search request by the calendar client. For example, if you have
    1000's of calendar users and someone tries to search for all of them, this
    parameter will make sure that the user is not left waiting a long time for
    results.

    In Settings > Notification Center, try turning "on" all the six buttons under "Today View".  Also turn "on" the top two buttons under "Access on Lock Screen".  Doing that should show you "Tomorrow" at the bottom of Noticiation Center.

  • Disk Utility doesn't refresh when inserting new DVDs

    I'm in the process of copying a few DVDs by making an image of them first and then burning the image onto a blank DVD through Disk Utility.
    After I'm done with one and insert a new DVD to copy, Disk Utility doesn't refresh to show me the new disk is in the drive. Is it normal?
    If it is, is there something I can press so that Disk Utility manually refresh its listing of drives?
    I find that quitting and restarting Disk Utility just to make a new image is so inefficient.

    I am suddenly having the same problem. When I insert a blank disc either cd or dvd it does not show up in the left column in disc utility. I have tried closing and then relaunching disc utility but nothing. The disc shows up on my desk top but not in disc utility. I fear this is a Snow Leopard problem. Toast has no problem recognizing the disc and burning to it.

  • Eigrp routes doesn't refresh when neighbor down

    hi guys, need some tips for troubleshooting an ongoing issue, but can't do the changes anymore untill next call and yes the issue is still ongoing.
                           WAN1 <--------------------------------------------------------------------------------------------> WAN2
                               |                                                                                                                                       |  
                       metro ethernet ME-3600X-A  <----> ME-3600X-B  <----->  ME-3600X-C<----> c3560v2
    I have 3 metro ethernet switches and a c3560v2 switch connected as above. The WAN1 redistributes all routes to ME-3600X-A's eigrp and WAN2 redistributes all routes to c3560v2 's eigrp and these two propagates all their eigrp routes to ME-3600X-B and ME-3600X-C  which are in the same eigrp AS. And all link/connections are point-to-point.
    Now, when the link between ME-3600X-B  <----> ME-3600X-C is physically disconnected, the ME-3600X-C's eigrp still points the route(s) to the ME-3600X-B's p2p ip as its next-hop - which is down(neighborship between them goes down, but still the routes doesn't refresh/rebuild). However, switch c3560v2 has route to the same network learnt from WAN2.
    Wonder why, need inputs please? Thanks.

    You shouldn't reference the CrystalReportViewer in the Page_Load handler, since there's issues with serialization of the report source:
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/
    en/en/CrystalReports_dotNET_SDK/crsdk_net_doc/doc/
    crsdk_net_doc/html/
    crconsdkfundamentalspersistencepageloadeventhandler.htm
    In fact, you should save the report source in session, and bind it to the viewer on post-back.  Sample code can be found here:
    http://resources.businessobjects.com/support/communitycs/
    FilesAndUpdates/sample_applications_for_.NET_developers.pdf
    Sincerely,
    Ted Ueda

  • Link to Word document doesn't refresh when running from Infoview

    I have a report that contains an OLE Object link to a Word Document.  If I modify the document and schedule the report through Infoview, it doesn't pick up the change.  If I refresh the report through Crystal Reports it does pick up the changes.  Any suggestions on how I can get the Infoview scheduled report to pick up the changes?
    Thanks,
    Tony

    Hello Tony and Co-Experts,
    I am facing exactly the problem Tony had:
    - Embedded a Word document as linked OLE object into a crystal report and stored it to Enterprise repository.
    - When opening the report with CR Developer from my workstation, changes in the .doc file are reflected, the report is updated
    - However when displaying and refreshing the report on the BO Server via InfoView changes aren't reflected.
    The OLE link is set to update automatically (under menu edit -> links)
    I tried to store the report to the enterprise repository with and without data. Yet no difference and no update in either case.
    Neither scheduling nor opening and refreshing the report in InfoView helps.
    So what am I doing wrong?
    - On our BO server we have not installed Crystal Reports Developer. Is this a prerequisite for the OLE links to update?
    - And Tony wrote that he could resolve this by changing the logged on user with CR Job Server. Where and how would I change this user?
    - Any other suggestions?
    Many thanks in advance!
    Konrad

  • Video doesn't slow when added to timeline of different frame rate

    I'm having trouble understanding what's going on here.  I have a video shot at 59.94 fps, and I add it to a sequence that is set at 29.97 fps.  It plays back normally which makes sense if premiere is dropping frames by 1/2, but the drop frame indicator says that it isn't dropping frames.  The clip also runs the same length.  The interpret frame rate for the clip in the project window says 59.94 fps, so if it's added to a sequence that is set at 29.97 fps and it's NOT dropping frames, shouldn't it be slowed down?

    OK cool thank you very much.  So I've been doing some research to figure out the best way to edit this project.  The problem is that I have some GoPro videos shot at 1080X1920 and 59.94 fps and some at 480X840 and 240 fps.  But the catch is I want to make the final product work well for Youtube.  This is how I feel I should go about getting the best quality for my final video.
    1.  Set the sequence settings to 720X1280 (which is what I will export as so that the 480X840 doesn't loose as much quality compared to having to resize up to 1080X1920 to match the other clips).  I don't think there's much quality loss in down-scaling the 1080X1920 to 720X1280 (if any, or is there?), so it's kind of a happy medium for both frame sizes that I have and it's still good for Youtube.
    2.  Apparently Youtube really works well with 29.97 fps, so this is what I will set the sequence frame rate at.
           **Another side question I have is what if my sequence frame rate is set at 29.97fps and I interpret the frame rate of a 59.94fps clip as 29.97fps and add it to the sequence.  Now if I use the rate stretch tool to speed up the now slowed down clip to 200% so that it plays at normal speed.  Will Premiere remove frames to speed up the clip or does it really increase the rate of the frames so that I don't loose any frames?**  My guess is if I export at 29.97fps it will remove half of the frames.
    Is it not possible to have an exported movie clip that contains multiple frame rates?

  • Explorer doesn't refresh when moving/deleting

    Hello,
    I recently started using W8 and at the moment when i change the name of a file or add a new file to a folder i have to manually refresh the folder in order to view the change. I have read about similar problems in W7 but the solutions dont seem to work.
    Any help would be appreciated.
    Thanks

    I found a fix for my situation that had identical symptoms as yours. After tons of Googling and trying numerous suggestions and nearly resorting to a reinstall, I found my problem was SIMPLE! I had noticed that there were some times when I could change a
    file/folder and it responded instantly, so I started to observe what was unique. I noticed if I browsed to folders in Windows File Explorer under "This PC", any changes/refreshes worked fine, but if I browsed to the same folders by going into
    any folders pinned under "Favorites", they needed to be manually refreshed or revisited. It turns out the problem was the links in Favorites were broken. I copied my user profile in the past during the install of Windows 8 and so some of these links were referencing
    the old "Start In" path on the shortcuts. SOLUTION FOR ME: Delete any custom links in Favorites, then browse to the folder in This PC and drag it back to Favorites to create a new, correct link. Works like magic now.
    Chris
    Chris

  • PC doesn't boot when adding PXI card

    Got a problem today. I have a PXI1042Q chassis running to a PC
    The chassis had a slot free and I added another PXI5922 and the PC stall at the bios splash screen
    More into details:
    The PC is a DELL Optiplex GX620 running XP (current update) with BIOS Rev. A07
    LabVIEW 2011 full Dev as august 2011 distribution
    PXI chassis 1042Q filled with:
    1: 8360 (1.0.2.0)
    2: 6652
    3: 5124
    4: 5900
    5: 5922
    6: (5922)
    7: 5422
    8: 6251
    Slot6 free, no problem
    Add another 5922 in slot 6 , system doesn't boot and stall at the BIOS start splash screen
    Free slot6: no problem
    Pull out slot5 5922, enter slot6 5922: no problem (system found new card,installs driver..., selftest OK)
    Reinstall slot5 5922: no Bootup
    Pull out Slot6 5922: no problem
    Before I start shuffling the cards (well some of them ) any ideas someone (at NI) ?
    Or might there a DMA/PCIchannel/Interupt limit?
    (I just want to avoid wild card swapping ... )
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

    Updated the BIOS... no change
    I pulled out the 5900 : not booting
    pulled out the 5124 : is booting
    swapped 5900 with 5124: not booting
    seems that I have no chance to run three scope cards in this setup
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

  • I have a checkbox on my page, but it doesn't refresh when I refresh my page after I changed it's status.

    1.I open a webpage which has a checkbox without checked
    2.I clicked this checkbox, so it's checked
    3.Then I refresh this page, the checkbox still checked rather than unchecked;

    You need to do a hard refresh and bypass the cache to reset such form data.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)

  • Exchange Rates Screen Appears when Adding a Product to Stock Transfer

    When we add a product to the stock transfer document, the exchange rates screen appears.  Does anyone know why this happens?  The product is purchased in an alternative curremcy (USD) but the cost price recorded in the database is in local currency (GBP).  And the products have been invoiced.
    Thanks

    My client only provides an exchange rate when the specifically require it for a transaction.  So no, the exchange rate isn't defined for that day.  But this only happens with a couple of products which were on the GRPO in USD, which is why im thinking that has something to do with it, but the value of the stock is in local currency (GBP), so why does it prompt for exchange rates?
    It also doesn't happen when adding these same products to any other marketing document.

  • The Jtree is not refreshing with new values when mouse click on the node

    hi ,
    I am creating a tree from a vector .The values in the vector is coming from the JTable data after satisfing the some condition. But the data in the Jtable is changing time to time so the data in the vector is also changing .
    But the problem is that when first I create a tree with that data the tree is created but for the next time I click on the tree node the tree is not changing i.e. it is not created with the new values that is stored in the vector at that time .what to do .Please help
    I am using DefaultMutableTreeNode for creating the tree .In starting I have created one root and the one it's child .Now the next subtree of the root child have to be created by this vector data. this subtree should be updated according to the values in the vecter.
    public void valueChanged(TreeSelectionEvent e) {
    //code here
    subtreecreat();
    //some function that create tree after cheching the some condition here
    subtreecreat() {
    Enumeration en=vector.elements();
    while(en.hasMoreElements())
    DefaultMutableTreeNode servername = new DefaultMutableTreeNode(en.nextElement());
    node.add(servername);
    Please help it is very urgent
    Thanks in Advance,
    anum

    Well, you can either use a custom TreeModel that tracks your Vector, or you can use a DefaultTreeModel and call model.reload(node) to refresh the tree below the specified node.

  • Is it possible to specify the nodenum when adding a node to a RAC database

    hi gurus
    I have a 10.2 one-node cluster database,the olsnodes show that the current node has nodenum of 2(because I removed the nodenum 1 before because the machine needs to be replaced),now I want to add a new node to the cluster to replace the priviously removed node1,but finally I found that ORACLE will use nodenum 3 for the new node instead of nudenum1,
    olsnodes command shows:
    +[oracle@rac2 bin]$ ./olsnodes -n+
    rac2    2
    rac1    3
    Is it possible to modify the nodenum or specify the nodenum when adding a new node?
    Hoping I am understood,thanks for your time.

    hi all
    I have found the way to do it. Moidy the rootaddnode.sh to the desired nodenum before running it.It worked.
    Thanks still!

  • BUG - OJC 10.1.3.2 doesn't allow upcast when adding to generic Collection

    JDeveloper: 10.1.3.2.0.4066
    Compile Errors:
    method asList(Crusty, Slush, Powder) not found in class java.util.Arrays
    method addAll(java.util.List<Snow>, Light, Heavy) not found in class java.util.Collections
    When adding a group of elements to a Collection which uses generics, the ojc compiler does not allow upcasting, but the same upcasting is permitted by the javac compiler.
    The following code is taken from Bruce Eckel's Thinking In Java, 4th edition, page 396. It reproduces the compile problems:
    import java.util.*;
    class Snow {}
    class Powder extends Snow {}
    class Light extends Powder {}
    class Heavy extends Powder {}
    class Crusty extends Snow {}
    class Slush extends Snow {}
    public class AsListInference {
      public static void main(String[] args) {
        //Following line compiles under javac but not under ojc:
        List<Snow> snow1 = Arrays.asList(new Crusty(), new Slush(), new Powder());
        System.out.println("snow1:");
        for (Snow s : snow1) {
          System.out.println(s);
        //Following line doesn't compile under javac or ojc:
        //List<Snow> snow2 = Arrays.asList(new Light(), new Heavy());
        List<Snow> snow3 = new ArrayList<Snow>();
        //Following line compiles under javac but not under ojc:
        Collections.addAll(snow3, new Light(), new Heavy());
        System.out.println("snow3:");
        for (Snow s : snow3) {
          System.out.println(s);
        //Following line compiles under both javac and ojc:
        List<Snow> snow4 = Arrays.<Snow> asList(new Light(), new Heavy());
        System.out.println("snow4:");
        for (Snow s : snow4) {
          System.out.println(s);
    }

    Loren,
    thanks will file this too
    Frank

Maybe you are looking for