I am new this forum.

Hi alll,
I am new this forum.
I have a JTree that allows mutliple selections. I need to iterate through each of the selected nodes and do some processing on them. I thought I'd add them to a hashMap. Unfortunatley, I'm having trouble getting at the nodes themselves. looking back at a similar problem I tackled a while ago, I got round it by using tree.getLastSelectedPathComponent().
I can't generalise to get at all the selected Componenets though.
I can get at all the selected paths though. Does this help ? Can I get at the node, from its TreePath ?
Cheers,
Kate

Hi katedamond,
You can get a node from the path using TreePath.getLastPathComponent().
It will returns the node at the end of the path.
I hope this will help you out.
Regards,
Tirumalarao
Developer Technical Support,
Sun Microsystems,
http://www.sun.com/developers/support.

Similar Messages

  • Has anyone in this Forum had problems with installing and running Adobe apps on the new MacPro?

    Has anyone in this Forum had problems with installing and running Adobe apps on the new MacPro?
    I have been trying to install Photoshop CS6 & CC and Acrobat Pro XI on my Mac Pro (late 2013). I keep getting a 'configuration' error message and wondered if the problem was wide spread.
    TIA,
    Jerry

    Thanks, Martin.
    Good to hear someone has had success. The lack of it here is frustrating and depressing.
    Thanks again,
    Jerry

  • I have a new laptop and I am trying to download CS3. The site on adobe gives an error message and the one I tried from this forum downloaded CS3 extended, so my serial number does not work. Does anyone have any suggestions. Regards Vicki

    Hi,
    I have a new laptop and I am trying to download CS3. The site on adobe gives an error message and the one I tried from this forum downloaded CS3 extended, so my serial number does not work. Does anyone have any suggestions. Regards Vicki

    The trial is always extended. The serial number you enter determines whether it runs as standard or extended.
    I'm getting through fine with that link, so it must be a browser issue or some such thing. Try another browser.

  • HT1657 Hi All. I am new to this forum but hoping I can find some answers from some of you apple guru's out there. I have downloaded a mvie onto my iphone (which took forevere but I cannot find it to view it.Please help

    Hi All. I am new to this forum but hoping I can find some answers from some of you apple guru's out there. I have downloaded a mvie onto my iphone (which took forevere but I cannot find it to view it.Please help

    It should be in the Videos App - if it's not in there then have you got a film age rating set in Settings > General > Resttrictions that is hiding it ?

  • New Announcement in this forum

    I just saw, that Jan created a new announcement on top of this forum. Good !
    =>
    If you have java code to display on the forum, surround it with tags and the output formatter will format the code for you with syntax highlighting and with indentation intact. See thread Re: Where can I find the JAR-File of the JDAPI-demo FormDumper ? for an example.
    It works for PLSQL code as well.

    Good thread! And good announcement, Jan.
    Here are a few comments:
    What is an "empty b tag"?
    Here's how I do it:  When I post a message that includes ampersand characters such as the &amp91; for the [, and then go back and edit the message, the board software screws up the ampersands.   In order to preserve them, [u]every time I edit the message, I must add "amp;" after the ampersand, so it looks like this: &  If I don't, the [code] turns into an active tag.  The best way to get it right is to copy my message into a simple editor, and make corrections there, then paste it back into this board's edit window.    …so you can see why the "empty b tag" sounds good.
    As for history of where we learned the methods:   Francois learned of it <a href=http://forums.oracle.com/forums/message.jspa?messageID=960521#960521 target=_new>here.</a>  And I learned about it from Andrew P Clarke  (exactly 4 years ago) <a href=http://forums.oracle.com/forums/message.jspa?messageID=546435#546435 target=_new>here.</a>
    And incidentally, that code formatting feature failed <a href=http://forums.oracle.com/forums/message.jspa?messageID=1387245#1387245 target=_new>for a time last year.</a>
    Jan, I think you could clean up that announcement.  You show the second code as /code\.  But there should be no trailing backslash.  And now that you know how to edit and maintain those square brackets, you could show it as &#91;code&#93;...&#91;/code&#93;
    Thanks! [nobr]

  • Hello Everyone, I'm new to this forum and I'm pretty igno...

    Hello Everyone, I'm new to this forum and I'm pretty ignorant when it comes to networking so please bear with me. I have a WRT54GS w/SpeedBooster. My family an I recently took a trip. We've been getting a lot of bad weather here in the Midwest so I chose to unplug everything when we left. I fired up my laptop tonight and it did not automatically connect to my network like it usually does so I refreshed the network list and mine will not show up. However, an unsecured network with a really good signal does show up (I'm not sure if it's mine or not). Anyway, this has never happened before so I don't know where to start. Any help would be greatly apprciated. Thanks. Jon

    Use your desktop to set up your wireless network.
    XP
    go to My Network Place. You will see a monitor next to a globe with the name Linksys wrt54gs.  click on it and it will take you to the sign in page for your router.
    Vista
    Go to Network.  You will see router Linksys wrt54gs.  right click on it, then click on view device webpage.  you will be on the sign in page for your router.
    Use admin or your password to sign in
    Next click on wireless
    Set wireless mode to mixed
    Change network name from linksys to ?
    enable ssid
    save settings 
    click on wireless security
    Set security mode to wpa2 personal
    Set new password
    save settings
    Go to laptop
    Find new network
    right click on network name
    click on properties
    change your properties to match those on router under wireless security
    Greetings from Northern Ontario, Canada

  • Unable to install copy of PSE9 to new computer after installing the new drivers from this forum.

    I have a new computer and wanted to instal my previously downloaded version of PSE9. As the installers were outdated I contact the online chat and was directed to this forum. I downloaded the new installers and now need to look at how I download the PSE9 using the serial number. I know the number just haven't been asked to enter it and not sure if I have properly downloaded the PSE9.
    Thanks

    Unfortunately I am not well-versed in Mac matters.  See if the following articale helps:
    http://www.ofzenandcomputing.com/how-to-install-dmg-files-mac/

  • Why Is Search so Poor in this new BC Forum?

    Searching this new BC forum for "shipping address" returns exactly one article in done with quotes, and three articles without quotes.
    If you search the old BC forum on BusinessCatalyst.com for "shipping address" it returns more than 100 articles.
    Why is the searching so poor on this new forum?
    Has all the old content been migrated from old forum to new?

    Thats why though if you look at the BC forums compared to the other Adobe Forums Lynda this is a lot better layed out with extra navigation links, useful links and sticky items and well made documents and a already big FAQ Section
    Nothing is ever perfect but these are way better then the last lot and like Mario said. Once this starts populating more things like Search will return better results.
    But like Mario said, the quick search bits has been noted, I think Mario is looking/pressing on further improvements to that if possible.

  • I am new to this forum and a little confused.

    Hello. I am new to this forum and a little confused already.
    I want to get a sound card that will support asio drivers and the SB Audigy 2 ZS is looking good. It supports asio drivers. My question is what is the difference from a recording point of view between the X-FI extreme and the SB Audigy 2ZS. As far as I can see,nothing. Also where do you draw the line between asio supported cards and non asio cards? The most important aspect of a recording card that works/plays well is the asio drivers. Everything else is obviously related to the more money you spend the higher the sampling rates and maybe even DSP effects.
    Anyway the rig I use is used for playing music, gaming and making home DVD.s. The sound quality of a recorded analogue video needs to well recorded and thats where the SB Audigy 2ZS or X-FI Extreme come in.
    Regards
    Peter.

    babyatari wrote:
    Hello. I am new to this forum and a little confused already.
    I want to get a sound card that will support asio drivers and the SB Audigy 2 ZS is looking good. It supports asio drivers. My question iswhat is the difference from a recording point of view between the X-FI extreme and the SB Audigy 2ZS. As far as I can see,nothing. Also where do you draw the line between asio supported cards and non asio cards? The most important aspect of a recording card that works/plays well is the asio drivers. Everything else is obviously related to the more money you spend the higher the sampling rates and maybe even DSP effects.
    Anyway the rig I use is used for playing music, gaming and making home DVD.s. The sound quality of a recorded analogue video needs to well recorded and thats where the SB Audigy 2ZS or X-FI Extreme come in.
    Regards
    Peter.
    "Audigy 2 Zs" and "Audigy 4 Pro"
    - ASIO 2.0 drivers for low latency (as low as 2ms) multi-track playback and recording at 16-bit/48kHz or 24-bit/96kHz-.
    "X-Fi"'s
    - ASIO 2.0 support with direct monitoring at 16 and 24-bit at sample rates of 44.1/48/88.22 and 96kHz.
    So, if you record only DVD quality (24-bit/96 kHz) then there are not big differences.
    jutapa

  • Ok so I am having issues with charging my iPad as well. So I took advice from this forum and yes, if you turn the brightness down my iPad charges. Thanks Apple I just went and spent money on a new charger I didn't need. Really you need to fix this issue.

    Ok so I am having issues with charging my iPad as well. So I took advice from this forum and yes, if you turn the brightness down my iPad charges. Thanks Apple I just went and spent money on a new charger I didn't need. Really you need to fix this issue.

    Wow. Okay...
    I'll let the real veterans in this forum tackle your issues one after the other. But, I can tell you, all will be well.
    My only comment would be re: your computer specs:
    BJReis wrote:
    .  This may be due to somewhat older equipment:
    GHz Intel Core Duo MacBook Pro with a 4GB memory computer with Ddr3 running OSX 10.8.4
    To be completely honest, FCPX is a RAM hog. It just is. But, RAM is relatively cheap, and the pay-off is good.
    4GB is right on the edge, IMHO. 16G is ideal.
    I wish you luck, hang in there, and standby for more help.

  • New Use for this Forum

    Why not use this forum to communicate ways to extend the life
    of Freehand?
    Longtime users all find workarounds... some people will have
    to migrate, but not everyone. Even those that do may create
    dual-boot computer environments to access Freehand.
    There will be dead-ends of course, but there is usually an
    answer for most problems.
    I'm tired of having to relearn major programs when 90% of the
    labor is just fine in the old program.
    This is a problem, not just with Freehand, but other programs
    as well.
    I have no hatred... I just don't have time.

    word

  • New development forums

    I discovered that there's a whole new section I have never seen in the cisco forums that specifically targets developers:
    http://forums.cisco.com/eforum/servlet/CDN?page=main
    Amongst other things, there are separate forums for various APIs and a forum about IP Phone services.
    So I'm wondering if anybody working at Cisco would care to comment as to what the idea is with having multiple forums for the same purpose. Are we supposed to migrate to the new developer area and will posts be moved at some date and this forum closed, or what will happen with it?

    That is a news to me. Thanks for sharing. I hope Cisco can merge these forums so we have only one place to search.

  • From reading this forum and my own it experance the HP "eprint" email server is flawed!

    Having read on this forum and from my own experience only a limited number of email providers email addreses will be accepted by the eprint email address it certainly does not accept emails from hotmail.com and hotmail.co.uk they bounce almost before they are sent!!!
    So own up HP I bought in to your sales BS  and there certainly wasn't any caveats saying that you eprint system does it did not work with certain email providers.
    I note that someone calling himself an interested employee of HP  has been suggesting that its the providers fault, well I have been using hotmail for donkeys years and the only time my emails have bounced is when I have incorrectly entered the wrong send address configuration or the attachments were too large!
    I am getting on, but for the life of me I cannot found any eprint support contact email address on their web page, is there one? or is HP hoping that their customers will sort out their problems for them?
    For the record I can see my printer on line via the eprint web site and all the reports are correct so its not a fault at my end .
    So HP if you actually monitor this forum get your act together and give us what your sales blurb said it would!

    For those who are experiencing ongoing issues with their web services, you can attempt to try the following steps that may
    help resolve your problems.
    1.) Completely shut down your printer and restart it
    2.) If you have prints that have not printed, log into ePrint Center (or create an account if you do not have one) and
    then look for your printer status. If printer status is green but you still have pending jobs, delete the pending jobs one at
    a time (Starting with the oldest first). There may be a print job stuck in the queue that further restricts other jobs from
    completing.
    a. If option 1 or 2 above still doesn’t work, removing web services and re-adding web services will cause the printer to
    reattach to the cloud.
    b. Please note that if you attempt option 3, you will get a new eprint email address (and lose your custom one with no
    ability to get it back) furthermore, you will need to re-add your printer back to your ePC account.
    I am an HP employee

  • Hi there how are you guys out there of this forum? I got a question for y'a

    Hi there how are you guys out there of this forum? I got a question for y’all
    I wanted to know how I could record different folders using iTunes
    Cause when recorded 2000 thongs on the DVD
    There were 2000 songs to go through
    So I really wanted to have had folders and then the music recorded inside them
    So I could get right to where I wanted real quickly
    Could anyone please teach me how to do that real quickly?
    Can we do it with iTunes?
    I know we can do it with Nero.

    1) Go to file, select new playlist. Creat the playlaist.
    2) Download your music into iTunes.
    NOTE: CHECK 'Recently Added' before you download your music.
    If the select boxes has a check in them, turn it off by
    holding down the 'ctrl' key and selecting one of the
    checked boxes. This shold turn off all the checks.
    It would be better to clear 'Resently Add' of all
    previous downloads, but I don't know how to do that
    yet.
    3) under 'PLAYLIST' on the right, select 'Recently Add'.
    all of your song should show there with a check in the selection
    box.
    4)Hold the shift key and select the frist (selete records name),
    then the last recorded tune. All of the recordings shouls light
    up blue.
    5) While holding the 'shift' key, drag one of the records to your new
    playlist. All of the blue highlighted song will transfer to the new
    playlist.

  • How to effectively ask a question on this forum

    Ok, so this'll take a little explaining. I was kinda bored over my lunch break, so i decided I'd write a general reference for how to post well on this forum. I realize that many people aren't gonna read this the first time they post, but i thought it would be a good thing to reference when replying to people who post a poor question.
    _10 Ways to Post a Good Question on this Forum_
    _1) Write a descriptive subject line_
    This is the first thing that people see, and it influences how they read a question. Subjects like "Java error" tell people nothing about your problem. Subjects like "How to implement a SAX parser for use in multiple classes" are infinitely more useful.
    _2) Don't use phrases such as URGENT or HELP ME!!! or IT'S DUE IN AN HOUR!!!!_
    The people on this forum don't have the same priorities as you, and therefore don't care if your problem is urgent. In fact, they find it rude to assert that your problem should be solved before somebody else's just because you procrastinated. They also don't pleas for help too fondly. Typically posters who write this sort of phrase in their post has given up and become helpless, making it very difficult to guide them to the answer. Also, keep the caps lock off. THERE IS NOTHING MORE ANNOYING THAN ALL-CAPS POSTS. IT SEEMS LIKE YOU ARE YELLING, and people will make you aware of how it annoys them.
    _3) Dont post your homework assignments asking for "teh codez"_
    You will get flamed like none other for this sort of question. You may get codes, but when you submit them to your instructor, you may get suspended or expelled (depending on your school's cheating policy). The people on this forum are more advanced than you in Java, and can make it painfully obvious to your instructor that you cheated.
    _4) Write in normal English_
    Think of this forum as your supervisor or instructor, you want to sound professional and convey your question effectively. SMS speak or any other sort of abbreviation of the English language becomes difficult to read, and many people on this forum won't even try. This forum is filled with professionals in the Java world, and they are accustomed to reading true English (full sentences).
    _5) Don't be helpless_
    This forum is here mainly to help with specific problems, not to teach you Java. If you don't know where to start, a person is most likely going to tell you to write the solution out on paper first, breaking it down into small steps that can be accomplished by the computer.
    _6) Do your research_
    Many of the questions posted can be solved with a quick Google search. You should check a few places before you even post a question. They include: this forum (do a forum search), Google (do a Google search), the API's (http://java.sun.com/j2se/1.5.0/docs/api/), and the Java Tutorials(http://java.sun.com/docs/books/tutorial/)
    _7) Post code and errors with your question_
    The answer to your problem is in the error messages and the code. Instead of asking a general question about for loops, post the code that you have written and the error info that you get. When asking a question it is IMPERATIVE that you have tried to do it your own way, because the people on the forum mostly won't do it for you, they'll only point out where you have done it wrong and try to help you fix it. Don't paraphrase your error messages, because there are subtleties in the actual messages that you may unknowingly edit out.
    _8) Don't Multi-post_
    It is rude to post the same question multiple times or in multiple places in the this forum. This is for the same reason as #2, it makes it seem that you think your problem is more urgent or important than others' problems.
    _9) Don't resurrect dead threads_
    If a thread is 3 years old, nobody is going to remember it, so make a new thread to ask your question. If you have a question about something in the old thread, reference it through a hyperlink.
    _10) Take it easy_
    As long as the people in the forum see that you're legitimately trying to help yourself, they'll help you as much as they see fit. The biggest problem that newbies have is they rely on the forum to spoonfeed them the info, and it's not going to happen. They'll either get flamed or ignored. The people on the forum aren't trying to find "fresh meat to flame", they legitimately want to help you, and they'll typically give you fair warning if you're doing something annoying or unorthodox.

    There does seem to be a way to sticky posts, but I think only mods and admins have the power to do it. There's one over on the Generics forum : http://forum.java.sun.com/forum.jspa?forumID=316
    I've been trying to add a pseudo-signature to my posts as far as possible, with a link to a page which pretty much covers this stuff, only it's on JavaRanch:
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    But I've had a couple of occasions where the OPs thought it was directed at them and they got a tad upset :)
    And without hyperlinks, I'm not quite sure how many people actually take the pains to go to that page.
    Ah well, no one can say I didn't try.

Maybe you are looking for

  • Can't connect to internet wirelessly with WRT120N router

    ok, it's nearly 4am and i've been trouble shooting this problem since 11pm... love the technology, but it completely evil... let me start off by saying i'm not too tech savy. took a couple computer courses in high school and thought it was my passion

  • Is there a way to create sub-folders or sub-events

    I like iPhoto very much but my big complaint has always been that there is no way to create a sub folder or sub event. Or has this changed and I just can't see how to do it. I have about 6,000 pictures in my iPhoto library and a large number of them

  • Java Concurrent Programs

    I am currently exploring the creation of Concurrent Programs using Java (non-stored procedure) and am getting the following error in the log file: java.lang.ClassNotFoundException: com.boeing.java.skims.test.TestJavaConcurrentPrograms      at oracle.

  • Backup problem to asha 305

    I am trying to backup may data from my nokia asha 305 but i can't backup my msges..

  • ITunes store issues

    When trying to purchase a gift certificate I get the message: This Apple ID is not currently eligible to purchase gift certificates. My account also says it has 1 hidden purchase but nothing shows up on the hidden purchase list.