Can't get to first base using undo and redo

Hi folks:
I'm trying to add undo and redo capabilities to a small application I'm writing with Swing, but I can't get to first base. When I try to establish an undo object like this:
final UndoManager undo = new UndoManager();
I get two "cannot resolve symbol" errors on the line.
Is there some library I'm not importing? What gives?
Thanks

Is there some library I'm not importing?Probably. Look in the API for UndoManager. It will tell you what package to import.

Similar Messages

  • I can't get to first base with editing a file?

    i just signed on to yesteerday and still can't get to first base editing a file

    Editing a PDF file? Keep in mind that PDF (the file format / technology) is decidedly *not* a word processing or page layout file format.
    Word processor like editing of layout, style, content, etc. is not something PDF supports.
    (See ISO 32000-1, the ISO Standard for PDF.)
    Minor touchups are tolerated and Acrobat XI is currently the best "tool" for this.
    Be well...

  • How can I use undo and redo with run time menu?

    Hi..I try to built my own menu for graphic programming. How can I use undo and redo in labview with run time menu?

    filozof-
    During runtime, by default, LabVIEW has undo/redo data changes under the edit menu. This will undo/redo changes made to controls during runtime. If you want a more extensive undo/redo (custom for your application), you are going to have to do quite a few things
    1) Create a custom runtime menu (Edit>>RunTime Menu) and place your own undo/redo controls on it
    2) Keep an action history in your program
    3) Catch the Shortcut menu event for your custom undo/redo controls
    4) Reverse the last action in your histroy when you catch the event
    This method would allow you undo entire operations (like resize, move, or whatever kind of functionality you are building into your application) unstead of just undoing data changes.
    Xaq

  • PIN on a 8700c? Can't get to first base with my new but ancient Blackberry​.

    I have a pay-as-you-go account from Telmex (in Mexico) which I use very infrequently. However, on the rare instances that I have to reply to a text message, I find using a numeric pad really tedious. I had read that Blackberries have a physically usable keyboard, even for people with larger hands, so I found on ebay a Cingular Electron 8700c for $30. My problem is that when I put in my Telmex SIM, it requested my password. I tried a few times, all failing. It is now up to an ominous attempt labelled 4/6. I bought the phone from a serious ebay vender with a rare 100% positive feedback, and he claimed it was unlocked from Cingular, and that is most likely true. When I first got my SIM from Telmex and put it in my Nokia 6126, which is also an unlocked Cingular phone, it did not request a password, and functioned from the get-go.  So I have the following questions:
    1) If I fail to get the right password on the sixth attempt, will the Blackberry explode and level my apartment?
    2) Is this password located on my Telmex SIM chip or on the wired telephone memory?
    3) Any recommendations how to solve this problem?
    For anyone kind enough to help, please remember that I am a total Blackberry **bleep** and reply accordingly.  I did however download the pdf manual for this model.
    Solved!
    Go to Solution.

    You should be able to disable the password on the device if you want. If it doesn't allow you to disable the password and/or there is a small lock on it not allowing you to disable it then you likely have a device that was connected to a corporate server and has a leftover IT policy on it.
    1. Please thank those who help you by clicking the "Like" button at the bottom of the post that helped you.
    2. If your issue has been solved, please resolve it by marking the post "Solution?" which solved it for you!

  • How can i get windows 7 to use plug and play features

    I am trying to load a game using windows 7 and no matter what I do I cannot get the game to install or load up!

    Try to right click on the game install and tell it to run as administrator.
    Reminder: Please select the "Accept as Solution" button on the post that best answers your question. Also, you may click on the white star in the "Kudos" button for any helpful post to give that person a quick thanks. These feedback tools help keep our community active, so you receive better answers faster.

  • How can i get difference in base plan and actual/current plan for a project

    Hi PS Experts,
    How can i get difference in base plan and actual plan .
    For example-
    Project1 is created for 10 days (start and end date difference).
    Now in between -project is extended/changed for 12 days .
    What is the way to get 2 days as a difference in base plan and current plan.
    Thanks
    Suraj prakash

    Hi Suraj,
    You can follow a convention that -
    (1) Forecast Start/Finish dates: Used only for Primary planning, once initial planning is done you should not change these dates.
    Now, you will copy the same dates in Basic Start/Finish dates also.
    (2) Basic Start/Finish dates: Whatever changes are done after the initial planning, you will make the changes only in Basic Start/Finish dates.
    So, in Project Planning board, if you enable Forecast and Basic dates with different color coding, you can clearly see the variation in the Project schedule.
    Hope this helps.

  • How can we get ADFSecurity work when used in OC4J, OID and OAM?

    I am getting error in http server log "mod_oc4j: Response status=499 and reason=Oracle SSO, but failed to get mod_osso global context."
    But I am not using Oracle SSO and my client doesn't want to use it either, I am using OAM SSO(CoreIDSSO) in my configuration. Please read the details below.
    I am using ADFSecurity in an app that is protected by OAM. To migrate ADFSecurity permissions from
    system-jazn-data.xml to OID, I used JAZNMigrationTool to populate OID with Grantees and Permissions. OAM gives login page, and authentication works fine.
    But ADFSecurity is not working. ADFComponent Delete button is enabled even for roles that dont have permissions for the iterator delete.
    - The app works fine when I use without OAM. ADF Security permissions work fine.
    - The app works fine when used with OAM, but with ADFSecurity disabled (enforce=false).
    - When I enforce ADFSecurity alongwith OAM, ADFSecurity is not working.
    In the doc "Oracle Containers for J2EE Security Guide b28957", there is a mention of use of CoreIDPrincipal for permissions. Our OID Permissions entries show
    LDAPRealmRole for attribute orcljaznprincipal. I am not sure if this could be the reason.
    We have configured AccessServerSDK for the SOA instance and have policy for the urls in the policy manager. We have entries in orion-application.xml, orion-web.xml and system-jazn-data.xml as per the documentations.
    How can we get ADFSecurity work when used with OID and OAM?

    Have you been able to successfully integrate OAS with OAM & OID? We have similar requriement and so far we have not been able to get it working.
    We have application specific roles which we map to OID roles using orion-application.xml.
    Any pointers to achieve this would be greatly appreciated.
    thanks,
    Dipal

  • Than how can i get java class by using it's class file?

    Hi
    After compilation of a java program, it creates a class file.
    After getting class file suppose class file has been deleted.
    Than how can i get java class by using it's class file?
    Thanks in advance.

    get a decompiler and run your class file through it--I'll assume you want the source code back and that you are not trying to recover a missing class file by attempting to use the class file that is missing--if it's missing, then I've not a clue on how to get it back by using what is already missing.
    BTW: many of your compilers have source control--if it does, just restore your missing file.

  • I have an old iPod Classic with 80 GB (I think) of space. I saved all my songs in an external hard drive, but the iTunes library resided in an old computer (no longer working). Can I get the libray from my iPod and use it in my new computer (Windows)?

    I have an old iPod Classic with 80 GB (I think) of space. I saved all my songs in an external hard drive, but the iTunes library resided in an old computer (no longer working). Can I get the library from my iPod and use it in my new computer (Windows)?

    You might want to check your process for moving your iTunes music against this: http://support.apple.com/kb/HT4527.

  • How can i get a file header using this method cl_gui_frontend_services= gui

    Hi Experts,
    How can i get a file header using this method cl_gui_frontend_services=>gui_download
    Thanks
    Basu

    Hi,
    You can use the FM - GUI_DOWNLOAD to specify the headers. It can be done in the following manner -
    TYPES: BEGIN OF ty_head, "Structure for header
                 h(10) TYPE c,
                 END OF ty_head.
    DATA: it_head  TYPE TABLE OF ty_head WITH HEADER LINE.
    "Adding header details
    it_head-h = 'Field1'.
    APPEND it_head.
    it_head-h = 'Field2'.
    APPEND it_head.
    it_head-h = 'Field3'.
    APPEND it_head.
    it_head-h = 'Field4'.
    APPEND it_head.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = p_file
       filetype                        = 'ASC'
       write_field_separator           = 'X'
       header                          = '00'  "<= note this
      TABLES
        data_tab                        = it_tab
       fieldnames                      = it_head[] "<= Pass your header table here
    EXCEPTIONS
       OTHERS                          = 1.
    Hope this helps.
    Regards,
    Himanshu

  • I can't get yahoo to open using firefox or safari.  I just installed updates...then the problems began.  gmail is working fine

    I can't get yahoomail to open using foxfire or safari.  I just installed updates then the problem began.  Gmail is working fine

    What happens when you try?

  • Is there an issue going on with the iPhones? And iPads? I cannot send text pics.  I can't get on Facebook, and I can't get on anything that uses Facebook ex Slotomania.  This has been going on for a few days!!!  It is happening with and without upgrades.

    Is there an issue going on with the iPhones? And iPads? I cannot send text pics.  I can't get on Facebook, and I can't get on anything that uses Facebook ex Slotomania.  This has been going on for a few days!!!  It is happening with and without upgrades.

    Contact facebook to address the facebook issues.

  • How can I get Firefox to NOT use DDE? If I uncheck it in Windows XP "Folder options" it keeps getting re-checked. When checked, it takes minutes to get Firefox to open on a page linked from Outlook.

    How can I get Firefox to NOT use DDE? If I uncheck it in Windows XP "Folder options" it keeps getting re-checked. When checked, it takes minutes to get Firefox to open on a page linked from Outlook.

    Open link/bookmark in new tab in same window:
    *Middle-click (press the mouse scroll wheel) the link
    *Ctrl+left click the link
    *right-click the link, choose "Open Link in New Tab"
    Open link/bookmark in new window:
    * Shift+Enter on the link
    * Shift+left click on the link
    See: http://www.7is7.com/software/firefox/shortcuts.html

  • I used my appleid on my husband's phone.  Our contacts merged and our phones both ring and he sees my texts. I deleted his contacts from my phone and they deleted from his phone also.  How can I get my appleid off his phone and restore his contacts?

    I used my appleid on my husband's phone.  Our contacts merged, both phones ring and he sees my texts.  I deleted his contacts from my phone and they deleted from his phone also. How can I get my appleid off his phone and retrieve his contacts?

    Teacher48 wrote:
    I used my appleid on my husband's phone.  Our contacts merged, both phones ring and he sees my texts.  I deleted his contacts from my phone and they deleted from his phone also. How can I get my appleid off his phone and retrieve his contacts?
    Bad mistake. You shouldn't have used your Apple ID on his phone. And you made it worse because now the contacts are gone, as you deleted them from your phone, they got deleted on iCloud. Your husband should have his Apple ID.
    There is really no way of recovering the deleted contacts unless you backed up using iTunes and even then you will only be able to recover those contacts that were on a call list. Read here:
    iTunes: About iOS backups

  • How can i get apps with out using credit card info because i do not have a card ?

    how can i get apps with out using credit card info because i do not have a card ?

    Yo Chris. I've been following your answers to different threads and quite frankly, you're very keen in answering everybody regarding this stupidity that Apple has brought upon its customers. Kudos to you. But the problem is, most of the time, in some devices, your solution doesn't work because the NONE option is not there. The same goes for me.
    Meanwhile, I found a temporary workaround for the iPhone 4s, iPad 2 and iPod Touch 4th Gen.
    Register a free Apple ID from the iCloud Settings.
    Go to Settings>iCloud>Account>Tap Payment Information on the Storage Plan Category.
    Fill in the other boxes and choose "None" on Credit Card Information.
    That's it! Hope I helped those who still couldn't find the "None" Option.
    Must be running IOS 5.0.1 though, else there would be no iCloud.

Maybe you are looking for