Automatically select 'ok' after a few second

hi
my code has some line like this :
JOptionPane.showMessageDialog(null,"Some info: " + e.getMessage());is it possible, after the information window has been displayed for about 10 seconds, it will automatically press the OK button and continue on the next operation ?
any help is greatly appreciated. thanks

http://forum.java.sun.com/thread.jspa?threadID=712782&tstart=45

Similar Messages

  • Does not turn off after a few seconds

    My iPhone does not automatically turn off after a few seconds. This new behavior. Is there a setting for this?

    Yes,  Settings>General>Auto-Lock

  • After installing ios 5.1 on my iphone 4s, some apps are being closed automatically after a few seconds. I've tried a restart and a total reset. nothing seems to work. Any solutions?

    After installing ios 5.1 on my iphone 4s, some apps are being closed automatically after a few seconds. I've tried a restart and a total reset. nothing seems to work. Any solutions?

    The problem Apps may need to be updated. Or maybe your iTunes account needs to just update itself on your iPhone. To do this, install a free App from the App Store on your iPhone. Tap App Store app on iPhone, select and install a free App. When that is done try the problem Apps to see if they work OK again.

  • Anything that I copy on my desktop gets deleted automatically after a few seconds. Any idea what is going on ?

    I have a problem with my MBP.
    One day something weird started happening. Every time I would copy / save / download something on my desktop it got deleted automatically after a few seconds. On very very rare occasions this would not happen.
    This has been going on for 3 months now and I haven't found any sollution. The last option is to format and reinstall Lion but I hope there is a faster/better solution than that.
    I have a 2011 15-inch MBP with the up-to-date Mac OS X Lion.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software -- potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions -- they’re easy to carry out and won’t change anything on your Mac.
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.
    Below are four lines of text in monospaced type, which are UNIX shell commands. They’re harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of running these commands, search this site for other discussions in which they’ve been used without any report of ill effects.
    Some of the commands will line-wrap in your browser, but each one is really just a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.
    To begin, launch the Terminal application; e.g., by entering the first few letters of its name in a Spotlight search. A text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign.
    Step 1
    Copy or drag -- do not type -- the line below into the Terminal window, then press return:
    kextstat -kl | awk ' !/com\.apple/ { print $6 $7 } '
    Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.)
    Step 2
    Repeat with this line:
    sudo launchctl list | sed 1d | awk ' !/0x|apple|com\.vix|edu\.|org\./ { print $3 } '
    This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.
    Step 3
    launchctl list | sed 1d | awk ' !/0x|apple|edu\.|org\./ { print $3 } '
    Step 4
    ls -1A {,/}Library/{Ad,Compon,Ex,Fram,In,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Sta}* 2> /dev/null
    Important: If you synchronize with a MobileMe account, your me.com email address may appear in the output of the above command. If so, change it to something like “[email protected]” before posting.
    Remember, steps 1-4 are all drag-and-drop or copy-and-paste, whichever you prefer -- no typing, except your password.
    You can then quit Terminal.

  • My backlight will not turn off automatically.  I have to manually turn it off and forget to sometimes and that drains my battery.  Does anyone know how to make it turn of automatically after a few seconds?

    My backlight will not turn off automatically.  I have to manually turn it off and forget to sometimes and that drains my battery.  Does anyone know how to make it turn of automatically after a few seconds?

    Use the Settings app.
    Settings > General > Auto Lock
    Is Auto Lock set to Never? Change it to less time.

  • Why pdf files close automatically after a few seconds?

    I recently re-installed Acrobat XI Pro and when I now open a pdf files it closes automatically after a few seconds - any one knows why and how to solve this problem?

    You may have to reinstall or do a repair, one of the two. I would start with the repair from the help menu. Then do the updates also in the help menu. See if that fixes the issue. If not, you may have to reinstall. If you reinstall, use http://labs.adobe.com/downloads/acrobatcleaner.html and then remove any left over parts of the Acrobat folder, reboot, and reinstall. Then do the updates.

  • Itunes skipping songs automatically after a few seconds

    Hi everyone,
    I have recently purchased my mac and fairly new. My songs on itunes are skipping after a few seconds (10-14).
    if anyone could help me out, it would be appreciated.
    Thank you.

    All songs?
    Troubleshooting songs that skip - http://support.apple.com/kb/ts3217

  • My nano is fully charged and when I use the earphones it comes with, the nano stops playing my music after a few seconds and turns off.  But when I use another earphone, it's okay and stays on. How do I keep the nano from turning off after a few seconds?

    Why does my nano keep turning off after a few seconds while I'm listening to my music?  It's fully charged and brand new.

    I've tried everything in the article "Troubleshooting iTunes for Windows Vista and Windows 7 video playback performance issues''. Here are my results.
    My computer meets the requirements.
    All software (Windows, iTunes and QuickTime) are up to date.
    As for updating my drivers, I found nothing labeled 'Video'. The closest thing I found in Computer/Manage/Device Manager was to click + next to 'Display Adapters' under that I found 'Intel (R) HD Graphics Family' which I right-cicked. From the menu, instead of 'Properties', I selected 'Update Driver Software...', then I selected 'Search Automatically for updated driver software'. I saw the messages "Searching for Software... Searching online for Software... The best driver software for your device is already installed. Windows has determined the driver software for your device is up to date." I got these same messages when I searched for updated audio drivers.
    My computer is already at the highest display resolution. (1366 x 768 recommended) That's as high as my resolution will go. Hmm, I noticed the article's example shows '(1920 x1080 recommended)'. Is my max 1366 x 768 resolution high enough?
    As for QuickTime, deselecting 'Enable Direct3D video acceleration' had no effect. Disabling the DirectX entirely (Safe mode (GDI only)) allowed the audio to play, but there was no video, only a black screen.
    As for turning on DMA, the only item under 'IDE ATA/ATAPI controllers' is 'Intel Mobile Express Chipset SATA AHCI Controller' So I right-clicked, selected 'Properties'. There's no 'Advanced Settings' tab in there. The tabs are 'General, Drivers, Details, Resources' no 'Advanced Settings' anywhere. So much for that.
    'Readyboost' was already set at 'Do not use'.
    No 'NVIDIA nForce Serial ATA (SATA) controllers' exist in my computer.
    The problem still exists. Please help.

  • When I connect my guitar using apogee jam the note drops off after a few seconds. Why???

    When I connect my guitar using apogee jam the note drops off after a few seconds. Why???
    Its the same on most of the preset amps.
    Please help, the apogee cost me £80!

    Is it stopping recording after 8 seconds? Are you using Garage Band?
    If both of these are correct:
    This is actually a feature (i'm not sure why it defaults to this).  Instructions for the iPhone version are below:
    With the amp section open, touch the sproket on the upper right.
    You should be in a "settings" type area with three tabs.  Touch "Sections"
    Select the section and switch it to automatic - it will now record until you stop recording by touching the stop icon.

  • Photoshop CC 2014 stop after a few seconds

    I'm a CC subscriber and I recently updated my photoshop CC to photoshop CC 2014.
    I can start Photoshop but it automatically stops after a few seconds. I've already tried to uninstall / install multiple times without any success.
    When I read the file "amt3.log" in my temp dir, I can see "[ERROR] |  |  |  | AMT |  |  | 7188 | ERROR: Failure Validating Product License!".
    So it seems like a licensing issue.
    Did anyone faced this issue?
    Thanks for your help

    I have the exact same error on the log file. I even tried the "nuclear solution" with no more results...
    But as I tested the nuclear solution, I uninstalled Lightroom (which worked fine) and I've got the same issue, but I solved it by manually installing it (i.e without using the cc application) and it worked fine.
    The installer I used for ligthroom : https://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_lightroom
    However, I can't get my hands on a similar installer for Photoshop CC.

  • Premiere Pro & After Effects close after a few seconds after the startup?

    Hi,
    I bought Creative Cloud yesterday and everything installed just fine. I haven't tried all Apps yet, but so far Premiere Pro and After Effects close after a few seconds after the startup. There is no dialogue or error window of any kind, the programs just shut down automatically.
    The weird thing is that I had the trial before, but also uninstalled it, but then the apps worked just fine.
    I searched the forum but couldn't find anyone with the exact same issue. I hope someone can help me out.
    My notebook specs:
    Windows 7 Home Premium 64-bit
    Intel Core i7-3610QM
    CPU 2.30 GHz
    RAM 6 GB
    Graphics card: nVidia Geforce GT 630M - 2 GB

    >assigning my nVidia card as the main driver for Premiere Pro (instead of the standard card)
    You MAY need to turn off the onboard graphics "chip" in BIOS
    -http://helpx.adobe.com/premiere-pro/kb/error---preludevideo-play-modules.html
    -http://forums.adobe.com/thread/1001579
    -Use BIOS http://forums.adobe.com/thread/1019004?tstart=0
    -link to why http://forums.adobe.com/message/4685328
    -http://www.anandtech.com/show/4839/mobile-gpu-faceoff-amd-dynamic-switchable-graphics-vs-n vidia-optimus-technology/2

  • Every time I open iPhoto (as of today) after a few seconds the coloured wheel appears and the program become unresponsive. I have tried closing my computer. I assume I have a corrupt file but at the moment I cannot access anything in the program?

    Every time I try to open Iphoto '11 (as of today) the coloured wheel appears after a few seconds and the program becomes unresponsive. I assume I have a corrupt file but I cant do anything including accessing help. I have tried closing down and restarting but it dosnt help. Any ideas please?

    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

  • [MBA 2013]sound crashes and restart after a few seconds

    Hi guys,
    I bought a Macbook Air in June 2013 and 2-3 months ago, I started having problems with the sound.
    Basically, there is always one of those things running : iTunes, VLC or youtube/soundcloud so I always use the sound.
    After some time, the sound is strange like it is dying. After a few seconds, it stops working and then I have to wait around 5-10 seconds for it to be automatically restarted. I don't have headphone or anything plugged in and no external sound card.
    All my drivers are up to date and I have the last Mac OS X version (10.9.4 I think).
    Does anybody know what I should do ? Format it ? Uninstall all the software like Boom, Accubeatmix (maybe they cause the problem but I've used them since I have the MBA).
    I am used to using linux commands in a terminal if there is some dirty things to fix that so feel free to share those.
    Thanks.

    I uninstalled Boom and it seems to work now. Strange that it worked without any problem for a long time.
    I'll install it again and see what happens.
    Thanks.

  • Adobe Flash Player dissapears after a few second leaving a blank white area

    as described in the question title . the flash player was shown initially but disappears after a few seconds and all other pages with flash players had this problem with my firefox too . i have upgraded my firefox to the latest "16" and flash player to the latest "11.4" too . youtube is fine but other web pages doesn't work . Btw IE doesn't have this problem.

    '''Try the Firefox SafeMode''' to see how it works there. <br />
    When in Safe Mode... <br />
    * The status of plug-ins is not affected.
    * Custom preferences are not affected.
    * All extensions are disabled.
    * The default theme is used, without a persona.
    * userChrome.css and userContent.css are ignored.
    * The default toolbar layout is used.
    * The JIT Javascript compiler is disabled.
    * Hardware acceleration is disabled.
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4.0+ SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    '''''If it is good in the Firefox SafeMode''''', your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
    ''When you figure out what is causing that, please let us know. It might help other user's who have that problem.''

  • Hello there, am new here and very stressed, i have an Imac core i3 which is logging off itself after a few seconds of login, it goes back to the login menu where i put the password. I have tried to repair the os but my pioneer rom is not reading the disk.

    Hello there, am new here and very stressed, i have an Imac core i3 which is logging off itself after a few seconds of login, it goes back to the login menu where i put the password. I have tried to repair the os but my pioneer rom is not reading the disk. I press the :c" button on startup but its not picking up the disk in the rom, i have tried to put the disk in an external rom but same answer, am starting to think that my os disk is bad. Please help me.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login. Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    *Note: If FileVault is enabled under Mac OS X 10.7 or later, or if a firmware password is set, you can’t boot in safe mode.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

Maybe you are looking for

  • Apple TV no picture

    We have had no problems using the Apple TV until 2 weeks ago. The puck has power but does not show anything on the TV. No sound, no picture. We have tried unplugging everything, moving the hdmi to a different port, using a new hdmi cable - nothing wo

  • Heading to Russia and wondering about the Macbook pro's care.

    Hi, I will be heading to Russia this January and I was wondering if my mac would be fine in my bag if the weather will be bellow 40 degrees fahrenheit? Also what is the hottest temperature would it be fine in?

  • Acrobat 8 creating overlapping hyperlink areas

    I created a 50 page word document and added a Table of contents. The items in table of contents are hyperlinked to the sections in the document. When I convert it to PDF, the hyperlinks get converted too, but their "hover" area is too big. The result

  • IWorks Search

    Does anyone have an issue with their "open existing file" search function? If I create a document using pages, numbers, or keynote, I can search for it using finder or spotlight but not with the search feature under "open existing file" window of iWo

  • DAC 11g :Encryption key mismatch

    Hi, We have installed DAC 11g in Linux server and DAC client in windows machine, while configuring DAC client in windows it throws a error like encryption key mismatch. we cleared the key in DAC repository by command utilities. Again  it throws a err