Undo « Development « Java Swing Q&A





1. Undo    coderanch.com

Hi everyone, I am trying to add an undo listener to a jtable but could not get it to work. Does anyone know how to add a undo function to a jtable assuming the default cell editor component is a jtextfield? A small code sample would be helpful Any help is greatly appreciated Thank You Yours Sincerely Richard West

2. Why I cannot undo this??    coderanch.com

package aaaUndoRedo; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import java.util.Stack; import java.util.Vector; import javax.swing.*; import javax.swing.border.LineBorder; import javax.swing.event.*; import java.util.*; public class GroupJPanelMoveable extends JPanel { protected JPanel panel1, panel2, panel3, panel4, paneltmp; protected JLabel label1, label2, label3, label4; protected JLabel[] labels; protected JPanel[] panels; protected JPanel selectedLabel; protected JPanel selectedPanel; protected JButton btn2 = new JButton("Group"); protected JButton btn3 = ...

3. About Undo!    coderanch.com

Can you pls help me do undo... I already have a complete and working code of undo and undoAction but the problem is it is so confusing and I can't understand the importance of each code. Maybe you can give me the steps on how to do it and I will just compare it to the codes I have... Please help ...

4. Re: Undo in swing    java-forums.org

I am having some troubles implementing undo. it seems to be undoing and redoing single character deletes. but it is not undoing/redoing entire word deletes. I have implemented my own function of implementing Ctrl+Backspace which deletes the left word. However if you delete a word using Ctrl+Bkspc and then hit Ctrl+Z, first the whole text component gets blanked out and then ...