Preventing app exiting when user presses cross button

Hello,
I can't seem to prevent the whole application closing down when the user presses the cross button at the top of any of the forms. For example I have a menu form which I want to keep running whilst the user closes other forms which are shown from it.
Any suggestions?
Thankyou,
Karsten

I could be wrong, but I thought that the default
behavior of a JDialog is to not close the whole app
when it closes. Is that not correct?You are correct, sir. The only way an application closes is by explicitly telling it to do so by EXIT_ON_CLOSE.

Similar Messages

  • MY iPhone 4 after  being updated to iOS7 will not download or update any apps. When i press the button on my device to download a new app the loading wheel appears then in a few seconds disappears. I dont get a terms and conditions screen or anything.

    MY iPhone 4 after  being updated to iOS7 will not download or update any apps. When i press the button on my device to download a new app the loading wheel appears then in a few seconds disappears. I dont get a terms and conditions screen or anything.

    Ive tried using wifi and 3G seperately. Ive tried restarting the phone. Ive tried restoring it from a backup but none of these have worked yet.

  • At selection-screen when user presses back button

    Experts,
    I have two radio buttons and two relative checkboxes ( one checkbox related to other ).
    Now when user selects one radio button and executes teh program, there is a summary page. When user presses back button from there, I return to the selection screen, however the selections are still there.
    Ideally I want a blank screen, as in nothing selected( similar screen when program is executed first ). Is it possible ?
    Kindly advise,
    Gols

    Hi,
    Try clearing radio buttons and check boxes at PBO of selection screen using AT SELECTION-SCREEN OUTPUT statement.
    PARAMETERS:
      p_rad1 TYPE c RADIOBUTTON GROUP rd1,
      p_rad2 TYPE c RADIOBUTTON GROUP rd1.
    PARAMETERS:
      p_chk1 TYPE c AS CHECKBOX,
      p_chk2 TYPE c AS CHECKBOX.
    AT SELECTION-SCREEN OUTPUT.
      CLEAR: p_rad1, p_rad2, p_chk1, p_chk2.
    Hope this helps.
    Regards,
    txhughes

  • Apply my own formula when user presses sum button in a report

    Hi all,
    I have this requirement that when user presses SUM button for a particular field in a report instead of Summing it up and displaying I can apply my own formula and display its value. 
    For Ex :  When we press sum button for field efficiency :
    EFFICIENCY
    10
    11
    05
    26 - It would sum it up and display 26 , where as i don't want it to display 26 i want to apply a separate formula and display that value

    Suggest to add another custom button to the ALV toolbar and write the desired logic you want.
    Also to avoid confusion, disable the standard summation button. (you can add the same icon for the custom button if you wish)
    Thanks,

  • How to show old value in webui when user press NO button on popup button.

    Hi Experts,
    As per requirement I have created custom field with dropbox and with popup box to cofirm user decision if value from field changes.
    Now on Popup when user press Yes then its Ok as no need to change the current value in the field.
    but when user press the NO button I want to display the old value on Web UI so now I am able to catch the old value and pass it into the field at backend but I am not able to make the change on the web page.
    Please reply if anyone have solution for it.
    BR
    Gaurav    

    Hi Gaurav,
    First of all when all this is happening in UI why you need to pass the selected value to backend. I didnt get this.
    I believe, this is only ui related and the old value which you got can be set in the IMPL class global variable and  trigger method set_on_close_event, say here 'CONFIRM_POPUP_CLOSED' as shown below:
      gr_popup->set_on_close_event( iv_event_name = 'CONFIRM_POPUP_CLOSED'
                                        iv_view = me ).
    Retrive the answer as per selection from popup in method 'CONFIRM_POPUP_CLOSED'
    by using:
      lv_answer = gr_popup->get_fired_outbound_plug( ).
    if lv_answer is NO, then put back the globally stored old value back to dropdown attribute, using:
    set_property_by_value method(   iv_attr_name = 'dropdown attr' iv_value = 'old value' )
    Thats it. No need to do anything.
    Regards,
    Bhushan

  • Triggering POPUP to SAVE when user Presses BACK  Button

    h4.
    Hi Friends,
    h4.
    When the User Presses BACK Button in the PF Status, it should trigger POPUP_TO_CONFIRM  whether to SAVE or not.
    h4.
    Suppose if the user doesn't change any thing in the Screen, it should not ask the User.
    h4.
    How can i know whether the user changes something in the Screen.
    h4.
    Screen mean Table Control..
    h4.
    How can i track this.
    h4.
    Regards:.
    h4.
    Sridhar.J

    Hi Sridhar,
    Within the table control loop, create a chain of all the fields in the structure of line type. call a PAI module with addition ON CHAIN-REQUEST. This is a conditional module call which will be triggered ONLY when user changes something on the screen. In this module you can set a global variable DATA_CHANGED to say 'X'. When user chooses BACK function, check this global variable to decide on the confirmation popup.
    One small caution. If you have the ROW SELECTION field also included in the line type of your internal table associated with the table control, you need to exclude that from the CHAIN of fields above; otherwise even when user selects a line or de-selects, this module will be triggered.
    Read ON CHAIN-REQUEST and ON REQUEST online ABAP help for more clarity.
    Regards
    Suresh
    Edited by: Suresh Radhakrishnan on Sep 28, 2009 4:29 PM

  • Flatten or Lock a fillable pdf when user presses submit button

    Hi.  I've been searching all over the net trying to figure this out.  I have a form that I created in LiveCycle and in the form I inserted a "REGULAR" button, with the following script:
    //Create a variable to hold the document object
    var 
    oDoc = event.target;oDoc.mailDoc({
    bUI
    : true,
    cTo
    : "[email protected]",
    cSubject
    : "New Procedure - Operator "+TextField1.rawValue+" - ID "+TextField2.rawValue,
    cMsg
    : "Attached is the New Procedure form for Operator "+TextField1.rawValue+" - ID "+TextField2.rawValue+".",
    This script is emailing to "[email protected]" and populating the subject line and body of the message with some text and some items from fields in the PDF.
    I want to have the PDF locked or flattened when the user hits the submit button, to ensure that the information put in the PDF isn't altered after they submit it.  I cannot find any way of doing this easily.  I found a script that will flatten the message (below), but I don't know how to add it to the email script I have noted above.  I don't want to add a second button to the form as I want to keep it as simple as possible for the user.
    Any suggestions someone might have would be greatly appreciated.  Thank you.
    Ryan

    The link at the bottom of the blog post takes you to Acrobat.com where you can download the file.
    Just tested it, the lin k is working fine for me.

  • When the user press the button Calculate Tax (see attached doc) and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.

    When the user press the button Calculate Tax  and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.
    All setup looks fine.
    Please let me know what can be done on this?
    Regards,
    Peu

    HarryAustralia wrote:
    I recently updated my ipad wifi only to the new ios 6.1.2 and initially I had the auto cover lock option which can be seen in the Generals tab, but then it stoped working!! Before the update, the auto cover lock worked fine. So after trying all the options, I then did a complete reset on the ipad and now its gone all together from the General tab!! I can no longer see the "auto cover lock" option.
    The iPad cover lock is for when you use a cover with magnets in it to lock and unlock the iPad when you close the cover or open it. Try running a refrigerator magnet along the sides of the iPad and see if that trips the iPad Cover Lock back into the settings.
    That is not the same thing as the iPad Auto Lock setting which allows you to set an allotted time before the iPad goes to sleep.
    You can try resetting all settings to see if the Auto Lock feature retinrs to the iPad.
    Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. This can be a little time consuming re-entering all of the device settings again.

  • Something has happen my ipad air 2 it wont let me download or update any apps, when I press the button do update or download it looks like it is but it doesn't so if anyone knows what's going wind please help me

    Something has happen my ipad air 2 it wont let me download or update any apps, when I press the button do update or download it looks like it is but it doesn't so if anyone knows what's going wind please help me

    Do you have any restrictions for purchasing apps on the phone? Settings > General > Restrictions. If you have a Mac computer or another Apple device can you purchase things in the App Store using the same Apple ID on something else?

  • Cannot delete Lists from Reminders app after upgrading to iOS 7. The deal is that those lists don't show in iCloud account in the Web-Browser, so I cannot delete via Browser, when I press the button Edit in the List, there is no Delete button at thebottom

    On my iPhone 5, upgraded to iOS 7, the lists in Reminders are impossible to delete.  When I press Edit button in the right corner of the app, the button Delete list is supposed to be at the bottom, but it's empty there, the deal is I could delete some of the lists, but most of them I can't. I tried delete iCloud account from iPhone, but they are still there, and still no Delete button. In the Browser I don't see those lists, so cannot delete them from the Browser as well. Could you help me?

    Read on another thread here that you now swipe in the opposite direction. Try swiping right to left.

  • When making a call, sometimes, my iPhone 5 , gets stuck on 'Calling' than I have to press END..but still nothing happens, than when I press HOME button, the call app keeps running in the background and it keeps saying CALLING... please help

    When making a call, sometimes, my iPhone 5 , gets stuck on 'Calling' than I have to press END..but still nothing happens, than when I press HOME button, the call app keeps running in the background and it keeps saying CALLING... than I have to wait 2 - 3 minutes and call again.
    please help

    Has nothing to do with the SIM or master reset.  This has been done to my phone.  The SIM once and the factory reset many times over.  You all just sold us a bad piece of equipment and have us by the tail with our contracts so none of us can get a new phone without paying full price or re-upping our contract.  I just got off the phone last night with your high up tech people (you know, the hidden number we get once we tear into your support people enough), they went into my phone again and still didn't find anything wrong.  I about got fired from my job for not getting my calls and texts.  The BBB has now been contacted, and I feel your end should shore this up for all of us!

  • I dont want to commit master-detail form untill user press save button

    We have department-employee kind of master detail form.
    1) We click on any record on department block.
    2) Then we change / insert /delete record in employee block.
    3) then we move to anothe department.
    4) now it ask for saving the changes. THIS WE DO NOT WANT.
    5) WE WANT TO SAVE CHANGES WHEN USER CLICK ON SAVE BUTTON.
    6) If user make changes to various employees of various department,
    we want user to cancel changes when ever user wants.
    IN SHORT WHAT WE WANT IS
    No record should be saved untill user press save button below.
    and If user press cancel all changes made must be undo.
    PLEASE DO NOT SUGGEST DO_COMMIT in clear block details,
    We know that and we dont want that option.
    Regards
    Upendra

    Hi URTRIVEDI
    but it gives "could not reserve record (x tries), keep trying?" error.The problem is not within the code given by Francois but in sessions u opened.
    pls make sure u r not running more than one instance of ur form with in one session.
    e.g. FireFox is opening more than one tab at a time every modification u made > compile > Generate , Save & Run only one Form instance
    Hope this helps...
    Regards,
    Amatu Allah

  • Since I have changed from Windows 7 to Windows 8.1, I have not been able to start up Photoshop Elements 9! or Premiere Elements 9! The menu starts up allright, but the programs don't start when I press any buttons. How do I fix this problem?

    Since I have changed from Windows 7 to Windows 8.1, I have not been able to start up Photoshop Elements 9! or Premiere Elements 9! The menu starts up alright, but the programs don't start when I press any buttons. How do I fix this problem?

    If Layers is greyed out it possibly means that you are in Quick Mode. Select 'Expert' and all the options should become available.
    Try permanently associating psd files with C:\Program Files (x86)\Adobe\Photoshop Elements 12\PhotoshopElementsEditor.exe and see if that fixes the issue. Instructions here - http://windows.microsoft.com/en-gb/windows-8/choose-programs-windows-uses-default.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • I want to create a vb form in which when i pressed a button then a specific song must be played.

    i want to create a vb form in which when i pressed a button then a
    specific song must be played. will u plx help me to do this..what i mean is that when i pressed that button a audio msut be played. will anyone help

    i want to create a vb form in which when i pressed a button then a specific
    song must be played. will u plx help me to do this..what i mean is that when i pressed that button a audio msut be played. will anyone help
    My.Computer.Audio.Play("C:\Users\John\Desktop\Something.Wav",
    AudioPlayMode.Background) or My.Computer.Audio.Play(My.Resources.SomeWavFileinyourresources,
    AudioPlayMode.Background) will play .Wav files only. And it will play them directly from resources without having to write them to disk to play them first.
    The
    Windows Media Player Control (can be created dynamically and not displayed) or the
    Media Player Class or a third party control that you can download called
    VLC Media Player can all play audio files based on the Codecs they use or have installed. Which would be .Wav, .MP3 and some others as well as you can download third party Codecs that can be provided to your system possibly for the Media Player class to
    use but as plugins I believe for Windows Media Player and VLC Media Player I believe for playing other types of audio and video file formats that they do not directly support with their installed codecs. Although all of these require that a file is available
    from disk or thumbdrive or CD Rom to play and can not directly play resources therefore resources must be written to disk in order to work.
    Microsoft Visual Basic language forum search results for "WindowsMediaPlayer"
    Microsoft Visual Basic language forum search results for "MediaPlayer"
    La vida loca

  • Dear all, Since a week ago I observe that when I press the button for my macbook air to start a nap, first the screen turns to black but I can see the arrow (pointer). And only after few seconds the arrow and the screen really shut down.

    Dear all, Since a week ago I observe that when I press the button for my macbook air to start a nap, first the screen turns to black (although I can see it is stil on) and I can see the arrow (pointer). Only after 15 seconds the arrow and the screen really shut down. It did not occur before, as a matter of fact it was instantaneous. What could be the problem?

    Note the time in your Mac's menu bar or some other accurate timepiece. Then, press the button to put the MBA to sleep. Wait until the cursor disappears and for all indications that the Mac appears to be asleep.
    Then, wake the Mac the way you normally wake it.
    Then, find the Console app - it is in your Utilities folder and looks like this
    You can find it by selecting Utilities from the Finder's Go menu.
    Open Console.
    If the log list column on the left is not already displayed, show the log list by selecting Show Log List from Console's View menu.
    Locate system.log in the list and select it. Many date and time-stamped entries will appear, hundreds of them, and you must find the entries relevant to your Mac's sleep problem. To do that type the words sleep cause in the Filter field at the upper left of the Console window:
    That will cause all log entries to be hidden, except for the entries containing those words. The last entry in the list will correspond to the last time you woke the Mac. It will have a time stamp in the form hh:mm:ss later than the time you noted in the Mac's menu bar prior to putting it to sleep.
    Make note of that exact time in hours, minutes, and seconds.
    Next: Clear the filter field by clicking the x in the above screenshot. It should then look like this:
    All previously displayed log entries will reappear.
    Next: Find the log entry that corresponds exactly to the time you noted in hours, minutes, and seconds containing the words "previous sleep cause". You may have to scroll up or down a considerable distance. When you find that line, select it and drag your cursor up and prior to the entry corresponding to the approximate time you noted before putting the Mac to sleep. This will result in a selection of perhaps 50 to 100 lines or so.
    One or more of them, along with their time stamps, may reveal the reason for the fifteen second delay.
    Copy and paste those log entries in a reply.
    Most of the entries will be cryptic but will contain information you might consider personal such as your Mac's name. If you do not want that information to appear, delete or obscure it when posting your reply. Leave enough information so that the entries can be deciphered.

Maybe you are looking for

  • Need help on how to make my website scroll!

    I'm really stuck on how to create a scroll effect in Flash CS4 for a simple websie. I need the screen to movw up and down to view all the content. What is the best way to proceed and where can I get the script, all help will be much appreciated. Than

  • In IOS5, Photo Albums are no longer sorted by Album name?

    Ouch!   I have been using photos on my iPhone (now the 4s) for years, and always synched with my PC where I use Photoshop Elements.   I carefully organize  my photos, put them in albums, and then sync to my iPhone.   My album names are titles like "V

  • I lost the Details window on LR5.  How do I get it back?

    It was in the bottom right ... now it's gone.  I can't find a setting option.  Need to get back the Sharpening function.

  • How to invoke a method in application module or view objects interface?

    Hi, perhaps a stupid RTFM question, but How can i invoke a method that i have published in the application modules or view objects interfaces using uiXml with BC4J? Only found something how to invoke a static method (<ctrl:method class="..." method="

  • Delivary

    Dear all,                is there any possibility to deliver an item with pick quantity less than or greater than order quantity?If yes pls, let me know. Thanks. Aditya.