How do I find out which JComponent has the current focus

I see myJComponent.requestFocusInWindow();
but I can't see anything like
JComponent focusIsOn = myJContainer.getFocus();

In JDK1.4 the FocusManager was replaced by the KeyBoardFocusManager and I believe you would use:
KeyBoardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();

Similar Messages

  • How to find out which user has the permission to execute startsap ?

    Hi All
    How do I find out which user has the permission to execute the startsap and stopsap? Do I control the permission on those script using windows standard authorization? For example: only allow certain user have the read and write permission?
    Thank you.!
    Vincent Lo

    Well to me this is really weird question..
    <b>noone un-authorized should have access to OS on your system</b>
    If this is valid you do not need to solve problems who can and who cannot start/stop SAP, because if you want to prevent some users from shutting down the SAP you have really hard job to do - there are many ways how to kill the SAP (for example killing relevant process from task manager, killing of database, messing with services etc.) - yes, this is harmful way of stopping SAP, but we are talking about attack, right? I would contact some Windows specialist to help you disable all the ways how to harm the running SAP. But still after that - there are many files that can be modified/deleted so SAP will crash after restart - you need to protect them too, etc.
    In case you take the first assumption as granted (and you really limit access to this server) you do not need to worry who can stop or start SAP - at the other hand it may be handy to be able to start/stop SAP from other users - for this you can run the stop/start script "under different user".
    But to answer the question - to me this is question just of access control (but really never tried that myself):
    <a href="http://technet2.microsoft.com/WindowsServer/en/library/c6413717-511e-42bd-bd81-82431afe4b2a1033.mspx">Permit or restrict access to a snap-in for a domain</a> (or see other related links down there on this page)
    Please award points for useful answers.
    Thanks

  • How can i find out what item has the focus on a form?

    I am disabling a field on a form, which works fine most of the time but occassionaly will throw an error saying that it cannot commit the action as the item is in focus.
    Is there a way I can detect which item on the form has focus before I try and disable my field?

    Hi Darren,
       I am not too sure whether you can find out which input element is in focus, but for your case I can suggest a workaround.
       What you can do is, set the focus away from this field you are disabling, and then try disabling this field. For setting other fields in focus, you can use the requestFocus() mehtod.
    Regards,
    Satyajit.

  • I moved to a new pc but have the FF profile from the old one and how do I find out which FF version the old FF was?

    I want to use the old version of FF from my previous pc. I saved the profile folder etc on the old pc. The old HD is attached to the new pc via USB. How do I tell what version the old one was?
    After installing the old version on the new pc I want to use the former FF profile file on the new pc installation of FF.
    I have the sessionstore backups etc. from 3/21.
    BTW I typed all this info earlier and support automatically butted in with a guess to what would be an answer. And in the process overwrote what I typed. Please try to get mozilla to prohibit this behavior.

    Sorry to hear that the forum lost your question.
    I'm not sure I understand why you need an old version of Firefox. Were you way behind in updates? Normally when you install the current version, it will seamlessly update/convert any obsolete files in your profile folder to current versions.
    Perhaps I'm answering the wrong question. If the question is: "how do I get a new installation of Firefox to use all my old settings" then I can give you a way to do that.
    ''This assumes you might have data in your new Firefox that you don't want to overwrite and preserves your current profile.''
    Go ahead and open your old profile folder in a Windows Explorer folder. At this level you should see a bookmarkbackups folder, among others. Later you'll copy the ''entire contents'' of the old profile folder to a new location on your C drive.
    '''Overview'''
    These are the steps:
    # Create a new Firefox profile
    # Remove everything from that new profile folder
    # Copy in everything from the old profile folder
    '''Create a new Firefox profile (Windows)'''
    Exit Firefox and start up in the Profile Manager by pasting the following into the Start menu search box (or Run dialog) and pressing Enter:
    firefox.exe -P
    ''Do not delete anything here! Any time you want to switch profiles, exit Firefox and return to this dialog.''
    Click the Create Profile button, assign a name like OldSettings, and skip the option to change the folder location. Then select that new profile in the dialog and start Firefox.
    '''Open the New Profile folder in Windows Explorer'''
    Firefox in the new profile should look like a factory fresh installation. Open the Troubleshooting Information page using either:
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * Help menu > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table, click the "Show Folder" button. Firefox will launch your brand new profile folder in Windows Explorer.
    Leaving that folder open, switch back to Firefox, and Exit. Either:
    * "3-bar" menu button > "power" button
    * (menu bar) File > Exit
    When Firefox closes, the profile folder should be front and center, or you can activate it using the Task bar.
    '''Copy Old Data in Place of New'''
    In that new profile folder, select all the contents and delete.
    Leaving that window open, switch over to your old profile folder. At this level you should see a file named places.sqlite. If that isn't visible, try moving up a level until you find it.
    Select everything (Ctrl+a) and Copy (either right-click > Copy or Ctrl+c).
    Switch to the empty new profile folder in other window and Paste (either right-click > Paste or Ctrl+v). This may take a minute since some of the files are large.
    '''Start Firefox'''
    Firefox should start up in that new profile with the resurrected old profile data. Success?

  • How can i find out which Macbook is the right one for me?

    I am looking into buying anew laptop and I'm currently considering a macbook as oppose to a windows laptop. which one is the right one for me?
    1. I will be using it for my work at college and university so it will need to have a reasonable amount of storage and have the correct programs.
    2. I use the internet alot.
    3. I have an ipod touch so i will need storage for my music.
    4. It will need it to be quite quick.
    5. It will need to support some software that i use on windows.
    Also, do you think a macbook is what i need as oppose to windows. what are the pros and cons of the macbook

    Prongs wrote:
    1. I will be using it for my work at college and university so it will need to have a reasonable amount of storage and have the correct programs.
    This is the most important question. I would check with your school. They may have a recommendation for what you need and the software you will need to use. They also may have a discount program for you to purchase your computer. If not Apple does have an education discount plan to give you a break.
    5. it will need to support some software that I use on windows.
    Hard to give an answer for this as we have no idea what your going to be using or what your school requires you to use. My sons college had specific programs he had to have.

  • My issue is not a particular add-on, but not been able to find out which one has the royan hourse in it, every morning it scans throuth all the site visited the day before and send the information somewhere!

    I first started thinking my all Forum passwords was stolen because all the link as mark as read, so I change my passwords but the problem persisted, so I installed a packet sniffer to see is was a problem of my password been taken as I changed them.. but I could not see that.... BUT as I watch the packets I notice al the domain links of the sites I visited the day before (100's) passing through.., I try testing again but only appends one a day (the first time, maybe twice a day) I open Firefox (3.6 - 3.6.13), how can I pin point the bad add-on? I remove the one I thought were the bad ones (a have 40 or so installed) with no luck, I ran Firefox in save mode and the problem went away!!.. Please help.. One of the add-on from the Firefox Add-on site is snooping on you users..

    Two thoughts:
    (1)     It is possible that your Adobe software was the result of belonging to a now-discontinued Adobe Print Service Provider program where for a certain annual membership fee, print service providers were provided with (a) both a Windows and Macintosh license to the Adobe print-oriented software products (such as InDesign, Illustrator, Photoshop, and Acrobat) and (b) special direct product support as well as the ability to put your name on Adobe's website as a member of this program. The program ended over a year ago if I remember correctly.
    (2)     You may wish to contact Adobe Customer Support (not Technical Support) and see if they can track down any and all licenses associated with your company. If you have the names of the former employees who worked with this software, it would be helpful. Likewise, if you were a member of the discontinued Adobe Print Service Provider program, you may have some options for upgrading/updating the software you have.
    Unfortunately, you cannot get any more definitive information about your situation on these forums.
    Good luck.
              - Dov

  • My Library has ten more songs than my iPod. How can I find out which songs are not syncing?

    My Library has ten more songs than my iPod. How can I find out which songs are not syncing?
    I recently had to purchase a new hard drive. Because the size of my music collection exceeds 140 GB, I stored all of my music on a separate external hard drive. When I exported everything back into my new iTunes library, I found that I had about 200 more songs than I had in the previous library. After deleting most of those extraneous songs, I was able to get my library close to where it was before. However, after syncing to my iPod Classic, I noticed that only 34,853 of the 34,863 loaded. How can I figure out which of those ten songs in my library did not sync to my iPod?
    Yellow12

    It may be that the 10 songs are unchecked. To find them select songs view.
    If there is a column Heading marked with a tick then click on it to sort by this column.
    If the Column is not there then View > View Options and select the Checked column which will then display
    Check the songs by putting ticks in the empty boxes and resynch. Now those tracks should go over as well

  • When using tethered capture I often get this notification "The metadata for this photo has been changed by both Lightroom and another application". This slows or stalls the loading of incoming photos. How do I find out which other application is changing

    When using tethered capture I often get this notification "The metadata for this photo has been changed by both Lightroom and another application". This slows or stalls the loading of incoming photos. How do I find out which other application is changing the metadata and stop it?

    Thanks Sean,
    I've had a look at the TC settings dialog and tried to keep it as simple as possible. I also had a copy of LR 4 on the hard drive so have trashed that also incase of any conflicts. LR seems to be running ok now but as said it's an intermittent problem.
    I also have a copy of Capture One on the hard drive so am going to uninstall that also in case it is trying to launch.

  • How can I find out which mac format my external hard drive has

    I have a PD LaCie drive.  I had formatted it about a month ago, but now reading several posts, it appears that the best format is mac OS extended (journaled).  I am not sure if that is the one that I had originally chosen.  How do I find out which format my external hard drive has?
    Thanks.

    Select it on the desktop or in the Finder's sidebar and choose Get Info from the File menu. If it doesn't show up in either location, check the settings in the General and Sidebar tabs of the Finder's preferences.
    (63966)

  • HT4796 How do I find out which version of Windows XP my computer has?

    I'm trying to transfer my information from a PC to a new iMac.  How do I find out which version of Windows XP is on my computer?

    XP is the version.
    Switch Basics: Migrate your Windows files or system to your Mac

  • I have my personal music (not purchased from Itunes) stored in two locations, on my PC and on an external HD. How can I find out which directory itunes uses to access this music? I am using Itunes version 11.4.0.18. Thanks

    I have my personal music (not purchased from Itunes) stored in two locations, on my PC and on an external HD. How can I find out which directory itunes uses to access this music? I am using Itunes version 11.4.0.18. Thanks

    Many thanks JEM24 for your help.  Ive just spent the best part of six hundred pounds on a new Sony Rx100m2 compact camera, so I have no interest in the Ipods camera at all really. I doubt Ill be watching many videos on it as Im very lucky in that I have a good Android tablet. Its more as a stock music player that Ill be buying the Ipod for, if indeed I do end up buying one. I dont like the idea of paying the exorbitant amount added for more memory space that Apple along with most other companies charge. In fact I read an article on this very subject just yesterday in the tech section of Flipboard. It stated in the article that in the case of the Iphone  the actual cost of each additional  gigabyte of storage  to Apple et al is something in the order of 60p.. This is certainly not reflected in the price us the customer has to pay at the till.. Its for this reason primarily that Apple in particular, because their products do not allow adding expandable memory of your own in the form of cheap to buy cards, that nobody in their right mind buys the 64gig etc Iphones..I am aware that we are discussing my potential purchase of an Ipod Touch here but you see my point. Many thanks again though for helping me.

  • How do I find out which tab was pressed?

    Our site is using tabs. We have few portlets in different tabs whose custom rendering depends on which tab the user has clicked.
    Programmatically, how do we find out which tab was pressed?
    We're using portal 9.0.4. Thanks for your help.
    Ashraf

    Thanks Sanjay for your quick reply!
    Option 2 looks like a potential solution. Not quite elegant as you indicated, but will work.
    I recall reading somewhere, before the release of 9.0.2.6, that in upcoming version 9.0.2.6/9.0.4 you should be able to programmatically determine the last tab clicked. If you could kindly confirm whether no such built-in mechanism (API, etc.) exist to find out last tab clicked in portal version 9.0.4? We're looking to implement this feature in database provider environment.
    Thanks again for your help.
    Ashraf

  • How do I find out what phone has been buying itunes

    How do I find out what phone has been buying itunes

    I think you're asking which iPhone (one of many using the same Apple ID) has made which specific purchases from the iTunes Store.
    The answer is you cannot do that.
    Presumably one Apple ID serves one person.  All purchases made by that Apple ID are agglomerated (combined) into one purchase record.

  • I want to update my phone, but i purchased many apps and music on the phone. it won't let me authorize my computer so i cannot update. i don't want to deauthorize all my computers. how can i find out which 5 computers i have authorized?

    i want to update my phone, but i purchased many apps and music on the phone. it won't let me authorize my computer so i cannot update. i don't want to deauthorize all my computers. how can i find out which 5 computers i have authorized? also how can i update the software?

    This is a tedious solution, which is stupid!  And some users report an inability to reauthorize a computer after an "en masse” deauthorization.  I can’t believe Apple doesn’t provide a list or menu to find out which computers you’ve authorized! Obviously, APPLE knows (or else they couldn’t tell us how many computers we have authorized)--so why can’t they give us access to that information about our own computers??!!!
    And for an already-authorized computer with a hard drive that’s since been replaced and upgraded from Mavericks to Yosemite, would it be recognized as a “new computer” and require authorization? Would its previous incarnation (i.e., with the old hard drive and OS) be considered a separate computer? Some users report they can’t authorize a computer after an OS upgrade because of that. Can’t believe we have to do such a bass-ackwards kludge!

  • I share an itunes account with 3 users. How can I find out which person downloaded a certain app?

    I share an itunes account with 3 users. How can I find out which person downloaded a certain app?

    Agile,
    Any of the above will work, depending how you would like to set it up.
    Given that kids tend to eventually grow up and be independent, the best long term answer for most people is to let her have her own account and her own library as soon as she can handle it.  Keep in mind that content purchased from the iTunes Store is permanently tied to the account from which it was originally purchased, so separating later is a challenge.
    If you want to sync multiple devices to the same library, that will work.  Or if you want separate libraries (as I would recommend), they can be either on separate computers or on separate Windows user accounts on the same PC.
    For the name change:  Connect the device.  When the name appears in the left sidebar of iTunes, highlight it and change it.

Maybe you are looking for

  • Problem with "Confirmation of Service"

    Hello - I have a sales order with, what I think, is an invalid schedule line on it. The schedule line is missing the Delivery Date. This line is also greyed out, so I cannot delete or modify it. The problem I'm having is that when trying to create de

  • No Sound During DVD Playback

    I have a new HP elitebook 8460p and there is no sound during DVD playback. Is there a setting I may be able to change? Here is a list of things I've tried and pertinent information: - Confirmed all system mute settings are off (e.g., not muted) - Con

  • AS3: How to get height of a dynamically created text field

    I am importing text from an XML file and want the lines of text to display in separate text fields beneath each other. How can I set the y value of each succeeding text field so that there is some space (40 pixels or so) from the above field, regardl

  • Script for downloading files from pdf placed on web, script for printing for exchange-

    Looking for java script command to set on button in pdf. We have mp3 and pdfs on our web site, example of URL: http://www.uzlicek.cz/download/Pohadky/O_holcicce_ktera_si_prala_byt_dospela.mp3 By clicking on button/link in reader I would like to appea

  • No menu's Showing in IDVD.

    I really can't believe that Apple would not test programs before releasing them. I just loaded ILife06 and there are no menu's showing up in the choices section. What next