Closing all JFrames without killing the application

Is there a way I can close all JFrames without quiting the application? I have several JFrames open that I want to dispose of at the same time. Is this possible?

If you close all the JFrames, then how does the user
interact with the application?I think that's outside the scope of the original question, but there are a number of possibilities. To name just a few:
1) The console
2) The program opens a new JFrame after some time has elapsed (maybe an appointment reminder application, or an instant messenger client, for example)
3) The program is really a server, so you don't need to see anything
4) The program is "spyware" so it's meant to be hidden
5) The program runs in full-screen mode part of the time (for example, a game which uses JFrames to choose options, then full-screen for game play)
...

Similar Messages

  • Closing a form without exiting the application

    FORM_A calls FORM_B. FORM_A needs user's input (parameters). FORM_A passes those parameters to FORM_B. After the user is finish with FORM_B (which has the details about the parameters passed) I would like for them to close that form and go back to FORM_A to start the process all over again. On FORM_B I have an exit button with the code of: close_form('FORM_B'); this doesn't work it closes the whole application. How can I make this work? I am using Forms 6i/Oracle 7.3.4 database.
    Thanks in advance.
    ~Vannette

    Christian,
    Form_A has this code when opening FORM_B:
    call_form('FORM_B',NO_HIDE, DO_REPLACE, NO_QUERY_ONLY,param_list_id);
    FORM_B has this code when closing form (FORM_B):
    DECLARE
         fm_id varchar2(25);
    BEGIN
         fm_id := :System.Current_Form;
         close_form(fm_id);
    end;     
    At first I had the following code on FORM_B
    exit_form(NO_COMMIT);

  • Handling push messages without launching the Application

    Hi
    I have done couple of Applications using Push messages but still I am searching for a solution. Consider I have pressed the Exit button without launching the application when a push messages hits my application, So when I launch my application manually the next time, how to get the previously exited push message. Sorry If my question doesnt make any sense. I appreciate all the replies...
    Pravin

    Hi
    I have done couple of Applications using Push messages but still I am searching for a solution. Consider I have pressed the Exit button without launching the application when a push messages hits my application, So when I launch my application manually the next time, how to get the previously exited push message. Sorry If my question doesnt make any sense. I appreciate all the replies...
    Pravin

  • Modify Business Rules without redeploying the application

    Hello everyone,
    When using a "Business Rules" with a BPMN Process, we can change the business rules without redoploying the application by using BPM Composer. I would like to know if it is possible to do the same thing when we use a business rules with a BPEL Process.
    Thank you in advance for your answer

    Hi Neeraj,
    Thanks for your answer,
    BPMN Process exist only in Oracle BPM Suite, in Oracle SOA Suite we have a BPEL Process to model the business activities
    My problem is when I try to open a deployed project from Business Composer, it opens only projects where I use a BPMN Process. So when I use a business rules with a BPEL Process, I can't open the deployed project from the Business Composer.
    Regards,
    Edited by: Bilou on 1 juin 2012 12:53

  • How could we do this without killing the system?

    If we take in a file through the PI file adapter that has 1 million lines and read it in and process each line as a single transactionu2026  How could we do this without killing the system?

    Hi,
    >>>How could we do this without killing the system?
    which system ? PI could do this if the transactions are small (only one line so very small I guess)
    but I'm not sure about the ERP...
    Regards,
    Michal Krawczyk

  • Reinstall apex without loosing the applications that you created

    Is there a way to reinstall apex without loosing the applications that I created?
    I have some apex packages that cannot be compiled
    Jules

    Jules,
    As the site administrator, export the workspaces to files. Then login to each workspace as an admin and export each of the applications to files. (You should already have these backups anyway). If you have static files, images, css, user interface defaults, or themes that you've uploaded into any workspace you'll need to export those as well.
    After you re-install, reverse the process, starting with installing the workspaces, then install the applications and other components into each worskspace.
    But why do you have to do this? What won't compile?
    Scott

  • How can i get notification of new emails in Mail without having the application open?

    How can i get notification of new emails in Mail without having the application open?

    Leave Mail running, but close its window (click red dot or ⌘W).
    Right-click the Mail icon and use "Options" to enable "Open at Login".  In the "Login Items" tab of "Users & Groups" system preference, check the "Hide" box next to Mail so it doesn't open a window when starting.

  • How do i lock all fields without using the signature function with adobe lifecycle designer 9

    How do i lock all fields without using the signature function with adobe lifecycle designer 9 ...
    I want it to have the same affect as when a signature is used but not use that function. I want a button that says lock all fields. And then you can click it again to unlock all fields...
    Thanks

    Here you go!
    LOCK the form once its SAVEd?

  • Ipad2 crashes multiple applications - tried closing all apps, also reset the IPAD2.

    Ipad2 crashes after opening multiple applications.  I have closed all apps.  I have reset the ipad2, still no luck  Any suggestions are appreciated.

    19-Mar-2008 07:42 AM
    harrykaa wrote:
    Hi pburgaard,
    You wrote you did upgrade to Nokia Maps 2.0 Beta.
    And that you installed Nokia Map Loader 1.3.
    Well Nokia Maps 2.0 Beta works with Nokia Map Loader 1.35.
    Harrykaa
    Hi Harrykaa,
    That's also what I have concluded after additional research since the post. Wierd thing though, is that the "beta" Map Loader show v. 1.3 when starting.
    But it this enough to crash the phone when I use the gps coordinates in Google Maps, Location Tagger, and ZoneTag?

  • Closing a JFrame without using System.exit(0)

    Hello all,
    I'm writting an application at the moment that uses a JFrame as an "about box" invoked when a menu item from another JFrame is selected . The about box is set to undecorated, and I have set up an Thread to handle an animation of the credits that move up slowly. I have also added into it code to play a sound file while the credits are running.
    I wanted to have it so that the user can just click once anywhere on the Panel area of the about box, and that would close the about box window and stop the sound.
    I can get it to stop the sound on click no problem, what I'm having issues with is closing just the about box Frame. I've used System.exit(0) but this closes the original application, which I dont want it to do. I've been looking at online example code and I've found that dispose() might work... Problem is my JFrame for the about box is initiated in the main applications JFrame under an eventListener for the menuItem 'about'. The sound file is played inside the JPanel of the about box. And the listener to close it is located in the same place ( about box JPanel ).. does anyone know how to get this frame ( initiated in main applications JFrame ) and dispose of this frame through code located in the JPanel of the about box.
    I hope this is descriptive enough for you.
    Please let me know if you have any questions about my question.
    Many thanks,
    Mark.

    It seems you are asking how to find the parent frame of a Component that you know is within a frame?
    You can getParent() of the component. If it is a frame (instanceof) - dispose, else check for the getParent()...
    If you don't want to code it yourself use SwingUtilities.getWindowAncestor(Component) to get the Window in which the panel is.
    HTH
    Mike

  • Disabling Maximize option from JFrame without disabling the resizing option

    Hi all,
    I want to know how we can disable the maximize option of a JFrame window without disabling the resizing option. I have tried JFrame.resizable(false). It disables both maximizing and resizable option. But I need the resizable option to be working.
    Anyone can help me?
    Thanks in Advance

    this works OK on 1.5.0_05 (unsure about other versions)
    and you'll lose the minimize as well
    import javax.swing.*;
    import java.awt.*;
    class Testing
      public void buildGUI()
        JFrame f = new JFrame("JFrame");
        f.setUndecorated(true);
        f.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
        f.setSize(400,300);
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • How do I format the hard drive on my Imac without losing the applications etc?

    I am fairly new to mac computers. and was wondering if there is anyone out there who could help. I have an Imac running Snow Leopard which is becoming very slow in starting up. I want to format the hard drive but still want to retain the applications etc already on the Imac. Can I just time machine the computer then insert thte OS disk which will format the hard drive? Will this give me a better start up time?
    Many thanks in advance.

    If you format the hard drive, you'll lose all your data. You can make a Time Machine backup, format the disk and restore from the backup only what you need

  • My 'songs' list in my library has all songs listed twice.  How do I remove all duplicates without removing the same songs in my albums and playlists?

    My 'songs' list in my library are all listed twice.  How do I delete the duplicates without removing the songs from my playlists and albums?

    Hello, juliego
    Thank you for visiting Apple Support Communities. 
    Here is a helpful guide on how to identify and delete duplicate media from your iTunes library. 
    How to find and remove duplicate items in your iTunes library
    http://support.apple.com/kb/ht2905
    Cheers,
    Jason H.

  • Mail notification without opening the application

    Is there a way to have Mail notify that you have mail without actually opening the application. I noticed if I have the Mail application open, (but minimized) that within the Mail icon I will see a number of unopened emails identified.

    There are a couple of Widgets that will do that for you. Fairly light apps.
    Have a search here and see if there is something there that you like.
    Beavis2084

  • How do I duplicate a spreadsheet, then delete all content without losing the formatting?

    I am using numbers to do my accounting for my business. I have created a spreadsheet with pre-formatted columns which is proving VERY useful. I have a drop-down list of "suppliers" which I will add to each month but the problem I have is that when I try and duplicate the spreadsheet (ready to start scratch for next months accounts) I'm struggling to delete all the data from the spreadsheet WITHOUT losing the formatting.
    Any help is appreciated.

    "Okay so to be more specific there is one particular column called "suppliers" which is formatted to be a drop down menu. This menu will be added to monthly thus growing larger and becoming comprehensive. What's the best approach to be able to start fresh every month but with the most recent and up-to-date "suppliers" menu?"
    I'd suggest using a two template (or template plus document) approach.
    The template would include the message "Paste POP-UP Here. Fill down" in the top cell of the Suppliers column.
    The second template (or regular document) contains the current version of the pop-up menu cell.
    Open both,
    in the single cell document, select and edit the pop-up menu to include the added suppliers. When done, select the cell and Copy.
    Switch to the document produced by the main template. Select the cell with the message (and the rest of the column below that cell) and Paste.
    You now have an empty spreadsheet with pop-up containing the current supplier list.
    If you add a supplier in mid month, you can add that supplier to the pop-up menu in the current row of the document, and Fill the edited menu down from there.
    At the end of the month, if you have made additions to the menu list, select and copy a cell containing the most recent version, switch to the single cell document, select that cell and Paste. This updates the single cell to contain the current version of the pop-up menu, ready to be pasted into the next month's document.
    Regards,
    Barry
    PS: On re-readiing this, I'd also consider skipping the production and saving of the one cell document. The most current version of the pop-up menu will be the one at the bottom of the Suppliers column of the month just ending. That cell can be copied, pasted into the top cell of the column in the new month's table/document, then reset to the 'no entry' item, then filled down the column.
    B

Maybe you are looking for

  • Log file in the deploy service

    Hi , I am trying to deploy a ear using deploytool.I am getting errors while deploying.I want see the complete log for the errors. The deployer_log file displays some errors and ....20 more  " For detailed information see the log file of the Deploy Se

  • Mail notifications for Eudora clients not displaying correct information in message subject

    I have been using PMDF from Innosoft with Netscape Calendar Server 4.0. I recently upgraded from Calendar Server 3.51 to 4.0, and I am using the sendmail command to send out email notifications. When I send out email notifications, clients who use Eu

  • Reject Purchase Requisition

    Warm Greetings !!!!!!!!!!!!! With Reference to Release Strategy of Purchase requisition After higher level release preceding level can still reject the purchase requisition example: Below release for the level 100000/= User create PR /               

  • Why do we have to re-register Office 365 every time we use one of the applications?

    We purchased the 5 user package and 1st and 2nd machines seem to work fine and do not require logging into the cloud to use the products, but on the third one we have to register the products every time we try to use it.  The pc having the issue is r

  • My computer is very slow

    my computer is very slow