Focus transfer to unknown window.

Hi, all.
I have a problem - m.b. somebody knows how to solve it. I write a library, which used by external code. When some method of my class is called, a JDialog with parent==null is opened and user prompted to fill some data. When my JDialog is closed, the focus must to return to the original window - but I don't have a reference to it.. Is it possible to find what are additional Window objects existing in the jvm, and pass the focus to on of them?
I would very appreciate any help and advice.
Sincerely.
Jab.
[email protected]

Hi,
there is a method in jdk1.4 that returns the last focused component,
I think it's "getOppositeComponent". But that doesn't work for
top-level-containers as they are focus-cycle-roots and therefore
never have focus. You could try to use that method and then climb
up the component hirarchy with the method "getParent()" until you
have the Top-Level-Container and then invoke "toFront()" or "show()" on it.
But I think the proper way for what you want to do is to use an
interface to the outside(I've never seen librarys without interfaces).
For example you could use a method "register(JDialog dialog)", that
every client, that wants to use your library, has to implement.
You can save the registered clients(probably JFrames)in a collection,
register WindowListeners for them and use a member that points to
the client that was last activated.
Hope this helps,
alex

Similar Messages

  • TFTP 'configuration update' from 5508 WLC fails stating reason as '%Error: Config file transfer failed – Unknown error –refer to log'

    Dear Experts,
    I have two WLCs and other management devices as part of same subnet. I am able to upload ‘configs’ from all the devices on to my TFTP server. However when I am attempting to do the same from one of my WLC, it is failing consistently stating error message as:
    ‘%Error: Config file transfer failed – Unknown error –refer to log
    Has anyone else too faced the same issue and how would we overcome this? Any specific debug that could help get more details on it?
    Though the error message says, refer to log but still I don’t see anything that gets reflected in ‘Monitor logs’ which is related to ‘configuration file’ upload failure.
    WLC code: 7.4.100.0
    PFA as the error snippet.
    Thanks and Regards,
    Adnan

    Hi Kaneswaran,
    Just a soft reboot helped me solved the problem :). Still I am on 7.4 and facing no issues after this. 
    Apologies for coming too late to respond. Getting a down time window was not that easy and so was much delayed to try soft reload. I am still on 7.4 and facing no issue. 
    Glad that in your case it starting working all of a sudden. Could you please verify from 'show tech-support' to confirm if by chance your WLC had undergone any crash that could have caused the WLC to reload and thus accidently fixing the issue :)
    Best Regards,
    Muhammed Adnan 

  • Windows Easy Transfer can't transfer files from Windows Vista or Windows XP

    I'm running a English Windows Vista Ultimate and just bought a
    ENGLISH Windows 8.1. I've downloaded the WET for Windows vista and tried to complete the second portion of the transfer by specifying the saved .MIG file WET created. Then I got the error message: "Windows Easy Transfer can't transfer
    files from Windows Vista or Windows XP".
    The truth is, Microsoft was too busy integrating special effects to it's operating system and claimed it as fully polished instead of making sure built-in tools were worth using.
    Another harsh reality is that THERE IS NO WAY TO TRANSFER a file from Windows Vista to Windows 8. That's because engineers didn't even bother to make that possibility happen. Just Google: "Transfer from windows vista to windows 8" and you'll see
    there are no relevant Microsoft web page about this.
    Worse, Microsoft is giving excuses. To solve this issues, they came with a toolbox of fake scenarios in order to confuse clients even further, while they know damn well the Windows Easy Transfer is NOT EASY and certainly in multiple cases
    DOES NOT TRANSFER jack to begin with.

    I somewhat agree with you.
    Trying to transfer from 7 to 8.1 and although it looks like the "7" side of the equation is working, the "8" side isn't.
    "7" is trying to connect to "8" but "8.1" is being just plain stupid.
    Not even sure why the MIG file step is even necessary if all I want to do is transfer one file between two machines.  Said file is really BIG, or i'd just use my network, and the "8.1" rig doesn't have a dvd reader...
    Per the MIG step... my file again, is big... I'd need to "mig" this file just to send it? Can't even get to the step where I'd mig-it and if i did, how long would that take?
    So this is what progress is all about... geez... gimmie a NULL MODEM CABLE !!!

  • Transfer music from Windows 8.1 pc to iTunes library

    transfer music from Windows 8.1 pc to iTunes library

    Hi kaygaryras,
    It sounds like you need to import your music into your iTunes library. I have a link for you that will explain how to accomplish this, and it can be found here:
    iTunes 11 for Windows: Import music and video already on your computer
    http://support.apple.com/kb/PH12493
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • How to transfer files from windows 7 to macbook pro

    how to transfer files from windows 7 pc to my new macbookpro

    You can use your external hard drive that is used to backup your important data to transfer the data from your PC to your Mac.
    If your Windows 7 PC is a laptop and you live near an Apple store, make an appointment at the Genius bar where they will help you transfer the data you want transferred from your PC to your MBP.

  • Im trying to publish a web gallery to BC, my settings seem correct but I'm still getting an  error: FTP transfer failed ' unknown error'. Techs on BC, say FTP working fine. Please help!

    Hey peeps,
    Im trying to publish a web gallery to be hosted on BC. Despite having what seem the correct settings im getting an error: FTP transfer failed ' unknown message'. Have checked with techs on BC. They say FTP working fine that end.
    Any suggestions?

    Have you tried connecting to another FTP server in Lightroom?
    For example, if you get a free Flickr account, can you login to it and upload a file to it?
    If you can't upload to any server, then you have a general FTP-in-Lr problem, but if problem is only with BC then, well, it's time to start scrutinizing the BC settings..
    PS - All my FTP'ing plugins have an enhanced FTP settings test feature designed to help you debug FTP settings, so another option is to download one of them, for example:
    robcole.com - FTPAggregator
    and experiment with settings tester:
    To get here, you have to click 'View / Edit Additional Settings' (in plugin manager), then choose 'New' or 'Edit' from 'Sync Pairs' drop-down menu.
    If test is unsuccessful, enable verbose logging (top section of plugin manager), and review the log file after test, or send to me.
    If you have a problem running plugin, please contact me directly:
    robcole.com - Contact Me
    Rob

  • [Flex 4.5.1] Focus on TextInput hides windows 7 language bar when in Chrome, Firefox works fine

    Focus on TextInput hides windows 7 language bar when in Chrome (latest version by the time of the writting) - very odd behavior, if the user clicks away from the flex app then the language bar reappears but even if you change the language if you focus back on the application the language is back to what it was the last time the application was focused, though you can't actually see this since the language bar is gone.
    This is kind of a serious bug since an avarage user probably would't be able to change the language with key combinations...
    Does someone know anything about this issue ?

    Actually giving focus on the entire flex application results in hiding the windows 7 language bar in chrome. I just reported this. Here is the link for the bug + an extra issue:
    http://bugs.adobe.com/jira/browse/SDK-32039

  • How to solve RDP lost focus issue when RDP window minimized

    Hello,
    I have an application running on Windows 2012 server where users connect to the server via RDP client. Users run on Windows 7/XP.  The application is a screen recording software which records all the activity.
    Users connect to Windows Server 2012 by giving the IP Address in RDP. The user opens the applications & starts his work and recording is also started.
    At an instant, the user minimized the RDP window on his Laptop/Desktop, now the screen-recording stops. As soon as the RDP window is maximized, the recording starts again.
    I learned from Technet that there is a workaround by tweaking the registry on user laptop/desktop. However the problem here is that I have no control on user laptops/desktops as the users are spread in the whole world & does not belong only to my organization.
    Hence is there any other way by which I can solve the issue without any registry tweak. Is there a way by which I can enforce users to use the RDP client of the Windows 2012 Server on which I have control and I can change the settings on the same.
    Will Windows 2012 Server RDS services resolve the issue without any change at the user end.
    This is a P1 issue for me. Hence expecting support from the community
    Regards

    Hi,
    Thank you for posting in Windows Server Forum.
    Initially suggest you to upgrade the RDP client version to RDP 8.1 for better performance.
    From the description it seems you are using RDP to connect to the server. Can you please clarify again, if it’s RemoteApp application or connecting the application after RDPing to the server?
    If it’s RemoteApp application and facing problem then there is one Hotfix available to try:
    A RemoteApp application main window takes the focus after the applications windows are maximized in Windows
    http://support.microsoft.com/kb/2862019
    For RDP, you can try the following option to configure. You can configure “Keep-alive connection interval” under group policy and check.
    Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Services Session Host\Connections\
    Configure Keep-alive connection interval:  Enable and specify value 
    In addition to this also verify the registry setting must be set as per following 
    HKEY_Local_Machine \ SOFTWARE \ Policies \ Microsoft \ Windows NT \ Terminal Services
    KeepAliveEnable REG_DWORD
    0x00000001 (1)
    KeepAliveInterval REG_DWORD
    0x00000001 (1)
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • Making JFrame Window Lose Focus to a Native Window

    How can i from within the same JFrame code or another class with the JFrame reference make JFrame lose focus to another native window on the desktop.
    Any tips

    In the core java API you can not make a native window take focus, you would have to use native code (JNI).
    The best you could do would be minimize the JFrame.

  • Keep focus in the same window after opening a new window per key-event

    I have an application in which user can press on a specific key, and that opens a new window in a JFrame. User might want open a few of such windows in a row by changing the cursor position and pressing the same letter key. But the problem is that with every new window Java VM transfers the focus to that new window. User is forced either to click to regain focus, or to move the mouse out-and-in the window, in which case the focus returns to it as well, assuming the X11 style of focus by cursor position of course.
    Is there any way to keep the focus with the window on which the cursor is placed?

    In your ActionListener your code should be something like:
    JFrame anotherOne = new JFrame();
    anotherOne.setVisible(true);
    originalFrame.requestFocusInWindow();If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://sscce.org], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • How can I transfer playlist in Windows Media Player to me I Pad mini?

    How can I transfer playlist in Windows Media Player to me I Pad mini?

        Great question Rosa.Lee! Music is definitely a priority for my wireless device. From your PC, you can drag music to iTunes and it will automatically format. Then you can connect your iPad and sync.
    Thank you,
    VanessaS_VZW
    Follow us on Twitter @VZWSupport

  • How do I transfer music from windows media player to ipod touch

    how do I transfer music from windows media player to ipod touch

    I do not understand the question.
    shayluv_20 wrote:
    how do i sign up for science itunes
    If you mean download iTunes then:
    http://www.apple.com/itunes/download/

  • Can I transfer music from Windows Media player to my Sony reader? How do I do that?

    Can I transfer music from Windows Media player to my Sony reader? How do I do that? I have an extense music library and would like to be able to listen to my favorites in the reader when I am using it. My computer is a Dell Studio 435 and uses Windows 8 as OS. My reader is a Sony PRS-T1. Thanks for your help. Rolando Moreno.
    Solved!
    Go to Solution.

    Hello Rolando,
    Welcome to Sony Community.
    You can directly transfer content by drag-and-drop to your computer from the below link:
    http://esupport.sony.com/docs/reader/PRST1/eng/contents/03/01/02/02.html?search=windows
    Also, you can try the “SYNC” option in the Windows Media Player, after connecting the Reader to the Computer, for transferring the songs.
    Refer the below link to check for the supported file types.
    http://esupport.sony.com/docs/reader/PRST1/eng/contents/09/04/02/02.html#l2_supported%20file%20types
    If my post answers your question, please mark it as an "Accepted Solution."

  • I cant able to copy my files from my macbook to external hard disk,its showing "read-only",but i can able to transfer files in windows os,why cant i able to do tht in here?

    i cant able to copy my files from my macbook to external hard disk,its showing "read-only",but i can able to transfer files in windows os,why cant i able to do tht in here?

    to frederic1943
             Its in NTFS Format...and i hav downloaded the file NTFS-3G,but still i dont know wht to do with that.will u pls help me here.

  • How to transfer songs from Windows Media to iTunes

    I cannot transfer songs from Windows Media into ITunes....Can you help?

    Do it for free on a PC running iTunes.
    Do it for free on an older Mac capable of running Audion.
    Conversion software (mostly commercial):
    Switch (free basic version) - http://www.nch.com.au/switch/index.html  - I'm not sure if this will do WMA
    All2MP3 - http://download.cnet.com/All2MP3/3000-2140_4-190407.html - mixed success with WMA
    Flip4mac - need the intermediate payware version which lets you convert.  Use with Quicktime player.  Flip4Mac - http://dynamic.telestream.net/downloads/download-flip4macwmv.asp?prodid=flip4mac wmv  - The free version will let Quicktime play but not convert Windows Media files.
    After installation a new Flip4Mac pane will appear in System Preferences.  Make sure you set the boxes to ensure that it will play WMV files in Quicktime.
    VLC - not really a converter but will do some in the export menu but may be slow and a bit of a learning curve.
    Explore online converters where you upload a file in one format and download in another.

Maybe you are looking for

  • How do i change my name on airdrop for the iPhone? It shows up as the name on the account not the iPhone owner (which is me)

    I would really like to change my airdrop name but i have no idea how

  • BP Role in SAP CRM 7.0

    Hi Gurus, As i am new to SAP CRM, not able to understand from where to start the config can anybody help in this regards. Which are the steps to follow for BP-LEAD-OPPORTUNITY-QUOTATION and also give your ideas regarding How to create BP Role in SAP

  • Organizing photos in iphoto

    I just switched to a MacBook Pro from a Windows based computer.  We transferred our photos to the MacBook Pro and into iPhoto.  Obviously, it split everything into events.  In Windows, I had multiple folders for my photos.  For example, we had a son

  • Error while doing delivery of STO

    Hi All,          i am creating delivery of STO (Intra company) using T-code Vl10B. I am getting given below Error messages. 1. Shipping is not allowed for SO "ABCD" & DC "XY" from Plant "ABCD". 2. 00010  delievry from Plant "ABCD" for Material "ABC"

  • Issues with downloading inDesign CC

    I have tried multiple times at different times of the day to Download inDesign CC in Adobe Creative cloud . It gets to 49% and I receive the error installation failed - Te download appears corrupted. Please try again after a few minutes (-60) I am ru