swing undo

Discussion in 'Java' started by =?ISO-8859-1?Q?Andreas_R=F8sdal?=, Jun 17, 2005.

  1. Hi,

    What's the best way to implement undo/redo in a swing application?
    (Undo of changes to some/all swing components in a frame?)

    Thanks
     
    =?ISO-8859-1?Q?Andreas_R=F8sdal?=, Jun 17, 2005
    #1
    1. Advertising

  2. Andreas Røsdal wrote:
    > What's the best way to implement undo/redo in a swing application?
    > (Undo of changes to some/all swing components in a frame?)


    There is never a "best way" for any kind of tasks if the requirements
    are unclear. And even if they are clear, there might be no best way at all.

    Maybe Swing's own undo manager will work for you, maybe it doesn't.
    Maybe an own implementation of the command pattern will work, maybe it
    doesn't. You (not we) have to evaluate the options and make a decision
    what works best for you.

    /Thomas


    --
    The comp.lang.java.gui FAQ:
    ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
     
    Thomas Weidenfeller, Jun 17, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Big Daddy

    Java 1.2 Swing vs. Java 1.5 Swing

    Big Daddy, Apr 15, 2005, in forum: Java
    Replies:
    2
    Views:
    523
    Pete Barrett
    Apr 16, 2005
  2. mkrause
    Replies:
    0
    Views:
    700
    mkrause
    May 6, 2005
  3. lizard
    Replies:
    0
    Views:
    1,801
    lizard
    Jan 30, 2006
  4. S.T
    Replies:
    2
    Views:
    607
  5. Knute Johnson

    Swing is dead! Long live Swing.

    Knute Johnson, Feb 16, 2012, in forum: Java
    Replies:
    32
    Views:
    3,881
    Daniel Pitts
    Feb 29, 2012
Loading...

Share This Page