JTree.getNextMatch() only works on visible nodes?  Any alternatives?

I'm trying to search for and select a node in the tree based on user input. I was trying to use JTree.getNextMatch(), but that method returns a NULL TreePath if the node being searched for is not currently visible (if this is, indeed, the case, why isn't this noted in the API documentation???)
Anyway, is there a method that returns the path of a node, whether visible or not? I could then use that info to make the path visible using JTree.scrollPathToVisible(path).
I found a link at
http://www.exampledepot.com/egs/javax.swing.tree/FindNode.html
that describes various methods, including getNextMatch() - and from the comments in that code, I got the notion that this is only for visible nodes. But I was hoping that since 2003, there have been additional methods in the standard toolkit which I can use rather than manually descend the tree myself.

If you're using DefaultMutableTreeNodes, you can use the depthFirstEnumeration method, API is here: http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/tree/DefaultMutableTreeNode.html#depthFirstEnumeration()

Similar Messages

  • Lync Server 2013 Front End Pool Mediation Service only works on one node

    Hello, I'm currently experiencing an interesting issue with a Lync 2013 Front End Pool implementation on a customer, and I don't know if this is by design or am I missing something.
    We implemented 3 Enterprise Front End Servers in a Pool with a hardware load balancer and we have them configured also as a mediation Pool.
    We have a SIP trunk to an Avaya PBX which was perfectly working before on a Lync 2010 Implementation that we migrated to these new 2013 Front End Pools.
    Now the SIP traffic is only working when configured directly to one node of the pool. If we configure it to any other node the calls fail. We also tried configuring the HLB for port 5060 for the pool and pointed the PBX to that IP but the calls also fail.
    Searching around I read something about that the PBX has to be Lync certified in order to use DNS load balancing to send SIP traffic to the mediation pool, however, I don't think DNS load balancing will work because the other nodes doesn't connect the calls
    from the PBX, only one node appears to be listening for the SIP Trunk.
    I also restarted the mediation service on one  non-working mediation server node and the event viewer on the working mediation server node showed events that it restarted the service, Not the non-working one, it's like only one server from the pool
    is doing as mediation server. 
    So even if I get a Lync Certified PBX/Media Gateway, the mediation service doesn't appear to be load balanced, or how does it work in order to do that?
    Thanks.
    Eduardo Rojas

    Just a few things about what should be happening.  Each front-end server should be listening on the port configured in topology builder for the mediation service. So if that is port 5060, verify that you see that port listening on all front-end servers
    by running a netstat -ano.  From a local workstation, also make sure you can connect to that port via a telnet IPAddress 5060.  As you say, you should be able to send any of the three mediation servers an inbound call.
    Outbound calls will round robin out of the enterprise pool.  So you shouldn't see all of the calls coming out of a single server.
    A few other items I would look into:
    - Make sure your ports are right.  Ensure that you are matching ports on the Avaya and Lync.  It's not a hard requirement but makes life easier to troubleshoot.  So if the Avaya is 5060, just make sure TCP/5060 enabled in your mediation pools
    and that your gateways/trunks are also set to TCP/5060.
    - Look outside the Lync Event Viewer and see if anything strange (.net errors) are being tossed anywhere else during startup of the mediation service.  I once had to remove the mediation server installer (Program and Features | Remove) and rebootstrap
    the server because something went sideways during an install.
    Thanks,
    Richard
    Richard Brynteson, Lync MVP | http://masteringlync.com | http://lyncvalidator.com

  • I have 302 events in my iPhoto but only 14 are visible. Any idea what has happen to the rest?

    I have iPhoto 9.5.1
    I went to go look for my photos from Venice and realized that all of my events were gone except my photo streams. On the left hand side in iPhoto it tells me that I have Events (302), but only 14 show up. Also tells me that I have iPhotos (1,485), which a lot of are not showing up. I am only able to view my photo streams.

    What happened before this problem occurred? Have you moved your iPhoto library? Run any cleaning/duplicate remover apps? Shared the library with another account?
    Have you checked, if the search field at the bottom of the iPhoto window is cleared? If this search field is not empty, fewer events and photos will show.

  • My sound only works with my headphones any ideas?

    I am only getting sound with my IPAD when i used the headphones.

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/ts1630
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
     Cheers, Tom

  • Pickup Clock doesn't work for markers. Any alternatives?

    Hello everyone,
    It seems that Pickup clock doesn't work for markers (I guess markers are not considered an "event.") Is there a way to move markers as quickly as I do "event" data with pickup clock; e.g. a key command that allows you to write the location start time of your markers? Or even better, a way to move all data within locators to different song positions quickly?
    I'm scoring a film and trying to break down my master "spotting" session (in which I placed markers at the beginning of each cue) into separate files. Moving "events" is easy, as I just separate at the marker using "cut at spl" select all following, move SPL to bar 1, and use pickup clock. However, no "global track" data seems to move via pickup clock. Is there an easier way to achieve my goal?
    Thanks in advance for your help!

    musicspirit wrote:
    Is it that you want to move Global components that fit with a particular cue ( such as Volume Automation etc) around in the same Song? ie try one piece of music over two different scenes in the film? Or shift an entire cue slightly sooner or later against the picture?
    YES!! This would be AMAZING if I could do this easily. As a work around I change the actual movie and of the dialog / sound FX tracks, which can take some time to get them correct and leaves you with multiple song files. It would be much easier if there was a way to grab everything within your Left and Right Locators, and be able to move it around, copy and paste, etc.
    I tried experimenting with Split/Cut/Insert Time and a segment of regions which included some volume/fader changes - no dice. Logic can copy automation vertically track to track but not in a Linear way.. though I may be speaking in complete ignorance.
    I'm going to read up on Split/Cut Time as well, as this maybe the key. As for your automation issues, I know logic will not copy / paste automation when there is no "node," (i.e. if you are cutting on bar 5, but the last node was on bar 3 and the next on bar 7, it will not "go back to 3" to get the proper levels) so in the past I have placed nodes on the beginning and end of the section I want to copy, and the automation then copied fine. Of course if you have a lot of automation, it can be a PITA to place nodes in each track, but it does seem to work. Hope that helps!

  • Let Auto-Map in Transform work with COLLAPSED nodes/tags ?

    When I open for a "Transform" activity the mapping editor and drag one complextype from one side to another on the other side then Auto-Mapping only works if the node/tag trees on both elements/sides are full expanded.
    If they are collapsed then auto-map does (currently) not work.
    Is there a way (option) to tell JDeveloper to look INSIDE collapsed nodes/trees and to auto-map the elements anyway?
    Peter

    Hi,
    Have you checked if the "outside" ACL is getting hitcounts?
    Could also be usefull to check the logs through ASDM monitoring and see what happens when you attempt the connection.
    The NAT configurations seem correct to me.
    Have you tried to test the connections by briefly allowing all traffic from outside? (Since the only place people could connect to is the forwarded ports.) Have you tried to add the current DHCP IP of "outside" to the ACL and see if it makes any difference?
    If no configuration change makes a difference I would suggest using the ASDM monitoring to take logs of what happens.
    You could also use the "packet-tracer" command
    Format is
    packet-tracer input outside tcp
    And copy/paste the output here.
    - Jouni

  • Audio only works for Netflix

    Configuration:
    Apple TV (3rd Generation)
    Denon Receiver
    Samsung LED TV
    Connected via HDMI
    Sound works fine for Netflix but nothing else works - Youtube, Inetrnet Radio, Podcast, Vimeo, etc. The picture works fine but no audio. Downloaded and installed the most recent firmware. Any ideas?

    Sound works fine for Netflix but nothing else works - Youtube, Inetrnet Radio, Podcast, Vimeo, etc. The picture works fine but no audio. Downloaded and installed the most recent firmware. Any ideas?
    I just purchased the new apple 3rd generation. During set-up, I downloaded the latest up-date. I have the same trouble... 'Audio only works for Netflix'. Any fixes?

  • Airplay only works for Netflix

    I'm using an iPad Air running iso 8.1.2. I can watch Netflix using airplay but can't show anything else. Apple online support indicates I need to turn on mirroring, but I can't find the switch, their example shows mirroring in iso 7 on a phone and doesn't help. My objective is to show a Numbers spreadsheet using airplay during a meeting. Can you help?

    Sound works fine for Netflix but nothing else works - Youtube, Inetrnet Radio, Podcast, Vimeo, etc. The picture works fine but no audio. Downloaded and installed the most recent firmware. Any ideas?
    I just purchased the new apple 3rd generation. During set-up, I downloaded the latest up-date. I have the same trouble... 'Audio only works for Netflix'. Any fixes?

  • Iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    iphone 4: Home Button Not Working. The home button only works when it is connected to iTunes, once i disconnet it does not work, i have tried a restore to factory settings but it still is not working. Any suggestions?

    Apple, as I said, does not repair your iPhone. All hardware service issues are handled by replacing the unit. So they can't handle the home-button issue without also addressing the issue of the cracked screen, for which they'll almost certainly charge you. But you can make an appointment at an Apple Store or call Apple tech support and plead your case.
    Regards.

  • Can't sign in using any 3rd party email client with my iCloud account on any Mac. Tried every settings, My iCloud only works with Mail.app

    Can't sign in using any 3rd party email client with my iCloud account on any Mac or any other Mac. My iCloud will only work with Mail.app. All the clients I tried work perfectly well as long as I sign in with somebody else's iCloud account. But mine won't work no matter the client (Postbox, Unibox, Airmail...) and no matter the computer.
    I can access my account on iCloud.com, but I can't use email clients without getting error messages prompting me to check my password or login.
    I was able to use those clients in the past but a couple of months ago I got logged out of Airmail and the issue started just like that!
    I tried every possible mail server settings including the following:
    IMAP information for the incoming mail server
    Server name: imap.mail.me.com
    SSL Required: Yes
    If you receive errors when using SSL, try using TLS instead.
    Port: 993
    Username: The name part of your iCloud email address (for example, emilyparker, not [email protected])
    Password: Your iCloud password
    SMTP information for the outgoing mail server
    Server name: smtp.mail.me.com
    SSL Required: Yes
    If you receive errors when using SSL, try using TLS instead.
    Port: 587
    SMTP Authentication Required: Yes
    Username: Your full iCloud email address (for example, [email protected], not emilyparker)
    Password: Your iCloud password

    Those are the correct settings, and they work with any email client that supports Imap.
    Try again.

  • My ipod nano 4th generation only works when it is plugged into the computer; otherwise, the screen turns black and it is completely unresponsive to any efforts such as pushing buttons, reseting, etc. What should I do?

    My ipod nano 4th generation only works when it is plugged into the computer; otherwise, the screen turns black and it is completely unresponsive to any efforts such as pushing buttons, reseting, etc. What should I do?

    Sounds like the battery is shot and in need of a replacement.  You can have Apple replace the battery for a flat fee or you can send it into a third party repair center for a bit less.
    Not much else you can do for troubleshooting this one.
    B-rock

  • Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either.

    Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either. Anyone have a solution?

    Upgraded to os7 and done my updates on the apps as they appear.. Any function to do with the iBook store is not working or visible.  The purchase at the end of a sample book doesn't work either. Anyone have a solution?

  • My iPhone 5 is not charging properly and only the left speaker in any headphones is working

    Hi folks my iPhone 5 is not chagrin properly and only the left speaker on any set of headphones is working how do I report to apple

    Will not turn on, will not turn on unless connected to power, or unexpected power off
    No sound through stereo headset

  • I have an iPod Video. (30GB 5th gen) The headphone jack only works if I push the headphone cable input to one side and hold it t here. If I leave it alone it either doesnt play at all or I hear a crackling sound. Any suggestions? Thanks.

    I have an iPod Video. (30GB 5th gen) The headphone jack only works if I push the headphone cable input to one side and hold it t here. If I leave it alone it either doesnt play at all or I hear a crackling sound. Any suggestions? Thanks.

    There are threads ongoing on similar topics. This is not a suitable topic for this forum.
    I will pass on any comments from the other threads and original post in this one, but I'm closing this topic and any further petitions like this as it will just result in "Creative-bashing" and unproducti've comments.
    Cat

  • Any ideas why the sound only works on about half of my apps?

    Any ideas why the sound on my ipad only works on about half of my apps?

    The problem of tracks becoming de-linked between iTunes and the music files in your iTunes music folder happens for different reasons - this seems to come up fairly commonly in this forum.
    The solution can be to locate each song in the iTunes library, as you mentioned - or, but wait, before I get to that...
    trouble finding the original track in your iTunes music folder? maybe look for it under compilations, or if not using the 'group compilations preference' then look in the folder under the songs artist name, but what song artist name iTunes uses depends on what you have in the metedata tag spot for album artist or song artist. Any varyation in artist name spelling, in the menu item 'get info' metadata for any selected individual track will cause iTunes to create that as a separate artist folder in the library, even names like 'various' or any difference at all (even the word 'the' can change where in your iTunes music folder a track gets placed by iTunes). You can try to use the finder function of find file (finder munu item outside of iTunes) to locate hard to find items.
    Back to how to re-link any de-linked tracks .
    There may be scripts that can help re-link de-linked music files - or, at least provide you a list of such files, Scripts are easy to install and use...
    at Dougs Scripts, there is one called iTunes Track CPR that might work
    http://dougscripts.com/itunes/scripts/ss.php?sp=itunestrackcpr
    or, if you just want a list of de-linked tracks, go to
    http://dougscripts.com/itunes/
    and find the script called List MIA's, this will create a text file listing all de-linked tracks
    if you review the thread at
    https://discussions.apple.com/thread/3633708
    also the thread at
    https://discussions.apple.com/message/17513078#17513078
    you may find more insight into dealing with this kind of issue there, although some of that thread may not apply to your case, aspects of it might help.
    Good luck.

Maybe you are looking for

  • Can no longer boot from ANY OS disc on MBP

    I recently purchased a 15" 2.16ghz Core Duo Macbook Pro. It came with the original 10.4.5 discs. The previous owner installed 10.6 on it using a retail disc, then upgraded to 10.6.6. I had planned on upgrading the original hard drive. However, I cann

  • Error when trying to create Excise Invoice

    Hi All, We have an issue when generating an Excise invoice for domestic transaction, it was fine some time back, parallely other modules are doing customization and the error developed recently. When we user J1IIN to create the Excise invoice we get

  • Tabular Connection - Blank Power view generation is taking time.

    Hello Team, Got a question over the Power view report creation with the default settings. We are having two tabular model connection files (bism) which were created in the SharePoint. By using the Connection 1, It is taking around 6 seconds to have t

  • IMovie 10.0 and re-dating movies - go missing

    Hi, I have used iMovie in the past for kids school projects, but now I have begun working with about 17 years worth of home movies. I burned them to DVD on a sony DVD player and moved them to the mac using Handbrake to create m4v files (some are mp4

  • Directory or Folder creation in server

    Hi,      Is it possible to create a folder or directory in the server through code..Is there any function module or class there.. If there means plz give the sample code.. Another part..After creating the folder is it possible to give full access to