Expanded node and children are seen only after second expansion

Hi,
I am using a simple JTree control. I am populating children of nodes dynamically when the node is expanded. For this, I first add a "dummy" item for each node under the root, so that the "+" sign appears next to the node. When a node is expanded, I delete the "dummy" node and add children to it. However, the first time I expand the node, the node actually doesn't expand, though treeExpanded() gets called and all children are added correctly (I verified by debugging). When I expand the tree the second time, I can see the expanded node.
I am using TreeModel's removeNodeFromParent(childNode) and insertNodeInto(childNode, parentNode, childIndex) method to remove and add children respectively.I believe we don't have to explicitly call TreeModel's nodeChanged(), nodesWereInserted() etc?
Could you please let me know if I am missing something fundamental here?
Thanks in advance,
Praneeth

Hi db,
I didn't realize that there was a response to my earlier thread. I added the thread to my watchlist. I was under the impression that I would be notified via email in case of a reply to the thread. However, I didn't receive any. Anyway, I did reply to that response there now.

Similar Messages

  • Ipad takes photo every time I close the cover of its case. When I close the cover - it really does take a picture and saves a photo. Luckly, it make a click, and pictures are seen in the photo album, and it does not appear to be forwarding.

    When I close the cover - it really does take a picture and saves a photo. Luckly, it make a click, and pictures are seen in the photo album, and it does not appear to be forwarding. It is just gobbling memory and annoying as I can only delete these pictures one at a time.

    It seems to take a picture of the counter top = I do not see the keyboard.
    I am wondering ....It may be a kids game app that takes pictures of the screen or out the back camera. I am starting to think it may just be a sound effect when placing the iPad on its screen. So many things that may be unrelated but coincedental. It started in May (the sound) and so did the multiple pictures - starting to think they are not related.
    Thanks for the quick tip on deleting multiple pictures.

  • Can anyone explain to me why some of my photos are landing in events and others are appearing only in photo stream?

    I want to delete photos from camera roll on my iPhone to clear space to install ios7 but after importing photos to iPhoto on my macbook pro only 4 out of 339 photos taken in September landed in events, though all 339 are in Sept photo stream. It seems like on previous uploads all photos "fell" into events according to the day they were taken, as well as into photostream. I want to make sure these photos stick around permanently and do not exist only in photo stream where I imagine they will eventually be bumped from my computer (photostream). Can anyone explain why some of my photos are landing in events and others are appearing only in photo stream?

    You have uploaded two different things - pHotos are in one and only one event - if you have the same photo in two different events then you have imported it twice
    Please explain what you want - your initial question and yoru current comments are 180 degrees apart
    You say they are not all in events
    Can anyone explain to me why some of my photos are landing in events and others are appearing only in photo stream?
    Now you say they are
    All 15 pics appear in  Sept 2013 PS
    It sound to me like you have no problem except you imported some photos twice adn you may not understand how the automatic import form PS works - but that is not clear
    you can choose to have all of your My Photo Stream photos automatically downloaded. In iPhoto or Aperture preferences on your Mac, to select Photo Stream > My Photo Stream > Automatic Import. All of your photo stream photos will be imported into your Events, Projects, Photos, Faces, and Places folders in iPhoto or Aperture.
    The event they are imported into is MMMM YYYY PS
    If you import via iTunes sync or by connecting your IOS device via USB then they are importeed into the regular event structrue as defined in your iphoto preferences - and if you imoport via two or more different methods you will ahe duplicates
    LN

  • Nodes and links are not displaying in IE10 browser - mapviewer ps6

    Hi,
    Node and link are not visible on the IE10 browser where as in IE9 they are displaying properly.
    In IE10 browser ,
    when we set compatibility settings - Display All websites in compatibility view --> node are displaying properly.
    when we deselect this node are not displaying properly
    Is there any existing bug on mapviewer?
    Thanks in Advance
    Aruna

    DRK Montreal,
    try opening Terminal, and running the following command in the Terminal window:
    nslookup www.pinatize.me
    If you still have access to some of those other Mac computers, try running the same command on them also for comparison.
    Please include in your reply the full output from that command.

  • O ipod touch 4 e o 5 são celular ou somente mp4? the ipod touch 4 and 5 are the only mobile phone or mp4?

    o ipod touch 4 e o 5 são celular ou somente mp4?
    the ipod touch 4 and 5 are the only mobile phone or mp4?

    iPod's are just Media players. No mobile phone capacity outside Skype or Facetime.
    iPod forum is here:
    https://discussions.apple.com/community/ipod/ipod_touch
    This is the iPad forum. Different device.

  • Regisrty keys HKEY_CLASSES_ROOT\Photoshop.Application\CLSID and \CurVer are not updated after upgrading to cc 2014

    Regisrty keys HKEY_CLASSES_ROOT\Photoshop.Application\CLSID and \CurVer are not updated after upgrading to cc 2014
    this cause to "cant create ActiveX object" error in VB Scripts
    win7 x64, ps cc 2014 x64
    any ideas? thnks

    All I can so is show you what I see in that area of my Windows 7 registry but I have CS2, CS6 32, CS6 64,  CC 32, CC 64 and CC 2014 64 installed. 6 versions yet there seem to be 9 Photoshop Application dot keys.
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\Photoshop.Application]
    @="Photoshop Application"
    [HKEY_CLASSES_ROOT\Photoshop.Application\CLSID]
    @="{702fe898-3f8a-483f-8ca6-3bad95fa2489}"
    [HKEY_CLASSES_ROOT\Photoshop.Application\CurVer]
    @="Photoshop.Application.80"
    [HKEY_CLASSES_ROOT\Photoshop.Application.60]
    @="Photoshop Application"
    [HKEY_CLASSES_ROOT\Photoshop.Application.60\CLSID]
    @="{99aea70e-4d13-44bf-a878-33345cbfcbc8}"
    [HKEY_CLASSES_ROOT\Photoshop.Application.60.1]
    @="Photoshop CS6 Application"
    [HKEY_CLASSES_ROOT\Photoshop.Application.60.1\CLSID]
    @="{6DECC242-87EF-11cf-86B4-444553540000}"
    [HKEY_CLASSES_ROOT\Photoshop.Application.70]
    @="Photoshop Application"
    [HKEY_CLASSES_ROOT\Photoshop.Application.70\CLSID]
    @="{951ec38c-3de6-4bb8-8246-adf182e6421d}"
    [HKEY_CLASSES_ROOT\Photoshop.Application.70.1]
    @="Photoshop CC Application"
    [HKEY_CLASSES_ROOT\Photoshop.Application.70.1\CLSID]
    @="{6DECC242-87EF-11cf-86B4-444553540000}"
    [HKEY_CLASSES_ROOT\Photoshop.Application.80]
    @="Photoshop Application"
    [HKEY_CLASSES_ROOT\Photoshop.Application.80\CLSID]
    @="{702fe898-3f8a-483f-8ca6-3bad95fa2489}"
    [HKEY_CLASSES_ROOT\Photoshop.Application.80.1]
    @="Photoshop CC 2014 Application"
    [HKEY_CLASSES_ROOT\Photoshop.Application.80.1\CLSID]
    @="{6DECC242-87EF-11cf-86B4-444553540000}"
    [HKEY_CLASSES_ROOT\Photoshop.Application.9]
    @="Photoshop CS2 Application"
    [HKEY_CLASSES_ROOT\Photoshop.Application.9\CLSID]
    @="{16aa0b9e-79ac-43b5-86ca-ab961fbeed5f}"
    [HKEY_CLASSES_ROOT\Photoshop.Application.9.1]
    @="Photoshop CS2 Application"
    [HKEY_CLASSES_ROOT\Photoshop.Application.9.1\CLSID]
    @="{6DECC242-87EF-11cf-86B4-444553540000}"

  • HT4623 I have an iPad 4th generation and when I updated to iOS 7 I can't use FaceTime.  Every time I tried to sign in I get a message asking me to check my Network connection.  FaceTime and iMessage are the only application that give me this message.

    I have an iPad 4th generation and when I updated to iOS 7 I can't use FaceTime.  Every time I tried to sign in I get a message asking me to check my Network connection.  FaceTime and iMessage are the only application that give me this message.

    Try Reset all settings
    Settings>General>Reset>Reset All Settings
    Note: Data will not be affected but settings will be reset.

  • How can I get my photos from my iPad to my new computer? (iPad and iPhone are my only backups)

    My IMac died,  we bought a new one . how can I get my photos from my iPad to my new computer? (iPad and iPhone are my only backups)

    - Transfer iTunes purchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    - Transfer other music by using a third-party program like one of those discussed here:
    Copy music from Ipod to new computer...: Apple Support Communities
    - Make a backup of the iPod by connecting the iPod to the computer and right clicking on the iPod under Devices in iTunes and selecting Back Up.
    - Restore the iPOd from that backup.

  • HT1926 Quicktime stuttering, MOV file plays fine on my iphone but play it in my PC the sound and video stutters. happened only after the last update. how to fix

    Quicktime stuttering, MOV file plays fine on my iphone but play it in my PC the sound and video stutters. happened only after the last update. how to fix?

    Hi Richmoller51,
    Welcome to Apple Support Communities.
    See this article for some troubleshooting steps that can help with video playback in iTunes or Quicktime:
    Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/ts1718
    Best,
    Jeremy

  • How to create a graph representing a big tree(parents and children are know

    How to create a graph representing a big tree(parents and children are known)?
    Thank you so much!
    Also, I need to write the graph into a jpg/gif file or display the graph in the web browser.
    I got a code from JGraph and can create the graph I want, although unextendable. However, JGraph define the graph as class Gscene instead of Img or BufferedImg or RenderedImg. Therefore, I couldn't use ImageIO.write(image, ext, file) to write the graph into a jpg file.

    aiGrace wrote:
    How to create a graph representing a big tree(parents and children are known)?Hierarchical data structures are covered here all the time. Please search before you post. This topic has been covered over and over.
    Thank you so much!
    Also, I need to write the graph into a jpg/gif file or display the graph in the web browser. I got a code from JGraph and can create the graph I want, although unextendable. However, JGraph define the graph as class Gscene instead of Img or BufferedImg or RenderedImg. Therefore, I couldn't use ImageIO.write(image, ext, file) to write the graph into a jpg file.Did you read the JGraph API? I'm guessing it exposes a method to get the image data somehow.

  • I have an itouch 4G...problem is while on landscape mode whenever i press down left of the screen edge..ripples are seen ...similarly while we press LCD tv screen in between...and circles are seen around our fingre...what to do??

    I have an itouch 4G...problem is while on landscape mode whenever i press down left of the screen edge..ripples are seen ...similarly while we press LCD tv screen in between...and circles are seen around our fingre...what to do??

    - You can make an appointment at the Genius Bar of an Apple store and see what they say or call AppleCare
    - Just do not press hard.  The iPod screen includes an LCD screen

  • How can i arrange that movies and picts are stored only once?, how can i arrange that movies and picts are stored only once?

    how can i arrange that movies and picts are stored only once?, i find them in thumbnail, i movie, imovie thumbnails, and some times in cache.mov or as imovie proyects

    The movies themselves are stored only once. The other files you're seeing are small ones that are used to reference, display and access the main file. If you check the file sizes, you'll see that only one (the movie file itself) is large.
    If you don't want anything saved but the main file, stop using iMovie.

  • Adobe acrobat tool bar, windows and icons are very big after latest update

    im having a problem with the latest update of acrobat pro, the tool bar, windows and icons are very big after latest update. how to re size it???
    https://www.dropbox.com/sh/pbd33n1q2wirpq3/AABHjSRXo-crpYGVLaOrB2FVa

    Please check the doc : Hi DPI, Retina display support | Acrobat, Reader

  • Previous Meter Reads and Usage are not  correct after meter Proration

    It seems that during proration there are two meter reading available the one with the Meter Reading type as 03 ( Automatic Estimation ) and other is Meter Reading type 01 - MR By employee that is being  retrieved. The 03 reading type seems to be the reading after the proration and the o1 reading is the reading done before the proration . The reads are coming out on our invoices incorrectly. Usually there will only be one Meter reading  to be picked up. but it seems do proration it splits meter into 2 entries.  The entry  with with metering type 01 has the correct previous  and current meter reads but incorrect usage. The entry with meter read 03 has the incorrect previous meter read and correct current meter read but incorrect usage. Our print work bench generated fiction is  calling SU_DB_ERCHZ_SELECT_BILL_NEW  to retrieve the values but the values that it retrieves are not correct., The second records is being put on the invoice. The form that exist in the  SU_DB_ERCHZ_SELECT_BILL_NEW  is called  db_erchz_select_join and  is used to retrieved the usage and meter reads.. This information is then passed  to out user exit.
    The previous meter read  should be 5,073,998     and the usage should be 7500   
    Service       Meter No.       Previous Read       Current Read        Usage
    Water            750009               5,092,748              5,148,998            56250

    Try resetting the PMU…
    http://docs.info.apple.com/article.html?artnum=14449
    … and then subsequently calibrating your battery…
    http://docs.info.apple.com/article.html?artnum=86284

  • Partitions are read-only after sleep mod, not able to sleep again etc.

    I have strange problem, after resuming from sleep mode the system is often lagging, even for minute or so nothing loads. Sometimes it even stops responding at all, I cannot log in and/or start XFCE4. If I succeed to reboot, I get messages about readonly filesystem. May the problem be bad settings in fstab? I tried several combinations of 0 and 1 for the dump and pass for the two NTFS file systems. But even the root talks about read-only than.
    Or other case is most things works fine but I cannot make it sleep again, it just writes something like **Message: xfsm-shutdown-helper.c:1411: Using org.freedesktop UPower to suspend on the console where I am logged in and nothing happens.
    This is my fstab:
    devpts                 /dev/pts      devpts    defaults            0      0
    shm                    /dev/shm      tmpfs     nodev,nosuid        0      0
    /dev/sdb4 / ext4 defaults 0 1
    /dev/sdb5 swap swap defaults 0 0
    /dev/sdb6 /boot ext4 defaults 0 1
    /dev/sda1 /home ntfs defaults,uid=1000,gid=100,umask=0027  0 0
    /dev/sdc1 /home/Instalace ntfs defaults,uid=1000,gid=100,umask=0027  0 0
    Last edited by Behemot (2011-04-20 13:03:00)

    From your statement "...after resuming from sleep mode the system is often lagging, even for minute or so nothing loads." I was thinking you might have the problem discussed in this thread: https://bbs.archlinux.org/viewtopic.php?id=116355&p=1 but I see you have XFCE. Strange because this is exactly what other users and I are experiencing under KDE.
    Try checking if your CPU or a core of your CPU is at 100% usage.
    Last edited by dncrash (2011-04-13 14:15:27)

Maybe you are looking for

  • How to connect my Inspire 5200 5.1 Speakers to my XBOX? Pls Help!!!

    Dear all, I am in need of dire assistance to connect my Creative Inspire 5200 5.1 Speakers to my XBOX. If possible, I would like to maintain the full 5.1 functionality when watching my movies and playing games (that support 5.1 sound). What other cab

  • Can't sign in to my account

    I can't sign in to my account in the app store for MacBook. When I click on "account" in the app store which appears in the right side, a window appears to let me type the ID and the password. Each time I type the password the window appears again an

  • 'Query was changed' message

    Hi, I am using a query in my Web template as a Dataprovider. I changed this query and the web template started popping up this message in the warning. I tried to put in a insignificant change in the web template and save it again so that the timestam

  • Can't start GTS in 11i after refresh database ( SO URGENT )

    Hi, I'm new in this forum, and i need your help I'm working with OA EBS 11i and i have a serious problem that i'll describe to you : After finishing my restauration of my database, i do an applicatif autoconfig using this command "$AD_TOP/bin/adconfi

  • Namespaces dissappeared under SWCV

    Hi, In my ESR of XI dev (only), for two SWCV among 5, I have no more the Namespaces in the tree (left side). They completely disappeared ! I continue to see them if I open the SWCV (right side) or by doing a search. But why I cannot see them in the t