Calling setLocation(-2000,-2000) on JFrame kills the app without exception

Hi All,
I am working on a Java appliction which is supposed to run a specialized hardware.
JDK Version 1.5
Windows version Win 2000
The environment in which this app is supposed to run is strictly controlled by another application (for e.g. user should not be able to access desktop). The kind of apps which are written for dedicated hardwares in music stores, ATMs etc.
I don't have much information about what all aspects of windows are controlled by this other app, but under some configuration of the environment on that device, my applicaiton dies just when setLocation(-2000, -2000) is called, but only 1 time out of 50.
I tired it several time, and it always dies while executing setLocation API, without any exception being thrown. The log statement before setLocation appears in log but not the one after it.
I am logging uncaught exceptions on console also to log file, but nothing there... The thread just dies..
Any pointers / suggestions or sulution will be of great help.
Thanks
Regards

Thanks to all of you for your response.
We are setting location to -2000, -2000 "AS WELL AS" setVisible(false)
We need to do both because this BOSS applicaiton which monitors other applications running on the hardware keeps a windows handle of our Java window. When user chooses to switch to our application from a Menu, the BOSS application uses ShowWindow window API to display that window. There are two issues with that approach
(Note that we can't change the behavior of the BOSS application)
1. when ShowWindow API is used to display a Java window, its only the native peer window which gets displayed. None of the Java controls on that window display. The window just appears blank.
Its disfficult to explain, so you'll have to write small prototype to see it yourself. Write Java app to display window, find its window handle, hide the window in Java, and then write a C / .Net app to show that window.
Apparently Java doesn't get to know WinAPI is used to show window outside of Java.
2. Like I said in such case apparently Java doesn't get to know when window has been displayed. None of the window related events get fired. There are cases when although BOSS app wants to display our 'registered' window, we want to display some other window. Since we don't get to know about other window getting displayed, we cannot hide it.
Keeping it at -2000, -2000 ensure that even if BOSS displays it, it stays out of users view, unless we bring it back to 0,0 and do some other stuff...
Any other pointers which might be of help are most welcome.
Thanks for your help

Similar Messages

  • When I launch the app store, I get "minecraft." It will not allow me to return to the "featured" menu. I've tried rebooting / killing the app, but nothing has worked. Any insight?

    When I launch the app store, I get "minecraft." It will not allow me to return to the "featured" menu. I've tried rebooting / killing the app, but nothing has worked. Any insight?

    I have also tried the fixes offered in this forum such as using the "Other" mail in setting up the gmail accounts, and not using the dedicated gmail setting.  I also went to google and signed in and enable the additional devices.  I had the same problems with the original account I set up for gmail, but it corrected when i went to using the "Other" instead of the Gmail button.  I was able to set up the new gmail accounts on my iphone without problem and on my husband's ipad1 for his gmail account.  Just the ipad 2 is giving me problems.   Again, thanks for any suggestions.

  • TS1702 i have a game called dino island that i downloaded from the app store it wont work it closes when i click on an island

    i have a game called dino island that i downloaded from the app store it wont work after i click on an island why can you help?

    See:
    iOS: Troubleshooting applications purchased from the App Store
    Contact the developer/go to their support site
    Restore from backup. See:
    iOS: How to back up
    Restore to factory settings/new iPod

  • How to kill the apps process?

    Is my Yoga tab 2 1050F In this few weaks, after turn on the tab 2-3 hours, RAM has 500m onlyand cannot kill the apps process at all... WHY? Standby under than 24hours ... few weaks before that is 1 week standby times. I was turn on ALL power save function. WHY? I need help pls   Look at picture, Aweak has never stop.  Thx

    Hi
    If the process chain is running in background,
    goto <b>SM37</b>
    Give * in the jobname
    Give the username who scheduled the process chain
    Job status - check the check boxes - SCHED, relased, ready, active
    click <b>execute</b>.
    It displays all the process chains that, scheduled & running.
    You can select the process chain that need to be stopped & click STOP active job or ctrl+F1.
    Hope this helps!
    Kindly award points for all useful answers.
    If you post the BW related queries in the <b>BI general</b> forum, you will get more answers.
    Best regards,
    Thangesh

  • [svn:bz-4.0.0_fixes] 16148: Update config testsuite on 4.0. 0_fixes branch to force kill the app server before running any tests when the app server is Tomcat .

    Revision: 16148
    Revision: 16148
    Author:   [email protected]
    Date:     2010-05-17 06:40:40 -0700 (Mon, 17 May 2010)
    Log Message:
    Update config testsuite on 4.0.0_fixes branch to force kill the app server before running any tests when the app server is Tomcat. The regression runs were hanging on this branch when going to run the config suite because the Tomcat server isn't shutting down cleanly at the end of the MXUnit run. I believe this is an issue with the version of ActiveMQ we are using. Since I don't think we want to update ActiveMQ on this branch force killing the Tomcat server will workaround the problem.
    Modified Paths:
        blazeds/branches/4.0.0_fixes/qa/apps/qa-regress/testsuites/config/build.xml

    Hi,
    Thanks for the reply. I have tried this on another machine running the same version of Blackboard. It works fine.
    Only difference is that the machine that has the JVM crash is running on Fujitsu PrimePower and the OS is Solaris 9 (but twigged for PrimePower).
    The one where it runs and starts up successfully is running on SunFire (OS is Solaris 10).
    I am wondering if there is a problem with the JVM loading required libraries because of the OS being different versions.
    Any leads on this is welcomed. Thank you.
    Regards,
    Hon Peng
    ===================
    On Fujitsu Primepower
    SunOS 5.9 Generic_118558-33 sun4us sparc FJSV,GPUS
    the Dependencies for libjvm.so are as follows:
    ===================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /usr/lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /usr/lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /usr/lib/libm.so.1
    libthread.so.1 => /usr/lib/libthread.so.1
    libc.so.1 => /usr/lib/libc.so.1
    libnsl.so.1 => /usr/lib/libnsl.so.1
    libmp.so.2 => /usr/lib/libmp.so.2
    /usr/platform/FJSV,GPUS/lib/libc_psr.so.1
    =====================================
    On SunFire, Sun machine
    SunOS 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-280R
    the dependencies are different for the libjvm.so:
    =====================================
    bash-2.05$ ldd -r libjvm.so
    libsocket.so.1 => /lib/libsocket.so.1
    libsched.so.1 => /usr/lib/libsched.so.1
    libdl.so.1 => /lib/libdl.so.1
    libCrun.so.1 => /usr/lib/libCrun.so.1
    libm.so.1 => /lib/libm.so.1
    libthread.so.1 => /lib/libthread.so.1
    libc.so.1 => /lib/libc.so.1
    libnsl.so.1 => /lib/libnsl.so.1
    libmp.so.2 => /lib/libmp.so.2
    libmd5.so.1 => /lib/libmd5.so.1
    libscf.so.1 => /lib/libscf.so.1
    libdoor.so.1 => /lib/libdoor.so.1
    libuutil.so.1 => /lib/libuutil.so.1
    /platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
    libm.so.2 => /lib/libm.so.2
    /platform/SUNW,Sun-Fire-280R/lib/libmd5_psr.so.1

  • In the middle of downloading an update for garage band and lost the connection, now the app won't open or finish the download.  Can I reinstall the app without losing my music?

    In the middle of downloading an update for garage band and lost the connection, now the app won't open or finish the download.  Can I reinstall the app without losing my music?

    The obvious way to resolve this on a computer would be to uninstall the app, then reinstall it, however on an iOS device that would cause all the data assoicated with the app to be thrown away.
    Make sure your iTunes library has the latest updates for all your apps, then backup and restore the device. This should pull back a fresh copy of the app from your iTunes library and then give it the data from your device backup.
    tt2

  • Ihone 4s lost all contacts. I tried to restore from backup but the error message now says there is not enough room. I have deleted all the apps without making any more room on iphone. Why did contact disappear and how do I get them back?

    ihone 4s lost all contacts. I tried to restore from backup but the error message now says there is not enough room. I have deleted all the apps without making any more room on iphone. Why did contact disappear and how do I get them back?

    In the simplest sense, archiving a file means making a copy that you never change and never discard. You already know how to do that.
    iPhoto has built-in archival features, in the sense that it saves all versions of an image that you've modified. As long as you have adequate backups, you don't necessarily have any reason to archive an iPhoto library. If you want to delete images from the working library but still have access to them in case you change your mind, then you do need to archive those images. I don't have a specific suggestion as to how you should do that. You might post a question in the iPhoto forum.

  • Has anyone transferred their PS CC subscription to a new machine? how do you download the app without buying again?

    Has anyone transferred their PS CC subscription to a new machine? how do you download the app without buying again?

    I would thin you just do what you did on your first machine.  If you getting rid of your  first machine you should you should lso sign our from the cloud desktop.   On your ne machine all you should need to do is install the cloud desktop application. Open it sign in to your ID with the subscription and install the products you do, Its the sign in the and account with a subscription the does the authenticating and activates products.

  • HT1977 i want to add a app i just purchased to my i phone. nut when i click apply it asks me if i want to remove the rest of my apps.. which i dont.. how can i add the app without deleting my other apps

    i want to add a app i just purchased to my i phone. nut when i click apply it asks me if i want to remove the rest of my apps.. which i dont.. how can i add the app without deleting my other apps

    You can sync an iPhone to only one computer. If you connect it to a different computer (or you have never connected it to a computer) it will delete all iTunes content on the phone and replace it with the iTunes content on the current computer. As Avis says, you can transfer your purchases to the computer you are about to sync to, but only if that computer is authorized to the same account that the content was downloaded under.

  • Update to desktop appears to have killed the app!

    I have used the desktop app on my Win 7 machines for ages. No problem. I updated (in response to a message from Blackberry). Immediately desktop refused to start. I re-installed.  It still hangs at the banner. So, I removed desktop (all traces) and re-installed.  It still hangs on the startup banner.  Has anyone else seen this, and what is the solution?

    As Retired Engineer indicated, you will need to install Snow Leopard first.  After you install Snow Leopard, you need to go into Software Update and perform the updates.  10.6.6 will install the App Store.  You should continue to update to 10.6.8 before purchasing and installing Lion from the App Store.
    Be sure your machine meets the minimum requirements.  Basically, any Mac with a Core 2 Duo processor or later and at least 2GB of RAM (but 4 is highly recommended).  If you have a first generation MacBook Pro with a Core Duo, you will not be able to upgrade to Lion.

  • To buy an app, I updated my forgotten security questions. Successfully changed, I went to purchase the app again, except the questions would not appear for me to answer.

    talked to a person on the phone already, and went into the apple store today. also brought my macbook pro with me, to have them help. it went successfully changing them. The problem is they will not appear for me to answer when proving my identity on the app store!!!!

    Security Questions
    https://discussions.apple.com/thread/5232504?tstart=0

  • Selling GS3 for G4. Can I reinstall the Apps without paying them again?

    I'm thinking about selling the old GS3 for the new G4.
    1) Can I deinstall all the Apps from GS3 and reinstall them on the new G4 without having to pay the Apps all over again?
    2) Can a potential buyer of mine (GS3) be able to keep all the Apps I purchased and use his own account to update the Apps?
    Thanks
    Thanks

    1) Yes:
    http://support.apple.com/kb/HT2109
    2) No.

  • I just got the new iphone 5c and im trying to set it up and get my apps and stuff but it wont let me download like the free apps without a card, is there a way i can download the apps without a card?

    im trying to download apps, do i have to use a credit card even for the free ones?

    If you have an existing ID, but no credit card to associate with your account, you'll have to redeem an iTunes gift card. If you don't want to do that, you'll have to create a NEW ID by following the directions here:
    http://support.apple.com/kb/ht2534

  • I want to install apps from itunes to my ipod and manage them manually but there is only one option to do that replaces my apps on ipod with apps in my itunes library . Is there any way to install the apps without replacing them??

    I want to install apps using itunes from my pc but there is only on option for doing that i.e. itunes replace the installed apps with apps on itunes. Is there any other way for doing that without replacing my apps ???

    Ipod touch will sync with one computer at a time.  If you sync to another then it will erase the current content and replace with content from the new computer.

  • I just got a new computer with windows 7 (if that matters) And i want to sinc my iphone 3gs apps to my new computer but the only option itunes is giving me is to erase all apps and. How do I sinc the apps without erasing them off my phone?

    Please someone answer this and help me. I do not want to erase my apps beacuse than I cant redownload them on my computer. Please someone reply as soon as possible!

    Why you can't redownload? Don't you have the Apple ID that used to download these apps?
    You can "transfer purchaces" by right click on your iphone in iTunes but i guess you computer is not authorized and will ask you to authorize with Apple ID. Try it.

Maybe you are looking for

  • Trying to get Nano 2nd Gen to be recognised by itunes

    Hi there, I have just bought my wife a new gen Nano 4gb. I also use a 30gb Video which is working fine. I am trying to get the Nano to be recognised by itunes. I have reinstalled the software again but no joy. Do I have to register the nano some way.

  • Logo in PDF-Printlayout - Web / NW2004s

    Hi all, how can i implement a Logo in the PDF-Print in NW2004s. If i change the *_EXPORT Template by inserting a Logo the PDF Print still not includes it in the printing. Does someone know why? Regards, Adem

  • Can i revert back to lion?, from mountain lion?, happy to wipe the drive, but my disk dont work..

    So yeah im not happy with the mountain lion update, i was looking forward to getting it, got it, and i do not like it.. I dont like that the fact they have blocked java applets running and i now can no longer play games, and access some online stuff,

  • Mandatory profit center in mm02 for plant

    what customizing thread contains config for making a profit center MARC-PRCTR a mandatory field in mm02 for a specific plant?

  • Display format for Exif Tag: ExposureTime

    Hello, I'm a user of Adobe Photoshop Elements 3.0, in which the image editor component displays "File Info" (Exif and XMP information) embedded in the image file using the Adobe Photoshop Information Panels, which are XMP files ( DOCTYPE panel SYSTEM