How to automatically close all the popups on application logout

Hello everybody,
I am a new member in the forum. I am facing a requirement in which when i click on the logout button of the application all the opened popups should be automatically closed.
Can anyone guide me in this regard.
thanks
raghu kokku

Register a shutdown hook for each popup E.G.
           Runtime.getRuntime().addShutdownHook(new Thread()
                public void run()
                    // Code to close the popup
            });

Similar Messages

  • How do I close all the apps that are still open?

    How do I close all the apps that are still open?

    You don't need to.
    The "task bar" that Demo mentions above is not, in fact, a task bar at all - it is the Recently Used Apps list. Not all of the apps in this list are open, running or in memory.
    iOS automatically handles closing apps that are not in use, so you don't have to manually manage them.
    Read this article from Apple for more information: http://support.apple.com/kb/HT4211

  • How do i stop all the popups every bloody time i click my trackpad a bloody mackeeper or similar pops up

    how do i stop all the popups every bloody time i click my trackpad a bloody mackeeper or similar pops up

    In addition to reply from Niel, some generalities
    There are at least two schools of thought expressed by experienced users here in this Apple community regarding malware and popups.
    One school primarily uses free application(s); the second school requires no additional software and just some simple steps on your part.
    Read these (of many threads) discussions.
    Yosemite OS X & MacKeeper I can't unistall
    Got a malware on OS X Yosemite, how do I get rid of it?
    "Ransomware" web pages
    Pop up problems in Safari on OS X Yosemite!
    See these Apple notes:
    Remove unwanted adware that displays pop-up ads and graphics on your Mac - Apple Support
    Safari 8 (Yosemite): Security pane of Safari preferences
    OS X Yosemite: Protect your Mac from malware

  • Before closing down the machine, how can I close all the open programs?

    Now that the iMac automauically starts up with the programs in use when closing, I find that this is delaying my start.
    There must be a shortcut to close all the open programs before closing the machine.
    Kindly advise.

    If by 'closing' the machine you mean shutting it down, there is a checkbox in the Shutdown confirmation window which is preset to re-start all apps at startup which were open when the machine was shut down. Uncheck that item in the Shutdown confirmation window.
    Unfortunately you'll need to do that each time you shut the machine down.

  • How do you close all the windows on Preview?

    Hi, I'm running Mac OS 10.7.5 and I'm having trouble with preview. Every time I open a picture it opens in preview but there is no way to close it, I even tried the alt/options key at the bottom to no avail all it does is give me a force quit option. Can someone please help me?

    OS X keyboard shortcuts
    Summary
    Learn about common OS X keyboard shortcuts. A keyboard shortcut is a way to invoke a function in OS X by pressing a combination of keys on your keyboard.
    Products Affected
    Mac OS X 10.2, Mac OS X 10.3, Mac OS X 10.4, Mac OS X 10.5, Mac OS X 10.6, OS X Lion, OS X Mountain Lion
    To use a keyboard shortcut, or key combination, you press a modifier key with a character key. For example, pressing the Command key (the key that has a symbol) and the "c" key at the same time copies whatever is currently selected (text, graphics, and so forth) into the Clipboard. This is also known as the Command-C key combination (or keyboard shortcut).
    A modifier key is a part of many key combinations. A modifier key alters the way other keystrokes or mouse/trackpad clicks are interpreted by OS X. Modifier keys include: Command, Shift, Option, Control, Caps Lock, and the Fn key. If your keyboard has an Fn key, you may need to use it in some of the key combinations listed below. For example, if the keyboard shortcut is Control-F2, press Fn-Control-F2.
    Here are the modifier key symbols you may see in OS X menus:
    (Command key) - On some Apple keyboards, this key also has an Apple () logo
    (Control key)
    (Option key) - "Alt" may also appear on this key
    (Shift key)
    (Caps Lock) - Toggles Caps Lock on or off
    Fn (Function key)
    Startup shortcuts
    Press the key or key combination until the expected function occurs/appears (for example, hold Option during startup until Startup Manager appears, or Shift until "Safe Boot" appears). Tip: If a startup function doesn't work and you use a third-party keyboard, try again with an Apple keyboard.
    Key or key combination
    What it does
    Option
    Display all bootable volumes (Startup Manager)
    Shift
    Perform a Safe Boot (start up in Safe Mode)
    Left Shift
    Prevent automatic login
    C
    Start from bootable media (DVD, CD, USB thumb drive, and so forth)
    T
    Start in FireWire target disk mode
    N
    Start from NetBoot server
    X
    Force Mac OS X startup (if non-Mac OS X startup volumes are present)
    D
    Use Apple Hardware Test
    Command-R
    Use Recovery (OS X Lion or later)
    Command-V
    Start in Verbose Mode
    Command-S
    Start in Single User Mode
    Command-Option-P-R
    Reset NVRAM / parameter RAM
    Hold down the Media Eject (⏏) key or F12 key, or mouse or trackpad button
    Eject removable discs
    See also: Startup key combinations for Intel-based Macs.
    Sleep and shut down shortcuts
    Key or key combination
    What it does
    Power button
    Turn off your Mac or put it to sleep
    Hold down the power button
    Force your Mac to shut down
    Command-Control-power button
    Force your Mac to restart
    Control-Media Eject (⏏)
    Show restart/sleep/shutdown dialog
    Command-Option-Media Eject (⏏)
    Put the computer to sleep
    Command-Control-Media Eject (⏏)
    Quit all applications (after giving you a chance to save changes to open documents), then restart the computer
    Command-Option-Control-Media Eject (⏏)
    Quit all applications (after giving you a chance to save changes to open documents), then shut down the computer
    Shift-Control-Media Eject (⏏)
    Put all displays to sleep
    Finder keyboard shortcuts
    Key combination
    What it does
    Command-A
    Select all items in the front Finder window (or desktop if no window is open)
    Command-Option-A
    Deselect all items
    Command-Shift-A
    Open the Applications folder
    Command-C
    Copy selected item/text to the Clipboard
    Command-Shift-C
    Open the Computer window
    Command-D
    Duplicate selected item
    Command-Shift-D
    Open desktop folder
    Command-E
    Eject
    Command-F
    Find any matching Spotlight attribute
    Command-Shift-F
    Find Spotlight file name matches
    Command-Option-F
    Navigate to the search field in an already-open Spotlight window
    Command-Shift-G
    Go to Folder
    Command-Shift-H
    Open the Home folder of the currently logged-in user account
    Command-I
    Get Info
    Command-Option-I
    Show Inspector
    Command-Control-I
    Get Summary Info
    Command-Shift-I
    Open iDisk
    Command-J
    Show View Options
    Command-K
    Connect to Server
    Command-Shift-K
    Open Network window
    Command-L
    Make alias of the selected item
    Command-M
    Minimize window
    Command-Option-M
    Minimize all windows
    Command-N
    New Finder window
    Command-Shift-N
    New folder
    Command-Option-N
    New Smart Folder
    Command-O
    Open selected item
    Command-Shift-Q
    Log Out
    Command-Shift-Option-Q
    Log Out immediately
    Command-R
    Show original (of alias)
    Command-T
    Add to Sidebar
    Command-Shift-T
    Add to Favorites
    Command-Option-T
    Hide Toolbar / Show Toolbar in Finder windows
    Command-Shift-U
    Open Utilities folder
    Command-V
    Paste
    Command-W
    Close window
    Command-Option-W
    Close all windows
    Command-X
    Cut
    Command-Option-Y
    Slideshow (Mac OS X v10.5 or later)
    Command-Z
    Undo / Redo
    Command-1
    View as Icon
    Command-2
    View as List
    Command-3

  • Multitasking - How do I close all the apps in iOS 7?

    How do I close the apps in iOS 7?

    you didnt do it right, try again, thats how it works 
    double tap home button.......
    SWIPE UP on the LARGE ICON above the small icon for the APP
    you might be swiping up incorrectly on the small icon

  • How do I stop all the popups

    The browser crashes and several bogus ads appear for pc backup etc...if an actal site does load it is covered on ads.

    Hi covertwo,
    Thank you for your question, I understand that you have an issue with pop ups. If it is for your pc please run a malware scan. Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/viruses/disinfection/5350 Anti-Rootkit Utility - TDSSKiller]
    * [http://general-changelog-team.fr/en/downloads/viewdownload/20-outils-de-xplode/2-adwcleaner AdwCleaner] (for more info, see this [http://www.bleepingcomputer.com/download/adwcleaner/ alternate AdwCleaner download page])
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • When I open Safari 5.1.5, it automatically opens all the pages from my previous session. Can I turn off that feature , and how?

    When I open Safari 5.1.5, it automatically opens all the pages from my previous session. Can I turn off that feature , and how?

    Hi...
    Open System Preferences > General
    Deselect:  Restore windows when quitting and re-opening apps
    Restart your Mac.

  • On I-Mac, how can I close all tabs at the same time?

    On I-Mac, how can I close all tabs at the same time?
    I use Mozilla Firefox for internet.

    Not an Apple product, have you visited:
    https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-qu ickly

  • Cannot download application world- how to close all the browser windows

    i cannot download the blackberry application world "sorry, your session has expired. Please close all of your browser windows and then return to the welcome page to start again." How to close all the browser windows?

    Hello numadia
    Welcome to BlackBerry Support Forums
    Is your problem resolved or you're still having problem with download BlackBerry world !
    If you're having problem then just peform a Battery pull restart by removing the battery while your device is Powered On, wait for a min. then reinsert it back after reboot please try it again.
    If problem persists then you can also go through this Knowledge Base  KB32113
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • How do I close all tabs at one time without closing Firefox completely?

    How do I close all tabs at one time without closing Firefox completely?

    Open a new window. Go to the other window with all the tab. Close it. You now only have that newly open window.
    Hub

  • How can I copy all the comments from my picture/s in fotostream to my picture/s in my library?

    How can I copy all the comments from my picture/s in fotostream to my picture/s in my library?

    Hi, first, you should prevent the iTunes library auto sync with iPhone: Launch iTunes > click Preferences... > click Devices. In the window, check the option 'Prevent iPods, iPhones, and iPads from syncing automatically'. Next, connect your iPhone with your computer via the USB cable. Click the mini menu for iTunes on the very top left and click the option 'Show menu bar'. After then you can see iTunes File, Edit, View, Control, Store and Help menus on the ribbon. Click File > Devices > Transfer purchases from (your iPhone name). You can also access to the File menu by holding down Alt (Option on Mac), Shift and F keys. This is how to get your iPhone purcahsed song transferred to iTunes Library.

  • How do I close all apps at once

    The shutdown procedures in Lion are broken (IMHO). Shutdown should mean shutdown, not sleep/standby. This is a powerful computer, not some cheap portable toy. Multiple apps is not a bolt on but a norm.
    In another thread there seems to be no apparent way around Lion not closing apps on shutdown    After another 5+minute boot time (white screen of death?) I am getting fustrated. Apps I do not want to load insist on loading without asking because shutdown does not close the apps correctly.
    Does anybody know of a scripting way that will automatically close all apps gracefully upon shutdown?
    Thanks.

    No. You have to swipe each app up off the screen to close them.

  • How do I collapse all the accordion panels

    The problem that I still have is that I am trying to close all the Accordions when clicking on the last panel.
    I have looked at the  Accordion.closePanel() , but that throws an error
    http://labs.adobe.com/technologies/spry/articles/data_api/apis/accordi on.html
    here is a link to the page http://www.antworks.co.uk/mobymemory/menu.html
    see the code below. Any help would be greatly appreciated. Thanks
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryAccordion.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryAccordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="Accordion1" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTop" onclick="Accordion1.openPanel(0); return false;">memory cards (make)</div>
    <div class="AccordionPanelContent">
    <img src="images/new/trans.gif" width="7" height="7" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="12" /><br />micro SD / Transflash<br />
    <img src="images/new/trans.gif" width="7" height="3" />
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab" onclick="Accordion1.openPanel(1); return false;">memory cards (brand)</div>
    <div class="AccordionPanelContent2">Content 2</div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab" onclick="Accordion1.openPanel(2); return false;">mobile accessories</div>
    <div class="AccordionPanelContent">Content 2</div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab" onclick="Accordion1.openPanel(3); return false;">gaming</div>
    <div class="AccordionPanelContent">Content 2</div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab" onclick="Accordion1.openPanel(4); return false;">computing</div>
    <div class="AccordionPanelContent">Content 2</div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelBot" onclick="Accordion1.openPanel(5); return false;">customer login</div>
    <div class="AccordionPanelContent">Content 2</div>
    </div>
    </div>
    <script type="text/javascript">
    <!--
    //var Accordion1 = new Spry.Widget.Accordion("Accordion1", {closedClass:"Accordion"});
    //var Accordion1 = new Spry.Widget.Accordion("Accordion1", {closedClass:"AccordionPanel"});
    var Accordion1 = new Spry.Widget.Accordion("Accordion1", { useFixedPanelHeights: false });
    //-->
    </script>
    </body>
    </html>
    css
    @charset "UTF-8";
    /* SpryAccordion.css - Revision: Spry Preview Release 1.4 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */
    /* This is the selector for the main Accordion container. For our default style,
    * we draw borders on the left, right, and bottom. The top border of the Accordion
    * will be rendered by the first AccordionPanelTab which never moves.
    * If you want to constrain the width of the Accordion widget, set a width on
    * the Accordion container. By default, our accordion expands horizontally to fill
    * up available space.
    * The name of the class ("Accordion") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style the
    * Accordion container.
    .Accordion {
    width: 174px;
    overflow: hidden;
    /* This is the selector for the AccordionPanel container which houses the
    * panel tab and a panel content area. It doesn't render visually, but we
    * make sure that it has zero margin and padding.
    * The name of the class ("AccordionPanel") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel container.
    .AccordionPanel {
    margin: 0px;
    padding: 0px;
    /* This is the selector for the AccordionPanelTab. This container houses
    * the title for the panel. This is also the container that the user clicks
    * on to open a specific panel.
    * The name of the class ("AccordionPanelTab") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel tab container.
    .AccordionPanelTab {
    background-color: #CCCCCC;
    letter-spacing: -0.04em;
    background-image: url(../images/new/spry/meun_blue.gif);
    background-repeat: no-repeat;
    padding: 8px 0 0 12px;
    height: 21px;
    font-family: Arial, Helvetica, sans-serif;
    color:#666666;
    font-size: 14px;
    font-weight: bold;
    margin: 0px;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    .AccordionPanelTop {
    background-color: #CCCCCC;
    letter-spacing: -0.04em;
    background-image: url(../images/new/spry/meun_top.gif);
    background-repeat: no-repeat;
    padding: 8px 0 0 12px;
    height: 22px;
    font-family: Arial, Helvetica, sans-serif;
    color:#666666;
    font-size: 14px;
    font-weight: bold;
    margin: 0px;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    .AccordionPanelBot {
    background-color: #CCCCCC;
    letter-spacing: -0.04em;
    background-image: url(../images/new/spry/meun_bot.gif);
    background-repeat: no-repeat;
    padding: 8px 0 0 12px;
    height: 21px;
    font-family: Arial, Helvetica, sans-serif;
    color:#666666;
    font-size: 14px;
    font-weight: bold;
    margin: 0px;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    /* This is the selector for a Panel's Content area. It's important to note that
    * you should never put any padding on the panel's content area if you plan to
    * use the Accordions panel animations. Placing a non-zero padding on the content
    * area can cause the accordion to abruptly grow in height while the panels animate.
    * Anyone who styles an Accordion *MUST* specify a height on the Accordion Panel
    * Content container.
    * The name of the class ("AccordionPanelContent") used in this selector is not necessary
    * to make the widget function. You can use any class name you want to style an
    * accordion panel content container.
    .AccordionPanelContent {
    letter-spacing: -0.05em;
    background-image: url(../images/new/spry/meun_grey.gif);
    background-repeat: repeat-y;
    padding: 0 0 0 12px;
    font-family: Arial, Helvetica, sans-serif;
    color:#7f879e;
    font-size: 14px;
    font-weight: bold;
    overflow: hidden;
    margin: 0px;
    .AccordionPanelContent2 {
    letter-spacing: -0.05em;
    background-image: url(../images/new/spry/meun_grey.gif);
    background-repeat: repeat-y;
    padding: 0 0 0 12px;
    font-family: Arial, Helvetica, sans-serif;
    color:#7f879e;
    font-size: 14px;
    font-weight: bold;
    overflow: auto;
    margin: 0px;
    height: 200px;
    /* This is an example of how to change the appearance of the panel tab that is
    * currently open. The class "AccordionPanelOpen" is programatically added and removed
    * from panels as the user clicks on the tabs within the Accordion.
    .AccordionPanelOpen .AccordionPanelTab {
    background-color: #EEEEEE;
    /* This is an example of how to change the appearance of the panel tab as the
    * mouse hovers over it. The class "AccordionPanelTabHover" is programatically added
    * and removed from panel tab containers as the mouse enters and exits the tab container.
    .AccordionPanelTabHover {
    color: #555555;
    .AccordionPanelOpen .AccordionPanelTabHover {
    color: #555555;
    /* This is an example of how to change the appearance of all the panel tabs when the
    * Accordion has focus. The "AccordionFocused" class is programatically added and removed
    * whenever the Accordion gains or loses keyboard focus.
    .AccordionFocused .AccordionPanelTab {
    background-color: #3399FF;
    /* This is an example of how to change the appearance of the panel tab that is
    * currently open when the Accordion has focus.
    .AccordionFocused .AccordionPanelOpen .AccordionPanelTab {
    background-color: #33CCFF;

    Just so that you know for the next time, when you give us a URL, there is no need to post your code. This is by far the most preferred method for obtaining our assistance.
    Having said that, place the fillowing in the HEAD section of your document, ensuring that you do have the file in that location
    <script src="SpryAssets/SpryDOMUtils.js"></script>
    Then, near the bottom of the page within the same SCRIPT content as your constructor(s), place the following code
    Spry.$$(".AccordionPanelBot").addEventListener("click", function(){
             Accordion1.closePanel();
    The Spry Element Selector (Spry.$$) requires SpryDOMUtils.js. Here we place an event listener to your last tab with a class name of AccordionPanelBot, which when clicked will close the currently open panel(s).
    I hope this helps.

  • How do I save all the images in the project bin at once

    So I don't have to double-click on each one of them and click save. 
    The only way I have figured out how to do it is actually close photoshop to get it to ask me to save each image one at a time...  Surely, there is a better way which I am missing??
    By the way, it's whacked that when I double-click on File 24.psd to select it, then I click File, then I click Save it asks me what I want to name it, and when I leave it with the same name and click OK it tells me a file with that name exists and asks me if I want to click OK overwrite it??  So much clicking...
    Of course I want to overwrite it... that's the file I have open...  This program takes some getting used to from a newbie perspective... 
    Thank you!!

    Hi,
    For saving all of the images, have you tried File -> Close All
    That will close all the images which presumably be OK as you have finished with them.
    There are some saving preferences Edit -> Preferences -> Saving
    One of them can be set to ask or overwrite.
    Hope that helps
    Brian

Maybe you are looking for