Undo/Redo Actions for Your Music on Desktop

Right now you can only use the undo/redo actions for playlists.
Add the ability to undo/redo actions you make to "Your Music" in the desktop app.
Menu bar:
Edit --> Undo
Edit --> Redo
Maybe you accidentally removed a song from Your Music and you want to undo it.

oh cool, this is over six months old and it still hasn't been addressed.

Similar Messages

  • Undo/Redo JTextPane for some events

    Hi,
    I have quite a concern. Right now I'm building an sort of an IDE for my university class. I have the coloring of the words and everything is going fine. However I want to add Undo/Redo operations for the JTextPane. Even though you can create the UndoManager to manage the undo and redo. It catches the coloring of the words that happens every 1 second.
    My question is how do I tell the undomanager that I only want to accept text as event for undo and redo and that it doesn't capture coloring as an undoable event.
    regards,
    Victor Pereira

    http://java-sl.com/tip_merge_undo_edits.html
    You can merge multiple undoable edits in one and join your text coloring events to real edits. See the link how to merge them.
    Regards,
    Stas

  • Problem with undo/redo actions in a StyledDocument

    Hello,
    In my app i have a text area where each user can keep some notes.The document is serialized and saved in the database for later access as StyledDocument, in order to be saved with the formating the user has chosen(for example with certain fonts,text color and size).
    What i want to do now is to give to the user the ability to undo/redo his actions. I have these methods implemented and everything worked fine when i was saving and loading simple text in my JTextPane (previously i was saving in the database what user typed as a simple string which meant that the formatting was lost). Now, after loading styled document (using the textPane.setStyledDocument(doc) code line) these actions do not work.
    Are there any suggestions on how i can make this work? Is it possible?
    I hope i made my problem clear enough
    Thanks in advance

    Seem like I found the answer to my issue: http://helpx.adobe.com/dreamweaver/using/whats-new-2014.html#Undo/Redo enhancements
    Undo/Redo enhancements
    All undo/redo actions are recorded at the HTML file-level. This means, any manual changes to a CSS file can be undone from ANY related file.
    Someone called it Undo/Redo enhancements!? Damn this is the most stupid thing one can imagine about undo/redo! How the heck editing one source file affects the other!? Do whatever you want in Designer mode, but I'm editing SOURCE CODE and need to be able to undo/redo my actions on a file level.
    With this change TextEdit or Notepad becomes a more suitable tool for editing HTML/CSS than Dreamweaver.

  • Undo/Redo actions don't call AbstractDocument.insertString or remove?

    Hi,
    I just started working with the UNDO support in the JTextComponents. Primarily, the JTextPane. I am working on a small syntax highlighter component that uses my own extension of DefaultStyledDocument and use the "insertString(int offset, String str, AttributeSet attr, boolean replace)" method and it uses the setCharacterAttributes() method to highlight my keywords. (Pretty standard, like everyone else)
    When i run my app, i can paste code into the JTextPane and see the code highlight in the call to insertString(). When I do an UNDO action through my JMenu, I see the text dissappear from the component. But I don't see the remove() method called.
    Also, when I do a REDO action on the UndoManager. The insertString() method is never called. I have a DocumentListener attached to my JTextPane and I see that fire the insertUpdate method fire...and my text that was highlighted through the insertString method on the document..is loses it's highlighting.
    My question is, is that the correct behaviour? Am I correct in assume that the insertString()/removeString() methods should be called when a REDO/UNDO action is called on the undomanager? I looked at the source code for AbstractDocument and the UndoManager and it looks like the UndoManager simply calls the redo() and undo() methods on the classes that support undo capabilities.
    And, what is happening to my CharacterAttributes on the redo? it's like they are lost.
    Am I misunderstanding how this works? Do I need to call insertString() from inside my insertUpdate document listener?
    I've tried this on both 1.4.2_09 and 1.5.0_06
    Thanks,
    - Tim

    Ok, I'm having a mental lapse..
    I'm trying to override the fireInsert/fireRemove methods and am running into arrayindex out of bounds issues..I'm sure I'm doing something dumb..
    I've tried both calling super.xxx before and after my highlighting..
         * (non-Javadoc)
         * @see javax.swing.text.AbstractDocument#fireInsertUpdate(javax.swing.event.DocumentEvent)
        protected void fireInsertUpdate(DocumentEvent e) {
            super.fireInsertUpdate(e);
            try {
                int offset = e.getOffset();
                int length = e.getLength();
                String text = e.getDocument().getText(offset, length);
                processChangedLines(offset, text.length());
            } catch (BadLocationException ex) {
                ex.printStackTrace();
         * (non-Javadoc)
         * @see javax.swing.text.AbstractDocument#fireRemoveUpdate(javax.swing.event.DocumentEvent)
        protected void fireRemoveUpdate(DocumentEvent e) {
    //      TODO Auto-generated method stub
            super.fireRemoveUpdate(e);
            try {
                int offset = e.getOffset();
                int length = e.getLength();
                processChangedLines(offset, length);
            } catch (BadLocationException ex) {
                ex.printStackTrace();
        }Exception when trying to do an undo of text that I paste into the editor:
    java.lang.ArrayIndexOutOfBoundsException: -1
         at javax.swing.text.AbstractDocument$BranchElement.getEndOffset(AbstractDocument.java:2333)
         at javax.swing.text.View.getEndOffset(View.java:832)
         at javax.swing.text.FlowView$FlowStrategy.layout(FlowView.java:391)
         at javax.swing.text.FlowView.layout(FlowView.java:182)
         at javax.swing.text.BoxView.setSize(BoxView.java:379)
         at javax.swing.text.BoxView.updateChildSizes(BoxView.java:348)
         at javax.swing.text.BoxView.setSpanOnAxis(BoxView.java:316)
         at javax.swing.text.BoxView.layout(BoxView.java:683)
         at javax.swing.text.BoxView.setSize(BoxView.java:379)
         at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(BasicTextUI.java:1599)
         at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(BasicTextUI.java:801)
         at javax.swing.JComponent.getPreferredSize(JComponent.java:1275)
         at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:1212)
         at javax.swing.ScrollPaneLayout.layoutContainer(ScrollPaneLayout.java:769)
         at java.awt.Container.layout(Container.java:1020)
         at java.awt.Container.doLayout(Container.java:1010)
         at java.awt.Container.validateTree(Container.java:1092)
         at java.awt.Container.validate(Container.java:1067)
         at javax.swing.RepaintManager.validateInvalidComponents(RepaintManager.java:353)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:116)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:189)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • Can you open itunes in 2 windows?  One for your music and 1 for Itunes store

    I want to open iTunes in 2 windows.  One showing my current music and one showing the iTunes store.  Sometimes I will accidentally download a song that I already have.

    The option to open in a new window seems to have disappeared in the latest iTunes.
    You could leave feedback for Apple about it via the help menu.

  • How to use an external hard drive for your music storage

    How do I use my external hard drive as my storage for music? I have already saved my music on my external and I have my iTunes program on the computer just wondering what is the next step is? Also I want to make sure I do not use my computer's hard drive for any sizable storage.

    sorry to butt in, but this appears to be the best thread to pose my question/problem.
    i have successfully migrated my iTunes Library to my external hard drive. the last part of the instructions tell me to delete the iTunes music folder from my hard drive to free up space.
    however, i've not done this because i would like to keep a reduced number of music files on my MacBook so that i can listen to music when i'm away from my external hard drive.
    i've managed to delete the files i don't want stored on my hard drive, and when i open iTunes without the external hard drive, it defaults to the original location. i'm sure this is not good practise, because whilst i can now play music, the information in iTunes is not right.
    what is the best way of storing and playing some of my iTunes library on my hard drive, whilst using the external drive as a 'master'? can it be done?
    MacBook   Mac OS X (10.4.7)   2GB RAM, 120GB HD, 2GHZ

  • Undo / Redo Feature in Swing

    Hi all,
    Iam working on swing project which uses Undo/Redo feature for drag and drop figure and delete,cut,copy,paste and all the feature which ever want to use, and iam using multiple internal frames so the feature Undo/Redo should be specific to perticular internal frame.
    Is any buddy already done such a kind of thing then pls help me, or if it's possible then pls send the code also.
    Regards
    Laxmikant

    Hi,
    you would have to create an UndoableEditListener for each object, undo/redo shall be perfomed. The listener then is connected to an instance of UndoManager to do the actual handling:  /** Listener for edits on a document. */
      private UndoableEditListener undoHandler = new UndoHandler();
      /** UndoManager that we add edits to. */
      private UndoManager undo = new UndoManager();
      /** inner class for handling undoable edit events */
      public class UndoHandler implements UndoableEditListener {
         * Messaged when the Document has created an edit, the edit is
         * added to <code>undo</code>, an instance of UndoManager.
        public void undoableEditHappened(UndoableEditEvent e) {
          undo.addEdit(e.getEdit());
      } This now can be registered with let's say a Document like thiseditor.getDocument().addUndoableEditListener(undoHandler); (editor is an instance of JEditorPane containing the document).
    Once you have this, you only need actions to perform undo or redo by calling the respective method of your instance of UndoManager undo() and redo().
    Hope that helps
    Ulrich

  • New to undo/redo on component

    hello all,
    i'm new to swing programming & i have to develop a web enabled application. in that i'm having an internalframe which contains a panel with some labels in it. i'm able to move the labels around the panel by using mouse listener. but my problem is i have to implement undo/redo functionality on this movement. but i don't know how to proceed since i don't have a single idea abt this api. i got some materials related to undo/redo of textual components. but nothing related to this labels or components like that. can someone help me on this topic or guide me to some links which has details. if u can provide me some code samples i'll be really greateful.
    Thanks in advance

    The Java Tutorial provides a section on how to implement the java.swing.undo package.
    http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#undo
    The TextComponentDemo example code it references uses a text Document to generate the UndoableEditListener events, but any component document or data model can be coded to do the same thing, such as the data model for your label placement panel. The listeners are usually added by a controlling parent class, such as a JFrame.
    * Create an addUndoableEditListener(UndoableEditListener listener) method in your model class.
    * Whenever an undoable edit is done in your model class, create an UndoableEditEvent object with the undoable edit data and call the undoableEditHappened(UndoableEditEvent e) method for all of your registered listeners.
    * Create an UndoManager object in your controlling parent class.
    * Create UndoAction and RedoAction subclassed objects in your controlling parent class.
    * Create an UndoableEditListener object in your controlling parent class and add it to your model class.
    The listeners will handle adding the UndoableEditEvent object to the UndoManager and updating any menu or toolbar Undo/Redo actions. The Undo/Redo actions will handle performing the commands via the UndoManager and updating the state of the Undo/Redo actions.
    I hope you find this of some help.

  • How To Provide More Informative Undo Presentation Names for Document Edits

    Hello,
    Hopefully, I can state this clearly enough where people will know what I'm talking about.
    I'm working on an app that makes use of JTextArea to provide display and editing capabilities for text files. I've registered an UndoableEditListener with the Document underlying the JTextArea, so that I can provide undo/redo capability for all the various edits.
    Here's my problem, the edits sent to my listener are of the type AbstractDocument.DefaultDocumentEvent, and so they provide very little information about exactly what sort of event has taken place. IIRC, everything (cut, paste, typing, etc.) shows up as an insert or a removal. I'd like to be able to provide a better presentation name (e.g, "Undo Cut", "Undo Paste", etc.) for my undoable events than is provided by the AbstractDocument.DefaultDocumentEvent , but I'm not sure how exactly to go about this. Do I create my own edits that operate directly on the Document, and avoid the AbstractDocument.DefaultDocumentEvent altogether, or is there some easier way? Anyone have any experience trying to do this? Thanks.
    - sixtyten

    That's exactly the problem: the information we need isn't available, and there's no way to reconstruct it, so let's have the client tell us what we need to know. What I'm proposing is an UndoManager that requires its client to notify it when an action is about to be performed, and again when the action is finished. Upon receiving the first notification, it creates a CompoundEdit with the presentation name that was provided in the notification. After that, any edits that come in via the undoableEditHappened() method get added to the CompoundEdit instead of directly to the undo stack. When it receives the second notification, the UndoManager ends the CompoundEdit and adds it to the undo stack. Here's a very simplistic example: public class SuperUndoManager extends UndoManager
      // basically just a CompoundEdit with a 'name' attribute.
      private NamedCompoundEdit currentEdit;
      public void beginCompoundEdit(String name)
        currentEdit = new NamedCompoundEdit(name);
      public void endCompoundEdit()
        currentEdit.end();
        addEdit(currentEdit);
      public void undoableEditHappened(UndoableEditEvent evt)
        currentEdit.addEdit(evt.getEdit());
    } The biggest problem is getting the clients (i.e., JTextComponents and the Actions defined in their EditorKits) to call these methods without having to do something drastic like replacing them all. I think it can be done (he said with a barely noticeable quaver in his voice).

  • What is the ideal size for you music artwork?

    I wonder what the ideal artwork is for your music?
    Because on the pictures below you can see that there is still som white on the upper and bottom place of the artwork and it is a 600 x 600 artwork.. And I Have an iPhone 4S so the artwork needs to be high resolution
    Thanks

    Trim off any unsightly borders in an image editor and resize to square of similar size to the original, or smaller if you want to save space. There is no point resizing a 200x200px image to 600x600px, but reducing a larger image sourced from the web would be a good move.
    tt2

  • OpenSuse Undo/Redo doesn't work when click on web links

    OpenSuse 12.2 Firefox 17 Undo/Redo doesn’t work when click on link . All web pages have some problem. Undo/Redo working for web page "Find" text box. All web pages

    Clear Cookies & Cache
    * https://support.mozilla.com/en-US/kb/Template:clearCookiesCache
    Clear the Network Cache
    * https://support.mozilla.com/en-US/kb/How%20to%20clear%20the%20cache#w_clear-the-cache
    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Check and tell if its working.

  • " write access for your iTunes Media folder"

    Hello,
    My iTunes all of a sudden started to gave me this error when I tried to update my iPhone Apps:
    *iTunes couldn't download your purchase*
    *You don't have write access for your iTunes Media folder or a folder within it. Change permissions (in the Finder) and then choose Store > Check Available Downloads.*
    This is most weird since I haven't done anything to the system nor the iPhone.
    I tried to repair permissions, tried CHMOD and then booting from the installation disk and reset password, thrash preferences and the message is always there. Even weirder is the fact that when I connect my iPhone, iTunes ask me about "authorization", if I say AUTHORIZE, it gives me another error saying that it cannot be authorize because of an error, but it does not say what error!
    If I deauthorize, I'll loose more than 200 Apps, but if I authorize, even with the correct password, it simply gives me that bloody error.
    I do not know what else to do, any ideas?
    And yeah... I tried going to the iTunes list, get info and authorize myself, despite being already authorized... by the way I do not have the "apply to the contents within...or something like that, you know what I'm talking about option". My system is 10.5.8. PPC, and I do not see the relevance but the iTunes list is hosted in an external HD.
    I'll be more than thankful for any help.

    wcarcass wrote:
    I do not know what else to do, any ideas?
    check if you have read & write permissions for your music folder. in finder, right-click on it and +get info+. unlock the little padlock (you may have to enter your admin password) and change the permission settings. next, click on the little gear-shaped icon and +apply to enclosed items+ like so
    you may also give everyone read & write access.
    the important part is to *apply to enclosed items* !
    And yeah... I tried going to the iTunes list, get info and authorize myself, despite being already authorized... by the way I do not have the "apply to the contents within...or something like that, you know what I'm talking about option". My system is 10.5.8. PPC, and I do not see the relevance but the iTunes list is hosted in an external HD.
    if above don't work, try the same procedure on the folder on the external containing your media files.
    JGG

  • Allow Drag-and-drop Sorting of Your Music

    With playlists, I love how you can drag and drop tracks to rearrange your playlist.
    However, I've noticed the only sortings you can have for Your Music (songs) are by the titles (track, artist, time, album, added). For Albums and Artists, the only sortings possible are alphabetical, recently added, or most played. I'd really love to rearrange songs myself so my favorites are always on top.
    Spotify should have let users drag and drop to rearrange songs in Your Music (songs) just like we can for regular playlists. This feature should also be extended to songs shown once you select an albums or artist under Your Music.

     The remove op the drag and drop an all other ways to simply move tracks up and down in  a playlist or between playlist  is theworst improvment EVER.You must be able to customize the play order in a playlist. The QUEUE idear is toaly reduclus an very confusing!! Uptil this spring it was easy to set the order tracks played within a play listnow its a total nightmare

  • Move OSD of Undo/Redo to bottom of workspace

    A lot of the time when I am trying to compare one particular edit that I've made, say, increase Vibrance +30, I switch back and forth using Undo/Redo to view the Before/After (using the '\' key to see 'Before' vs 'After' doesn't work if you've already made multiple edits, obviously).
    Now, I like how LR shows 'Undo Vibrance + 30' in big bold letters across the screen, BUT, could you please move it *away* from smack dab right in the center on top of my image?
    If you moved the On-Screen-Display of 'Undo/Redo' actions to near the bottom of the LR workspace, it wouldn't interfere with my viewing of what's happening to the image.
    Seems simple + logical enough.
    Thanks,
    Rishi

    I approach it differently :
    When (or if) I get an image to a point where I want to compare small changes I make a virtual copy and then adjust the VC, then using the '\' key to see 'Before' vs 'After' does work.
    Not a work around - a different way of working.
    Sid
    The LightroomExtra home page is right here.

  • [Desktop][Search] Search Bar for your own music, artist, radios...

    Hi Spotify, when i want to listen a song in my music i have to search it manually. If i not remember de name (of the song, or artist) very well, the search bar allow me it to find it faster.  Ur search bar now only allow me to search the song in the universe, but have another one just for my songs, its gonna be awesome. 

    Updated: 2015-06-30Hi and thanks for your contribution! A similar idea has also been suggested here:
    https://community.spotify.com/t5/Live-Ideas/Search-option-for-quot-Your-Music-quot/idi-p/737701
    Add your kudos and comments there please!

Maybe you are looking for

  • Basic problems with Buttons load

    Hay there I have just started programming AS 2.0 today, but have much experience from Java, C# and a lot of other programming languages. I just want to know if there is a "attachButton" equviance to _root.attachMovie(...)? If I need to use _root.atta

  • Itunes rainbow wheel won't stop!!!

    I recently installed photoshop cs6.  Ihave only used 350 GB on a 750gb drive.  When I open iTunes the rainbow wheel won't stop spinning.  Please help.

  • Is it possible to change the 'accessibility' messages of a button?

    I have buttons that control navigation in a subform.  These buttons are one instance - then addInstance as related subforms are added. I would like to be able to control the accessibility message (since we use it more as a hover/mouseover) based on t

  • Ghosting fresh image of OSX W/O Time Capsule

    I was wondering if there is a way to either Ghost an Image of OS-X using Symantec or better yet without Symantecs Ghost application such as using a USB External drive for a Bk-Up. I am new to Apple and I know this stuff in relation to a Windows machi

  • Looking for DPS Expert in NYC

    We are looking for a Freelance DPS expert to help create interactive Apps as well as train some of our staff. We are considerably new at this and can't figure out where to find such candidate. We are based in NYC and can't work remotely. Please conta