Opening a prompt window before closing window when click on the x box

I was wondering if there was a way to have a prompt box asking the user if they're sure they want to close the window before closing it when the x button is clicked. Is this possible? Does anyone know how?

Or simply override:
    /** Overridde method in JFrame */
    protected void processWindowEvent(WindowEvent e)
        if(e.getID()==WindowEvent.WINDOW_CLOSING)
            int choice = JOptionPane.showConfirmDialog( null, "Are you e?" );     
            if( choice == JOptionPane.OK_OPTION )
                System.exit(0);
        super.processWindowEvent(e);
    }

Similar Messages

  • Firefox crashes when any tab in a open window is closed or when i restart the program after taking off toolbars. fix this?

    The Firefox program crashes whenever a tab is closed in any window. I tried to solve this problem by disabling my Norton add-on tool bar but the process requires me to restart Firefox. I have tried multiple times but the program crashes instead of restarting so the tool-bar cant be disabled. How can i fix the issue?

    You can use one of these to start Firefox in <u>Safe mode</u>:
    *On Windows, hold down the Shift key while starting Firefox with a double-click on the Firefox desktop shortcut
    *On Mac, hold down the Options key while starting Firefox
    *Help > Restart with Add-ons Disabled
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • When visiting one particular site my user name is automatically entered when clicking in the required box. I want to prevent this, how?

    This site requires a user name to be filled in a specific box and in another box you have to enter a series of numbers generated by a number generator (so not a password - different series every time you log in).
    However I don't want my username to appear automatically in the first box. When trying to change this in the security settings (extra-options-security), there is a password section where you can choose exceptions to the rule of remembering (if the remember box is marked). When clicking this exceptions box, the url of the site I'm talking about is not shown and it cannot be entered either, since you can only remove here.
    When clicking the "saved passwords" option, neither the site nor the username is listed. I think I have read all the help sections in relation to usernames and passwords, but found no solution.
    How do I prevent this username (so only a username - not the combination usename/password), to appear in the box?

    Hi Elron,
    I believe you can do that using a Firefox Add-on named [https://addons.mozilla.org/en-US/firefox/addon/form-history-control/ Form History Control]. You can download it through that link.

  • Popup when clicking on a check box

    Hi All,
    I have created a report which has check boxes for each record. Now I need to do the following.
    1. When clicking on the check box cause a pop up box to appear
    2. This popup box will allow you to enter a date.
    3. The date is then populated into a field linked to that record
    I don't expect a answer but just some hints or links that would help.
    Thanks
    Nahim

    Thanks Pleiadian,
    I'll do that for the date field. I have another scenario as follows:
    1. You have multiple records with 4 check boxes on each record
    2. Each records represents a job.
    3. The check boxes allow you to accept ,reject,start or complete the job.
    4. When selecting "Reject" a pop up box needs to appear to allow the user to enter a rejection reason.
    Could you please give me some idea on how to get this done.
    Thanks for you help
    Nahim

  • Reader v11 will not open in Windows Explorer (or browser) when clicking a PDF file; just a flash on the screen.

    Reader v11 will not open in Windows Explorer (or browser) when clicking a PDF file; just a flash on the screen. I can open Reader from Programs then open the file. I'm using a laptop upgraded to Windows 7

    I do no understand "flash on the screen"; could it be http://support.microsoft.com/kb/2716529 ?

  • Sometimes my windows can't be closed down when I press the red button.

    Sometimes my windows can't be closed down when I press the red button on the left corner, but when i press the button next to it, the minimize button it works. This just happens sometimes, why is that?

    two things to try: either click the green "zoom" bottom at the topLeft of the window in the title bar, or go to your System Prefs and then Displays, and increase the resolution that is used

  • When using Final Cut Express, the video in the Viewer window looks fine, but when I insert the video into the Canvas Timeline it appears to lose resolution, and look fuzzy and blurry. Are there preferences or settings for the Timeline that cause this?

    When using Final Cut Express, the video in the Viewer window looks fine, but when I insert the video into the Canvas Timeline it appears to lose resolution, and look fuzzy and blurry. Are there preferences or settings for the Timeline that cause this?

    Thanks David. I had to convert the mts file to Quick Time (using AunSoft Conversion software) before I could import it into Final Cut Express. And I made sure I kept the size of movie (720 X 480 with letterbox) to compliment what I set my Panaconic AVCCAM video recorder at (720/60). Even after I fully render it, it still looks fuzzy in the Canvas window at the right that plays what I have editing down in the Timeline. A friend that edits some using Final Cut Pro helped me to narrow things down to this problem. This is also wierd. If my Viewer window at the left is set to 200% to get the person's head the same size in the Canvas window at the right we needed to put it to 400%. Does this make any sense. We think we need to control the Time line resolution somehow but cannot find any options from my manual, or the help, or in the various drop down menus. Do you have any clue? What is going on?

  • My 120GB IPod classic is not recognized by my Windows 7 PC.  When I plug the ipod into my computer I receive a message saying that the USD device is not recognized.

    My 120GB IPod classic is not recognized by my Windows 7 PC.  When I plug the ipod into my computer I receive a message saying that the USD device is not recognized.  The Device Manager lists it as an Unknown Device.  I've tried uninstalling iTunes and reinstalling it, but it had no affect.  The odd thing is that our other iPod (160 GB Classic) is recognized on the same computer using the same USB cable.  When I plug the ipod in question into another PC, the PC seems to recognize the iPod and lists it in Windows Explorer (iTunes is not installed on this machine).  There seems to be something out of wack with this PC/iPod combo.  Any thoughts on what I can do to try to resolve this issue?  I tried all of the steps listed here, but they didn't help me.  http://support.apple.com/kb/TS1538
    Any help would be greatly appreciated.

    Are you plugging the iPod into a high powered USB 2.0 port on the back of your PC? Have you tried a different USB cable?
    What happens if you try to reset the device with it still connected to the PC?
    How to reset iPod
    Has this iPod ever worked on this PC or is this the first time you have time you have tried connecting it?
    Have you carefully worked through each and every single suggestion in this Apple support document?
    iPod not recognized in 'My Computer' and in iTunes for Windows
    B-rock

  • HT3986 I installed windows 7 successfull, but when I start the mac in windows I does not see the wifi, and others things. How do I get the drivers?

    I installed windows 7 successfull, but when I start the mac in windows I does not see the wifi, and others things. How do I get the drivers?
    I remember that with Snow Leopard you could download them from the Apple website.
    Cheers!

    Read the Boot Camp Documentation while you run Boot Camp Assistant to download the Windows Support Software which was the first step in the Boot Camp Setup procedure.

  • I downloaded the desktop, now when i click on it i logged in but now a black window (transparent) appears whenever i click on the desktop icon

    i downloaded the desktop, now when i click on it i logged in but now a black window (transparent) appears whenever i click on the desktop icon

    Please refer below and confirm whether you are getting black screen ?
    Black Screen at Sign-in | Creative Cloud Desktop app

  • Firefox does not open when clicking on the icon, the firefox.exe process consumes 99 % of the CPU and my computer runs slowly.

    I have been a happy user of Firefox for many years. Around last April first I opened Firefox and was offered an update to v 4.42.0.0 which I accepted. Installation seemingly went well. I forget now exactly what happened but the result has been that ever since April 1 I haven’t been able to open the Firefox browser when clicking on the Firefox icon. My computer now was running very slowly. I tried to uninstall Firefox, but a popup told me I couldn’t because Firefox was in use. This confused me because I couldn’t see it being used. Only now I have found that on Task Manager processes that “firefox.exe” was consuming 99 % of the CPU. After removing firefox.exe by clicking End Process my computer ran better. I uninstalled Firefox I had on my computer and installed Firefox 5.0. Unfortunately I have the same problems: Firefox does not open when clicking on the icon, the firefox.exe process consumes 99 % of the CPU and my computer runs slowly.

    Born2die! Brilliant. I am a desktop clicker and never knew Firefox had a safe mode.
    Thank You!
    I was unable to start in safe mode initially. The second time I disabled all of the Add-Ons and she started up just fine. I enabled them one by one hoping to track down the culprit but the problem seems to have gone away.
    BTW I am running ver. 3.6.8 (in response to cor-el's earlier post) and
    Firefox is in the process of downloading 3.6.10 (which I am starting to think may have been what caused this whole problem to begin with)
    Incidentally, whats up with all of the Java Console Add Ons?
    I have:
    Java Console 6.0.11, Java Console 6.0.13, Java Console 6.0.15
    Java Console 6.0.17, Java Console 6.0.20, and Java Console 6.0.21
    What are they? Do I need them? Can I uninstall them? Is this due to using Open Office?
    Also, .NET Framework 0.0.0 Should I uninstall it?

  • I updated my Itunes the other day and now, when clicking on the itunes icon, the program does not open?? I have tried uninstalling and reinstalling, resetting the computer, checking permissions, running as adminstrator.. nothing is working?? Help!!

    I updated my Itunes the other day and now, when clicking on the itunes icon, the program does not open?? I have tried uninstalling and reinstalling, resetting the computer, checking permissions, running as adminstrator.. nothing is working?? Help!!

    Amazing steps you've done so far! The great news is this is very unlikely an issue with your iPhone.
    I've run into a similar issue lately as well. I narrowed it down to one song that was causing 30 songs not to sync. I removed the song from the sync list (unchecked it) and all 29 songs were able to sync.
    You may be running into a similar issue. This may be a problem with this version of iTunes, an issue with one song or a group of songs; hard to know for sure. It's important to narrow down and isolate the cause. Most imporantly get that music back on there!
    The way to narrow down the casue add just a few songs at a time (even 1, just to get that first sync finished). Manually syncing is what you'll need here.
    Plug in your iPhone, on the Summary screen (shows a picture of your iPhone, the iOS version, Restore iPhone....; etc). Under the Options area at the bottom choose to Manually Manage Videos and Music then choose Apply in the lower right. The music that's on your iPhone now should be removed from your iPhone now. You're now able to sync music manually.
    The link below explains how to drag the songs from the iTunes library on the computer on to your iPhone which will start the sync. Add just one song just to see if you can get 1 of those hundreds of songs on there. If you can, awesome! Keep adding until you find the song or group of songs that are causing this issue.
    http://support.apple.com/kb/HT1535
    Please let me know how things are going.
    Cheers!

  • New update are listed on the app icon. When I click update all I'm prompted to enter password. When I do, the progress bars go away and nothing gets updated. Tried logging out, reset iPad, and nothing seems to work. Keeps asking me to enter password.

    New update are listed on the app icon. When I click update all I'm prompted to enter password. When I do, the progress bars go away and nothing gets updated. Tried logging out, reset iPad, and nothing seems to work. Keeps asking me to enter password.

    I've been having the same problem for days and just solved it. Tried going to Apple ID and had all the same problems you did in the second paragraph. I signed out with my current username on the ipad under settings--->store and signed back in with my oldest apple id and password. Now the apps don't ask for a password to upgrade. I too had a username that wasn't an email address and had to change to one that was at some point. That's what caused the problems. Hope this can work for you.

  • Firefox security settings will not save any of my passwords even when i click on the check box for saving passwords. please help.

    When a pop-up comes up on the screen it will ask to save my password or not, well, I click on save password but it doesnt save any passwords even when I have the check box checked for remembering my passwords for certain sites it will not save any type of passwords at all. What am I doing wrong? I am using linux-mac OS user.

    Simply because I don't think about using this option that takes more time to close... I always close ALL my windows with the X.
    Firefox doesn't hang at exit also...
    Using Firefox / Exit doesn't always save the bookmarks also... let's say there is 80% chances it will but not always... I noticed the first time I open firefox after booting the computer... Bookmarks won't be saved... But if I close firefox and re-open it, then it might save it... 50% guess...
    I tried the safe mode, but since its closing firefox and re-open it... new saved bookmarks sometimes work, sometimes don't... it's pretty unstable...
    Hopefully there is a solution to this problem in a near update, annoying... else I will simply reverse to firefox 3.6.16

  • Why do I not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task?

    We are trying to use workflows to review and edit pdf files in sharepoint 2010. We are having a couple of issues and am hoping someone has the answer.....
    1)  When myself and coworkers click on the pdf document in the library, we get the check out option as expected.  However when we click on the document
    link in a workflow task (on the sharepoint site), the pdf opens as a temporary file and we do not get the check out option.  Why does this happen????? 
    2)  The same thing happens when we click on the document link in the workflow task email;   HOWEVER,  one of our co-workers does get the
    check out option when clicking on the link in the email task.  Why would she get the checkout option using the email and not when clicking on the link in the task list on the sharepoint site ????  We have compared our internet settings and adobe
    settings to ours and found no differences.
    We are using Sharepoint 2010, Windows 7, IE8, Adobe Reader X or XI.  Some of us have Adobe Pro X and have the same issues.

    Hi,
    According to your post, my understanding is that you could not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task.
    I try to reproduce the issue, however, no matter when I click the pdf type document in the library or click on the pdf document link in the workflow task email, it download the pdf doucment and then I can open it.
    It will be better if you can descript how you
    get the check out option as expected when you click on the pdf document in the library.
    Then I upload a
    word type document to the library, no matter when I click the word type document in the library or click on the word document link in the workflow task email, I can open the word document directly and get the check out option as expected.
    I recommend to use the other type docuemts to check whether the check out option works.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

Maybe you are looking for