Is there a possible???

Is there a possible that add some code at "update" portion and make "cancel" run also??
public void actionPerformed(ActionEvent e){
        if (e.getActionCommand().equals("update"))
                temp.commit();
                     temp.close();
                     l_status.setText("Saved");
                     l_status.setForeground(Color.blue);
                     log=0;
       if (e.getActionCommand().equals("cancel"))
                if (log==1)
                     temp.close();
                     p1.removeAll();
                     p1.add(label1);
     p1.add(menuBar);
                     p1.repaint(); 
                     log=0;

public void actionPerformed(ActionEvent e)
  if (e.getActionCommand().equals("update"))
    temp.commit();
    temp.close();
    l_status.setText("Saved");
    l_status.setForeground(Color.blue);
    log=0;
    cancel();//<-----------
  if (e.getActionCommand().equals("cancel"))
    cancel();
public void cancel()
  if (log==1)
  temp.close();
  p1.removeAll();
  p1.add(label1);
  p1.add(menuBar);
  p1.repaint(); 
  log=0;
}

Similar Messages

  • Is there any possibility of connection between QM notifications and the WL in Collection Management?

    Dear ALL,
    Our duty is to find any possibility to show (and to manage, of course) on the Collection WorkList, not only open items already registered in FI-AR, but also any notification registered under the QM module, bearing in mind that it is not an open item, yet.
    Is there any possibility?
    Thanks in advance.

    in short the answer is no.
    You could look at customer disputed objects and using them, but you would need to re-key the data, there is no standard way of transfering data from QM to create  a dispute.

  • Is there any possible to display the text in big font in screen painter

    HI all!
    i want to display the text in the large size in the text field in the screen painter in the odule pool programing.Is there any possible.What i have to do in the screen painter to display the text in the large size.Also is there any possible to put the color for the text.Give me reply

    HI
    CALL METHOD o_dyndoc_id->initialize_document
          EXPORTING
            background_color = cl_dd_area=>col_tree_level1.
        DATA : dl_text(255) TYPE c.  "Text
        CALL METHOD o_dyndoc_id->add_text
          EXPORTING
            text         = 'Flight Details'
            sap_style    = cl_dd_area=>heading
            sap_fontsize = cl_dd_area=>large
            sap_color    = cl_dd_area=>list_heading_int.
    * Display document
        CALL METHOD o_dyndoc_id->display_document
          EXPORTING
            reuse_control      = 'X'
            parent             = cont
          EXCEPTIONS
            html_display_error = 1.
        IF sy-subrc NE 0.
        ENDIF.
    by using these methods you can achieve i hope..
    have a good day.
    regards
    sarves

  • Need to take monthly report for SQL statements...Is there any possiblity?

    Hi,
    We have a requirement to find out the list of expensive sql statements in our ECC 6.0 system.
    I am aware that we can see expensive sql statements which are being executed online in the TCode ST04 or DB02old.
    But I want the list of statements on a monthly wise.
    Is there any possibility to find out the list of expensive sql statements for the previous 3 to 4 months?If so, how do we do that?
    Any report or Tcode with navigations.
    Please help.
    Regards,
    Sudheer.

    Hi,
    > We have a requirement to find out the list of expensive sql statements in our ECC 6.0 system.
    nice.
    > I am aware that we can see expensive sql statements which are being executed online in the TCode ST04 or DB02old.
    expensive SQL in DB02, really?
    > But I want the list of statements on a monthly wise.
    > Is there any possibility to find out the list of expensive sql statements for the previous 3 to 4 months?
    > If so, how do we do that?
    Up to now there is no transaction available with such information. The databases partially offer solutions.
    These are switched on by default of have to be setup before they could be used. So it depends on the
    database and the database version which are you using.
    On ORACLE 10g for example we have the AWR (Automatic Workload Repository) which should be switched on by default (depends again on the license). On ORACLE 9i statspack is available but has to be activated first.
    On DB6 (latest database and SAP release) we have the so called performance warehouse.
    On other databases there might be solutions too.
    Besides that you can always built your own solution and grab the top 10 SQL statements from the SQL cache and
    persist them in regular intervals. I have seen such solutions as well.
    Kind regards,
    Hermann

  • Can´t sync movies with iTunes 11.1.4 (on Mavericks 10.9.1) to iPhone 4S with iOS7. Is there a possibility to reset the sync on iTunes?

    I produced some videos in iMovie 10.0.2 and transfered they to iTunes 11.1.4.
    That worked so far....
    After that I´ve compressed the movies for the use with iPhone and iPod
    .....also worked.....
    Then I tried to sync the movies to my iPhone4s with iOS7.0.4. The sync starts, runs and ends without an error. But after that I can´t find the movies on my phone. There is enough free memory on my phone and I also tried to shut the movie app and restart my phone. The movies are still not there.
    When I check what´s on my phone with iTunes (iPhone connected), iTunes says the movies are on my phone!?!?!?
    Maybe there are some troubles within a sync "library" or something like that? Is there a possibility to reset the sync services or whatever is responsible for the sync?
    Or maybe somebody has another solution which solves the problem!?
    The strange thing is that my music, books and all the other stuff will sync fine!
    Hope that someone can help me with this issue.
    thanks a lot

    I´ve fixed this issue as follows:
    1) did a backup of the iPhone in the cloud
    2) reset the iPhone in manufacturing mode
    3) restored the backup out of the cloud
    After that the sync with iTunes worked well also with movies.

  • Hi there, i want to buy a registered version of PS CS4 (and an Upgrade to CS6)from a private Person...is there any Possibility to check if the Adobe ID,Licence,User is a real person...or a fake before buying it? Thanks for helping!

    Hi,
    just got an offer from a private Person, who owns a boxed Version of Photoshop CS4 (DVD) and an Upgrade from CS4 to CS6....he told me that he can transfer the current license to me... now there's one important question for me...
    Is there any possibility to check his Adobe-ID (which he already told me) if it's the same adress, name,etc. as he told me...
    or if there is an registered Version of PS CS4 owned by this Adobe-ID?
    Just like to check if he's a real person or a fake...don't want to buy any stolen or illegal software...or beeing punked after paying the money...
    Thank you very much for helping me! :-)
    Chriss

    Old versions of Photoshop are not marketed by Adobe. Only CS5 can be upgraded to CS6.  There are many scams on the web if you find a cheap copy of Photoshop out there its most likely a scam... Be careful.....

  • Is there a possibility to open raw files from the Nikon D750 in photoshop elements 11?

    Is there a possibility to open raw files from the Nikon D750 in photoshop elements 11? I allready tried to install camera raw 8.7.1 but it doesn't work.

    Yes, I see:
    Letzte Aktualisierung
    16.04.2012
    The link I gave is listed in the faqs of this forum.
    Photoshop Elements FAQ List
    mfG
    Michel

  • My documents on my iCloud storage got automatically deleted, is there any possible way to recover them? They're nearly 1GB and very important to me.

    On January 26th, I downloaded iCloud for Windows and logged in using my account which was the same with the one on my Mac. 2 days later, at 3:27 PM January 28th, my 1 GB of documents on my iCloud storage got deleted automatically. I'm saying this because at that time I was sleeping and both my Mac and my Windows PC are turned off, and I'm home alone, besides there was no suspicious login reported to me by Apple.
    So is there any possible way to recover these documents? I'm a teacher and they're very important to me. My Time Machine wasn't enabled so using it is useless.
    Thank you so much for any help.

    Please please help me, if you know how.

  • What to do if your iphone is stolen and find my iphone is disabled in your phone. Is there a possible chance to lock my iphone? How? Thanks.

    What to do if your iphone is stolen and find my iphone is disabled in your phone. Is there a possible chance to lock my iphone? How? Thanks.
    Uhm Good day i have a problem because my iphone 5s is stolen Can you give me possible ways to lock my iphone? because find my iphone is disabled in my iphone, my friends keep telling me that i should icloud locked it how could i do that? Thanks
    By the way i have my serial number with me incase you can trace it and locate where my iphone is it could be a great help.
    Thanks

    https://www.apple.com/icloud/find-my-iphone.html
    iCloud: Locate your device
    iCloud: Find My iPhone overview
    If you don't have Find My iPhone  on, you can't lock it. You should report it to your carrier and your carrier might blacklist the phone from use.

  • Is there any possiblity to not to take the print out before release of PO

    Is there any possiblity to not to take the print out before release of PO.
    Please give some inputs to set up this in system.

    Hi,
    Thank you for your reply with kindness.I will appreciate your help.
    I found nothing like what you have mentioned .Please find the programme details in my system.Please help in this reagrd.
    FUNCTION EXIT_SAPLMEDRUCK_001.
    ""Lokale Schnittstelle:
    *"       IMPORTING
    *"             REFERENCE(IX_DRUVO) TYPE  DRUVO
    *"       EXPORTING
    *"             REFERENCE(EX_RETCO)
    *"       CHANGING
    *"             REFERENCE(CX_DOC) TYPE  MEEIN_PURCHASE_DOC_PRINT
    *"       EXCEPTIONS
    *"              NO_OUTPUT
    INCLUDE ZXM01U04 .
    ENDFUNCTION.
    Even-- nothing is avaialble in Include programme also.Please help in this regard.
    What is my further action to this.

  • HT201250 Is there a possibility to recover erased files from an external hard drive that was reformatted by the Time Machine?

    Is there a possibility to recover erased files from an external hard drive that was reformatted by the Time Machine?

    Basics of File Recovery
    Files in Trash
    If you simply put files in the Trash you can restore them by opening the Trash (left-click on the Trash icon) and drag the files from the Trash to your Desktop or other desired location.  OS X also provides a short-cut to undo the last item moved to the Trash -press COMMAND-Z.
    If you empty the Trash the files are gone. If a program does an immediate delete rather than moving files to the Trash, then the files are gone.  Recovery is possible but you must not allow any additional writes to the hard drive - shut it down. When files are deleted only the directory entries, not the files themselves, is modified. The space occupied by the files has been returned to the system as available for storage, but the files are still on the drive. Writing to the drive will then eventually overwrite the space once occupied by the deleted files in which case the files are lost permanently. Also if you save a file over an existing file of the same name, then the old file is overwritten and cannot be recovered.
    General File Recovery
    If you stop using the drive it's possible to recover deleted files that have not been overwritten by using recovery software such as Data Rescue II, File Salvage or TechTool Pro.  Each of the preceding come on bootable CDs to enable usage without risk of writing more data to the hard drive.  Two free alternatives are Disk Drill and TestDisk.  Look for them and demos at MacUpdate or CNET Downloads.
    The longer the hard drive remains in use and data are written to it, the greater the risk your deleted files will be overwritten.
    Also visit The XLab FAQs and read the FAQ on Data Recovery.

  • Hi, I´m from Brazil and next week I´ll be in Usa, NY , where I bought my Iphone 4. I want to know if i could go to apple store in Ny and upgrade for iphone 4s unlocked? I know i have to pay more, but IS THERE that possibility?

      Hi I´m from Brazil and next week I´ll be In NY , where i Bought my iphone 4. I want to know if I could go to apple store to exchange to iphone 4s W
      I know I have to pay more for that , but is there that possibility?

    You can buy an  iphone 4s.
    There is no trade in.

  • I have just updated to the new iOS 6, and all my contacts have disappeared? Is there a possible solution to get them back?

    I've just updated to the new iOS 6 and all my contacts have dissappeared, is there a possible solution to bring them back, I really need them back. Thanks in advance.

    You tried clicking on "phone" then "groups" and "Show All Contacts"

  • I need advice:  I love my apple TV.  But my laptop at home, only has a 750gig hard drive.  Is there a possibility of having all my media on an external hardrive to still connect to the Apple TV?

    I need advice:  I love my apple TV.  But my laptop at home, only has a 750gig hard drive.  Is there a possibility of having all my media on an external hardrive to still connect to the Apple TV?
    Is there like in a hard drive of which iTunes can read the media, which will not require me to add and delete media onto iTunes, because of a lack of space on my laptop?

    just get an ext HD, and point your itunes library to that drive so now you'll just keep all your media on this ext

  • I've installed bootcamp 4.0 on my iMac 27. Everything works superb, but for playing need for speed run or battlefield 3 I need catalyst driver 11.7 or higher. How can I update my graphics? Is there a possibility except waiting for a new bootcamp version?

    I've installed bootcamp 4.0 on my iMac 27. Everything works superb, but for playing need for speed run or battlefield 3 I need catalyst driver 11.7 or higher. How can I update my graphics? Is there a possibility except waiting for a new bootcamp version?

    But how do you install the drivers if Bootcamp is running interference?
    Bottom line, I'ev tried to install three different versions of updated ATI driver sover the last few momnths and on each and every occassion have ended up with the original Bootcamp driver. A number of current games are unplayable on a Mac running Bootcamp as a result.
    And if I can't run the software I want, then Bootcamp is as useless as boobs on a bull.

  • Hii Can anyone tell me is there any possibility of giving some due payment like bonus or offcycle after its termination is done along with the payroll run and posting.

    Hii Can anyone tell me is there any possibility of giving some due payment like bonus or offcycle once employee termination is done along with the payroll run and posting.
    Thanx

    One Possibility is by making manual entry for that employee from FI side..  (this will give you soln..) Take the help of FI consultant...
    Another possibility is in IT0003 "Payroll Status".. You can opt mention next month date "Run Payroll up to" & execute Off cycle payroll for that employee...
    Just try this hope this may sort your issue....
    If it still it doesn't give you soln.. You may need to reverse the posting of that employee & change employment status.. Run Bonus & finally terminate the employee & do the posting..

Maybe you are looking for