Swing popup to close after X seconds

How to show an another window (a popup or something) in main swing window which will close after about 10 seconds?

Use a timer that is initalized in the constructor of the window you want to close after x seconds..
myWindow = new myWindowClass("This is a display message", 10);
once the timer expires you can just have the window close.

Similar Messages

  • Adobe Reader 11.0.03; Docs open and then close after 2 seconds

    I'm running Win 8, 64 Bit.  When I try to open pdf doc in Adobe Reader XI 11.0.03, IE10, it closes after 2 seconds.  I have uninstalled several times and reinstalled but no fix.  Any solutions? 

    Hi, same problem here and every commented solution didnt help me.
    8.1 64bit , AR 10.0 or AR 11.x
    - I used AR cleaner, didnt help
    - I used CCleaner, didnt help
    - I tried set bprotectingmode dword 0 in registry, didnt help
    1. Does this happen only in IE or also with other browser (FF, Chrome)?
    This help with no browser, just empty adobe reader start.
    2. Does this happen on stand alone Reader (instead of in the browser)?
    both
    4. If this happens also in the stand alone Reader, does launching Reader without opening a PDF file have same problem?
    yes, still problem.
    The only one possible solution seems to be install another pdf viewer :-(

  • Hello I have a problem with a Wifi Survey app, this app is from Access Agility, however this app was working fine, but without advise stop of working, I tried to open again, but app be close after few seconds.

    Hello I have a problem with a Wifi Survey app, this app is from Access Agility, however this app was working fine, but without advise stop of working, I tried to open again, but app be close after few seconds. Every time that I tried to open it, in diagnostic and use create some files, in special one named LatestCrash-WifiSurvey.plist, this one generate an incident identifier E73B0164-CDFA-4E9E-839E-A0C021BD17A2, but this incident identifier change every time that I tried to open, the last incident identifier is: DE600EB3-AB57-4C33-8DE8-71F6788A7441.
    After of it, I checked that the app had a new version available for downloading, I took a backup of my ipad and then upgrade this app, but is the same problem, all I want is to save the projects I had in this app, I´m afraid that if I delete this app and re-install it, probably I loss my projects.
    Thanks for your help indicating how I can save my projects and see them for example in an iphone for assurance that data is not lost.
    Something that called my attention is part of the log that shows a big CPU processing, but the strange thing is I killed all applications.
    Incident Identifier: E73B0164-CDFA-4E9E-839E-A0C021BD17A2
    CrashReporter Key:   ed0ca1405ce83d4f80cb3cce063d7248d7b76e91
    Hardware Model:      iPad2,5
    Process:         WifiSurvey [139]
    Path:            /var/mobile/Applications/1BEEE35A-85FC-4BE4-B62A-39A930CB3CE2/WifiSurvey.app/Wi fiSurvey
    Identifier:      WifiSurvey
    Version:         ??? (???)
    Code Type:       ARM (Native)
    Parent Process:  launchd [1]
    Date/Time:       2013-08-08 19:01:13.476 -0500
    OS Version:      iOS 6.1.3 (10B329)
    Report Version:  104
    Exception Type:  00000020
    Exception Codes: 0x000000008badf00d
    Highlighted Thread:  0
    Application Specific Information:
    com.accessagility.wifisurvey failed to launch in time
    Elapsed total CPU time (seconds): 20.990 (user 20.990, system 0.000), 52% CPU
    Elapsed application CPU time (seconds): 19.954, 50% CPU

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

  • Why Photoshop CC will close after 10 seconds after opening?

    Why Photoshop CC will close after 10 seconds after opening?

    I seem to have the same problem, but following the link given above has only been partially successful.
    It tells me to find a log file, and then to look up the error messages in a Knowledge Base. I've found the error messages, but the link to the Knowledge Base doesn't seem to lead anywhere very helpful.
    The 'ERROR' from my most recent attempt to launch Ps reads:
    "08/17/14 21:13:53:333 | [ERROR] |  |  |  | RoyaltyTableParser |  |  | 1028 | Signature successfully validated for royalty table"
    which on the face of it doesn't look much like an error. But I can't find this Knowledge Base to look it up. Most of the other lines in the log file are labelled as '[INFO]', though some say '[DEBUG]'.
    I'm running Win7 (64).
    Regards,
    Tim Dawson

  • I-photo has been working brilliantly until after my last update. Now it automatically closes after 10 seconds. The warning box appears but offers no solution. I have reloaded the software, but this has made no difference. Has anyone else experienced this

    I am having problems with i-photo. It automatically closes after 10 seconds. the warning box gives no guidance. Anyone else had this problem?

    What "warning box"?
    Assuming you're using iPhoto 09 or later:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Skype starts and closes after few seconds

    Hi,
    Please help!
    My skype will open but after few seconds closes.. and I get the starting window of username and password...
    I aready changed my password, and it did not help.
    I ran DXdiang.exe, here is the file
    Please help
    Tomer
    Attachments:
    DxDiag.zip ‏10 KB

    Solved! I unlinked the Microsoft account and Skype works back like magic. 

  • IPod on iPhone 3GS closes after 1 second

    Believe it or not, I have not used my ipod on my 3GS since I got it 6 months ago. I downloaded my first podcast and tried to open the ipod app but it closes after only 1 or 2 seconds. There is nothing I can do to keep it open. I went to settings to see if there was something in the ipod settings that looked like it might need configuring but I could not determine anything wrong there. I also tried rebooting my iphone. That did not help. Any suggestions why my ipod closes suddenly and how I can fix that?

    Try doing a soft reset on your phone. Just press and hold the sleep/wake button and the Home button at the same time for 10-15 seconds (just ignore the slider) and just let go once you see the Apple logo. You won't lose anything on your phone, by the way. :P If that didn't do the trick, go ahead and restore your phone. Just make sure you backup everything to iTunes before restoring.

  • Messages app launches and closes after 10 seconds

    Hi
    I have an iphone 3g bought from ebay (france) about a year ago. I bought it unlocked and had a friend help jailbreak it (I was told it was necessary) to make it work in my home country (Cyprus). My wife has been using it since then with no problems (mainly for simple phone calls).
    Today I switched SIM cards and inserted my SIM card in the phone to use for a few days. It worked fine for a few hours and suddenly the text messages app (not mail) does not work (all other apps seem fine at the moment). I tap the messages icon, it launches a blank white screen with no messages in it (even though it had messages a few hours ago) and after 10 seconds it goes back to the home screen. I can receive texts and if I click reply and then cancel the reply or tap on the messages button from the reply screen it takes me back to the list of old messages that were on the phone before this problem started. However, if I go back to the home screen from there, and tap the messages icon again, it displays the same problem.
    I tried putting the original SIM card back in.
    I tried turning off/on.
    I have tried hard reset (home button and power button simultaneously).
    ...and the problem persists
    I asked at one of the apple stores but as soon as they saw that the phone was jailbroken they said they could not do anything. Fair enough, but I still want to have a working phone...
    Can anyone help?
    I am unsure as to whether I can restore/upgrade and all that, as the phone is jailbroken.
    There is no real data on it that I care about losing. Almost empty. All my contacts are on my macboook anyway and all the photos have been imported to iphoto. There is no music on the phone that I don't already have elsewhere.
    Some details about the phone:
    Software version: 3.0
    I was told to be careful not to click install new software when connecting to iTunes as that might cause probs.
    Thanks in advance...
    Also I am not a techie so be gentle!!

    Try to reset the iPod by holding the sleep and Home button for about 10sec, until the Apple logo comes back again. You will not lose data doing a reset.

  • Reader XI auto closes after 4 seconds. Won't view PDFs.

    I had Reader X but was having problems with using the sign function. I went to check for an update and downloaded XI. When I tried using it, it opened a window for about 5 seconds (promising) and then automatically closed. When I tried uninstalling, a window said that the administrator had blocked the program from being removed.
    I tried a System Restore on my computer, attempting to fix X, but that didn't work. When I try downloading anything less than XI, it says I have a more updated function version on my computer. It says the same thing when I try reinstalling XI or fixing XI. It still auto crashed after 4-5 seconds.

    Reader is actually covered in a separate forum (this is the Acrobat forum). Some of the issues are similar. Typically you need to be logged in as the administrator (at least with admin priv.) and have anti-virus disabled for the install. To try to go back, run http://labs.adobe.com/downloads/acrobatcleaner.html, delete the Acrobat or Reader (in your case) folder, and reboot. Hopefully the install will go smoothly after the reboot. Again, be sure to be logged in as an administrator and have anti-virus disabled. Fixes can be done from the control panel>Programs & Preferences.

  • Xlock started with udev closes after 3 seconds

    Hi,
    I want to start xlock when I pull my USB key out. It works far enough to see xlock for 3 seconds or even a minute but then it allways dies without comment
    #cat /etc/udev/rules.d/50-unlock.rules
    SUBSYSTEM=="usb", ACTION=="remove", ENV{ID_VENDOR_ID}=="foo", ENV{ID_SERIAL_SHORT}=="bar", RUN+="/root/bin/udevlock"
    SUBSYSTEM=="usb", ACTION=="add", ENV{ID_VENDOR_ID}=="foo", ENV{ID_SERIAL_SHORT}=="bar", RUN+="/root/bin/udevunlock"
    I tried various ways to start xlock some last about 3 seconds, some almost 1 minute but then xlock disappears
    cat /root/bin/udevlock
    #!/bin/sh
    case 6 in
    1)
    /usr/bin/nohup /usr/bin/su -l mr -c 'DISPLAY=:0 xlock -mode pacman' # 3 sec
    } </dev/null &>/dev/null &
    2)
    exec 0>&-
    exec 1>&-
    exec 2>&-
    /usr/bin/nohup /usr/bin/su -l mr -c 'DISPLAY=:0 xlock -mode pacman' # 1 min
    3)
    /usr/bin/nohup /usr/bin/env -i 'PATH=/usr/bin' 'DISPLAY=:0' sudo -u mr xlock -mode pacman & # 3 sec
    4)
    /usr/bin/su -l mr -c 'DISPLAY=:0 xlock -mode pacman' & # holds 3 sec
    5)
    /usr/bin/nohup /usr/bin/su -l mr -c 'DISPLAY=:0 xlock -mode pacman' & # holds 3 sec
    6)
    ( /usr/bin/su -l mr -c 'DISPLAY=:0 /usr/bin/xlock -mode pacman' & ) &> /dev/null # 3 secs
    esac
    instead of starting xlock i allso started a script that prints 1 number every 100ms to a tmp file, it also died after the same time.
    Any good ideas?
    Thanks

    Ok, I could solve the problem myself by installing the latest nvidia driver. Now I guess the intel grahic card is not used anymore, but I don't really know...

  • Safari opens then closes after a second

    hey guys i hav an ipod touch and whenever i try to open safari it opens for a second the closes. i have already tried restarting it. thanks for the help.

    Then try reset and restore
    http://manuals.info.apple.com/en_US/iPod_touch_iOS4_User_Guide.pdf

  • Adobe XI opens and then closes after several seconds...

    I recently installed Adobe Acrobat XI a few weeks ago and all was going fine (previously was using Adobe 7 Professional).  Suddenly yesterday, whenever I open a PDF, it opens for several seconds.  I can edit, move around, etc, but then the program suddenly closes on me!!
    I've tried all the "fixes" that you can search for on here.
    I tried to uninstall it and go back to Adobe 7, but I now get this message whenever I exit:  The application is being terminated because of memory corruption.
    Please help!
    Thanks!

    Run the cleaner tool then re-install: Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs

  • When i open my Safari, it closes after 5 seconds.

    I have installed a toolbar, which i think is the problem, but it closes before i'm able to remove it.. When it closes it says something like "Safari suddenly closed while using the ct_plugins-pluginmodule" but to me its in norwegian so its probably not as if it was an english mac If you need the crash report then tell me, but its huge so i wont put it here just now
    Thanks.

    I have not done it for quite awhile, but the instructions are below:
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/19535.html
    Barry

  • Reader closes after 2 seconds?

    the reader closes automatically as soon as I open it. I tried to repair and uninstall and reinstall did not work. I do not know what to do next.

    Some things to try...
    Update Reader to 11.0.5
    Using Windows Explorer navigate to C:\Program Files (x86)\Adobe\Reader 11.0\Reader, then double-click on Eula.exe and accept the license agreement
    Can you open Adobe Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].
    If you cannot open Reader by itself, try to disable Protected Mode in the registry; download, unzip, then run the attached registry script
    It could even be a malware issue; see http://helpx.adobe.com/acrobat/kb/reader-core-dll-error.html

  • IPhone 6 Camera from lock screen, closes after 1 second...

    When I access the camera from the lock screen, it opens for about one second then just blacks out to a screen off mode. I can still get to camera the long way by unlocking screen and clicking on icon, but want to know why the shortcut from lock screen is buggy. Please advise.

    I'm not sure what you meant with the first part of your reply. However, the reset seems to returned behaviors to normal... so thanks for that.
    Not that it matters much now, but again, the issue was that I wasn't able to go directly into camera mode from Lock Screen... the camera app would appear for one second, then the screen would just go into sleep mode. Unlocking screen with passcode or Touch ID worked fine then opening apps from there all worked fine. Just the camera shortcut from Lock Screen as the issue, but now it is resolved.

Maybe you are looking for