This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes undoProblem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "undoProblem" Watch "undoProblem" New topic
Author

undoProblem

eLL Pascual
Greenhorn

Joined: May 22, 2008
Posts: 21
I am also having a problem with undo and redo... Please help me again...
I have here my program codes...
This is an SSCCE...

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
I'm sorry, but you have to be kidding. There is nothing "short" about this code excerpt. Plus, how are we supposed to figure out what's going on if you neither describe what the code is supposed to be doing, nor what it is actually doing?


Ping & DNS - my free Android networking tools app
eLL Pascual
Greenhorn

Joined: May 22, 2008
Posts: 21
So it has to be really short?

Oh my God, I dont know how to make that short because I guess this is the shortest it can be. All the codes here are necessary to run the program and address my problem.

This program is a notepad...
The problem here is that I am trying to make the program capable of using undo but the problem is it cannot tell weather an action happened.
[ July 11, 2008: Message edited by: eLL Pascual ]
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10171
    
    8

Originally posted by eLL Pascual:
...The problem here is that I am trying to make the problem capable of using undo but the problem is it cannot tell weather an action happened.


Well you can always confirm this either by running your application in a debugger or having SOP statements in your actions.

These links might also be useful.
http://jroller.com/santhosh/entry/implementing_undo_redo_in_right

http://jroller.com/santhosh/entry/implementing_undo_redo_in_right1
[ July 01, 2008: Message edited by: Maneesh Godbole ]

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
jQuery in Action, 2nd edition
 
subject: undoProblem
 
Similar Threads
Menu+Tool
JMenuItem.setMargin
display contents of a text file in a new window
Exception Null
mousePressProblem