Solved

How to do control Z operaion

Posted on 2003-12-12
10
171 Views
Last Modified: 2006-11-17
I want to do control +Z key operation can anybody explains me how can i do that.
0
Comment
Question by:ashokvardhan_g
10 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 9928150
Have a look at UndoableAction
0
 

Author Comment

by:ashokvardhan_g
ID: 9928158
but i want to code that in key board option by pressing control+Z how do i do that
0
 
LVL 35

Accepted Solution

by:
girionis earned 25 total points
ID: 9928176
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 35

Expert Comment

by:girionis
ID: 9928195
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9928203
That link shows the way to do the key part of it. I meant UndoableEdit btw, not UndoableAction. Of course, using the key approach, you could create an Aciton subclass called UndoableAction
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 25 total points
ID: 9928259
The javax.swing.undo package is centred around this functionality, e.g. http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/undo/StateEditable.html, but i'm afraid i'm not familiar with it.
0
 
LVL 92

Expert Comment

by:objects
ID: 9930953
Can you explain what you actually want Ctrl-Z to do?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This video teaches viewers about errors in exception handling.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now