How display a message before thread termination

Hi,
i want to display a message before the thread completes its work or
before i destroy it..
please help me.........

bhuvanavijayam wrote:
I have a main class which extends JFrame, in the main class i created an object and started a thread.
If i close the GUI(JFrame), the thread is also being closed.
so, before that thread going to be terminated, i want to store some info...
how to do that.Please start a new thread in the future. It's OK to provide a link to an old thread that you found (like this one), but please don't resurrect dead threads.
In addition to what Peter suggested, who's forcing you to use the EXIT_ON_CLOSE constant for setDefaultCloseOperation()? If that wasn't explicitly by you or somebody else, closing the JFrame wouldn't be exiting the application in the first place, it would be hiding the Window.

Similar Messages

  • Can we display a message before selection screen

    hi experts,
                   I need to give a message to user's to give information abt the selection screen .
    like select values between 1000 to 2000 only.
    date must be todays date.
    so how i can display a message before the selection screen is displayed

    try like this it may be useful for you.
    load-of-program.
    CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
      EXPORTING
       TITEL              = 'Selection screen info'
        TEXTLINE1          = 'Material no should be between 1000 and 2000'
       TEXTLINE2          = 'Plant should be 1000'
    *   START_COLUMN       = 25
    *   START_ROW          = 6
    start-of-selection.
    if you want some more fields to pass then search popup* fn module in se37 which can be useful 4 you.
    regards
    shiba dutta

  • Display Warnning message before delete row

    i have a table and i added a column and but in it a button that perform delete action
    when i press the button a row is deleted but i want to display warning message before deleting for example
    "are you sure you want to delete this row ?" Yes or No
    If press yes the row will be deleted else no action is taken
    how can i do this ?

    You can use clientListener to do this.
    <af:commandImageLink text="Submit" id="cil1" partialSubmit="true" >
    <af:clientListener type="action" method="customConfirm"/>
    </af:commandImageLink>
    <af:resource type="javascript">
    customConfirm = function(event) {
    var answer = confirm('Are you sure you want to delete this row?');
    try
    if (!answer) {
    var component = AdfPage.PAGE.findComponentByAbsoluteId("cil1");
    ..... your action here.....
    catch(e) {
    alert(e)
    </af:resource>
    But if there is a event or event listener on the commandimagelink then it will always be called. To avoid that you could remove the actionlistener and add serverlistener and call it through the javascript function. See the "Web User Interface Developer's Guide for Oracle Application
    Development Framework" for more info.

  • How to display warning message before deleting a record?

    Hi all
    I want to display a warning popup message( "Do you realy want to delete the record? Yes - No" ) before user delete a record. My page fragment contains simple <af:table> which display the employees data and operations buttons "commit - delete - rollback"
    I use Jdeveloper release 11.1.4
    Database : oracle 10g
    Thanks in advance

    Thank you so much for replaying
    I have another question related to creating popup
    I have page template and only one jspx page based on the template named"UIShell.jspx"
    I make a lot of page fragments , I have - untill now- about 15 page fragments.
    all these fragments are shown as dynamic regions within UIShell.jspx"
    My question is
    Should I create popup dialog window in each page fragment in order to display the messages?
    If the answer is "YES" this will not be a good approach - I think.
    Is there a way to create just one popup dialog and use it an any page fragments.
    Regards
    Edited by: ta**** on Apr 17, 2011 8:44 AM

  • Display Disclaimer message before opening SSRS report

    Hello,
    I have a requirement to display a disclaimer message before going to the content of a particular report.
    The workflow would be:
    go to report folder e.g. Reports/Pages/Folder.aspx?ItemPath=%2fMyFolder%2fReports&ViewMode=List
    Click on Report x
    Display Disclaimer
    Press 'ok' on disclaimer
    Continue to report
    This is SSRS 2012 native.
    I had contemplated injecting JavaScript into the report, but this appears virtually impossible to do i a simple manner.
    I am stumped as best to how to proceed.
    Regards,
    MrHH

    Hi MrHH,
    Per my understanding that you want to display an popup window(disclaimer message) before display the report.
    I have tested on my local environment and that we have two method to help you do this.
    Method one is simple and more easy to add this action to a special report":
    you can create an new report with the information of the disclaimer and add two textbox(Agree,Disagree) perform as the two button, then add "go to report" action for the two buttons, when click "Agree" link to the particular report,
    if click on "disagree" will just refresh on this discalimer report.
    Note: you need to deploy both the disclaimer report and the particular report to the report server, and when you click on the disclaimer report you will got the display result you want.
    Method two:
    This method is not that simple, i will give you some sample data to get the popup windows display before you can see the particular report, when you click  the particular report you will get the popup window display with two buttons "Agree"
    and "Disagree", when you click the "Agree" you will see the report content, when you click "Disagree" you will link back to the home page of the report manager.
    Detail information below for your reference:
     Add some code in the report.aspx file in the path similar to this:
    C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportManager\Pages\Report.aspx
    Code:
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/jquery-ui.js" type="text/javascript"></script>
    <link href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.9/themes/start/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    $(function() {
    $("#dialog").dialog({
    title: "jQuery Dialog Popup",
    height: "200",
    modal: true ,
    buttons: {
    "Agree": {
    text: "Agree",
    id: "my-button-id1",
    click: function() {
    $(this).dialog('close');
    document.getElementById("bg").style.display = "none";
    "Disagree": {
    text: "Disagree",
    id: "my-button-id2",
    click: function() {
    location.href = '/Reports'
    </script>
    <div id="bg" style="width:100%; height:100%;z-index:20000;background-color:silver" >
    <div id="dialog" style="display: none;z-index:20001">
    Please make sure you have read this information and understand clearly before enter the report.
    </div>
    </div>
    Note: this sample code now works for all the report in the report manager, you can improve the code by add url to make it just work on the particular report.
    2. Restart the Report Server instance in the Reporting Service Configuration manager and then open the report manager to have a test.
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • HT4899 how to delete messages before viewing them

    How do I delete a message in my icloud mail without first viewing it? My delete icon is grayed out unless I open the message first. Actually all my icons except the compose and the show action menu icon are grayed out until I open a message. I have 86 messages of nothing but spam from an address that is: Customer Service - be2
    And even though I have forwarded (over a month ago) some of these on to [email protected], I still can not get them to stop.

    Hi Sridhar,
    Generaly messages are stuck in the queue and get a status called "HOLD" if we are using a EOIO (Exactly Once In Order) message processing manner.
    For processing of these messages they use a unique queue and all the messages use this queue.
    If a message in this queue fails to  process then the rest of the messages those are sequentialy under this failed message get  a status HOLD.
    Steps:- You need to find out the message in that queue that is in the "system error"   status during a long time interval.
                If possible cancel the message (we need to cancel the message) in "system error".
                after this the entire queue will be cleared and the messages those are in the HOLD status will be cleared also.
    you  need to find out the system error message using the "conversation ID" ( it refers the queue name for the EOIO processng) and the "sequential number" ( it is the sequence of messages in the queue )  in the Message Monitoring of RWB (Adapter Engine).
    Please refer to the blog- /people/stefan.grube/blog/2006/04/27/how-to-deal-with-stuck-eoio-messages-in-the-xi-30-adapter-framework
    and  Check SAP Note 885879 - EOIO message in HOLD without predecessor cannot be restarted
    Please let me know if it works or not.
    Regards
    Sugata Bagchi Majumder

  • Message before posting new thread

    How about displaying a message before posting new threads in abap devlopment forums which tells the members to use search button before posting new threads.
    I think this may improve the quality of forums to an extent.
    Plz give ur comment on this.

    I think most people who answer simple questions do so because they are genuinely trying to help and are perhaps not familiar with the type of user IDs who ask such questions.
    But they should heed the warnings (in most cases they realize this themselves before a warning is required). I also know a numer of people who stop visiting SDN when they realize this, and that is a big pity.
    Users who carry on and on and on without heeding the warnings are deleted as well. This has happened already and there are two more in the pipeline. But Guestification is a last resort and not a perfect one either. It is only really effective when points are the reason for the misuse.
    I am sure that without a points system in its current form we would have less noise, but we would only eliminate the childish points gamers.
    What I think we need to work on is further improving the reputation of the SDN forums for quality content.
    Eg. when someone posts something which is incorrect or questionable, then question it (politely as possible / appropriate).
    That way people who answer will realize that their accounts have a track record for questionable quality, and will think twice before posting some bla-bla-bla or not reading the question carefully => if the question is "What is reports and tables" then when thinking twice, they wont answer at all....
    Cheers,
    Julius
    PS: I will start drafting a sticky thread for FAQs and memorable discussions, and then we can make a team effort of contributing to it and the mods can update it as appropriate.
    Edited by: Julius Bussche on Sep 27, 2008 10:20 PM

  • How to display a confirmation message before deletion

    Hi,
    I have an application and I want to display a confirmation message before people delete a record.
    The button on page 42 is number 90     "Supprimer cette fiche". It is a Submit as "DELETE_ALL". I have seen that the delete buttons are redirections to the url javascript:confirmDelete(htmldb_delete_message,'DELETE');, but I cannot use this as my button is not a redirection, but a submit.
    http://apex.oracle.com/pls/otn/f?p=4550
    Workaspace : ESPACE2008
    User : guest
    password : acdc2009
    Name of application is Activites
    Thank you for your kind answers.
    Christian

    Hi Christian.
    You can use the same logic for your own processing logic.
    the syntax is...
    javascript:confirmDelete(htmldb_delete_message,'YOUR_PROCESS_NAME');Replace 'YOUR_PROCESS_NAME' with the name of your page process that handles the bulk delete. Don't for get the single-quotes either side of your process name.
    Hope this helps.
    Simon

  • When I open my computer I receive the following message: The procedure entry point sqlite3_wal_checkpoint couldnot be located in the dynamic link library SQLite3.dll How can this be corrected?  I never got this message before and I have a iPhone and iPad

    When opening Windows 7 I'm receiving the following message The procedure entry point sqlite3_wal_checkpoint could not be located in the dynamic link library SQLite3.dll.......I have never rec'd this before............I have a iPhone and iPad...............How can this be corrected without interferring with the information on my computer?    Thanks

    With Windows Explorer, navigate to your C:\Program Files\Common Files\Apple\Apple Application Support folder.
    Copy the SQLite3.dll that you should find there, navigate to the nearby Mobile Device Support folder, and Paste it in there also.
    Reboot and see if all is well
    In case that your OS is Windows 7 (64 bit)
    1. Open windows explorer, go to location C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    2. Copy file "SQLite3.dll"
    3. Open new windows explorer, to to location C:\Program Files (x86)\Common Files\Apple\Mobile Device Support
    4. Paste file "SQLite3.dll" to the location.
    5. Reboot your computer, it should not display that message, it should be clear.
    Good Luck

  • How can I clean a mailbox and remove all but the latest message in thread, and more...

    I am using Thunderbird version 24.6.0, for years I have been saving every email into a mailbox folder of a technical email alias I subscribe to.
    The folder now has over 12,000 emails and I am exceeding 700 MB. Is there an Addon or tool of any kind that allows me to automatically in one fell swoop delete all but the last message in a thread assuming all prior messages included all prior messages in thread, BUT here's the hitch, if someone responded out of order to a thread or did not include prior messages, their message should be saved since it will not appear in the prior string of messages.
    I can draw it out better than explain it, I want to save all responses to a thread, except those that are captured by the final message in a thread, or....
    | Re:- topic1 a. don't save because all included in "c"
    |- Re: topic1 b. don't save because all included in "c"
    |- Re:topic1 c. save
    | Re:- topic1 d. don't save because included in e.
    |- Re: topic1 e. save
    Thanks! ed

    I have no idea on how, but your file needs to exceed 4Gb before there will be any kind of issue (and the guys think they have removed that limit not anyway)
    Thunderbird will not move slowly or anything with lots of messages.

  • How to display weicome message in sap logon screen?

    Hello experts,
       how to  display message " welcome to company name" in the sap logon screen.
    while typing userid and password in the same screen (right hand side ) , i want to display welcome message.
    Pls give me the procedure.
    Moderator message: easy to find via google, system administration, not related to ABAP development, please search for available information/documentation before asking.
    locked by: Thomas Zloch on Oct 11, 2010 11:44 AM

    If you want to give an error message on some processing you can raise the message in the event at selection-screen.
    If you want to display information message also ,the same can be done in at selection screen
    In case you want to do the processing selectively like only when the execute button is pressed, then you can do the processing based on SY-UCOMM. (value will be 'ONLI' )

  • How to display Success Message on the Left side of Screen

    I am displaying a Process Success Message after the ApplyMRU process, *#MRU_COUNT# row(s) updated*. By default, this message is displayed at the center of the screen. I would like to display this message at the left hand side of the screen.
    I am using APEX 4.0; Theme Sand - 10. I have tried changing the alignment for the success message position in the Page Template – One Level Tabs, HTML Body section. But I am not having any luck.
    Does anyone know how to change/override the default position for the success message?
    Thanks

    Andy,
    I tried what you suggested and the success message is still being displayed in the center of the page.
    I went to Template --> Page --> One Level Tabs. In the Header, I put the following lines before the </head>
    <style type="text/css">
    .t10messages {text-align:left;}
    </style>
    </head>
    <body #ONLOAD#>
    #FORM_OPEN#
    I do not have any other custom CSS. Just strictly using Theme 10 - Sand
    Any ideas on what else could be the reason?
    Thanks,
    DP
    Sorry for the delayed response - out for holidays.

  • How do I make mail display my messages in html by default?

    Have switched to Mail in Snow Leopard from Outlook.
    Mail defaults to mostly non-html display of messages. Some do automatically display in HTML but most don't - I have to use the shift-control-square bracket shortcut or the Best Alternative option under the View pull-down menu to get the messages to display properly.
    Is there some way to get my messages to display correctly all the time instead of just sometimes? I have the "Display remote images in HTML" preference option checked.
    Thanks in advance for any help.

    I had the same problem after I ungraded to Mountain Lion.
    The last post on this thread solved my problem.
    Pull up "Terminal", paste the line below and hit enter
    defaults write com.apple.mail PreferPlainText -bool False

  • How can I delete short messages before reading them?

    we are receiving short messages that are charged at USD 1.5 when opened. How can i deleted this messages before opening them?

    Tap on "Edit" then you will get the option to select the circle to the left of the message for deletion. Tap "Delete x (number of) messages" displayed in red in the bottom left of the window. 

  • IPod hung on "password incorrect" for exchange account.  Will not accept Cancel - keeps re-displaying same message.  How can I get past this?

    Will not accept Cancel - keeps re-displaying same message.  How can I get past this? I've tried everything: power off; keep pressing Cancel; etc.  There is not enough time to select another app  before the invalid password message re-appears.

    Try a reset. Nothing is lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.

Maybe you are looking for

  • Sales order cannot be saved if mandatory conditions are missing.

    We have a senario here, Basically, It has been configured that sales order should not be saved without mandatory conditions like Price(ZPRC), Tax(VAT), Min and Max values and MRP(ZMRP). Also, tested on various servers. Everything was and is working f

  • Weblogic Threads Deadlock

    We are experiencing a problem with web services communicating within a weblogic managed server configured with 15 threads. When we have 2 web services in the managed server (named A and B), after flooding A with 20 or more simultaneous requests, we b

  • How do I get my videos imported 1080, and exported as 1080?

    I have no idea what I am doing wrong. I have a GoPro hero3 black edition. When I import I import into imovie, make my movie, and whenver I want to export to youtube, quicktime, as a movie, etc., it never gives me 1080 option. I upload it to youtube a

  • I appreciate Albums showing in order of release date

    i like that in the new version of iTunes (11.0.1), Albums show in order of release date (in Artist view).  This makes it convenient to listen to the progression of a musician or singer through time; i enjoy it Thank You Apple.

  • Installing error: "Microsoft. VC80.CRT. type="win32" "

    A few days ago I tried to open iTunes only to be told there was Mediatoolbox.dll missing, this confused me because I don't mess around with the technicalities of programmes on my laptop ,so, from previous experience with iTunes I figured simply un-in