Solved

How to do control Z operaion

Posted on 2003-12-12
10
167 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…

707 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

16 Experts available now in Live!

Get 1:1 Help Now