Java Swing O Reilly int size = edits.size(); (Christian web host)
Java Swing O Reilly int size = edits.size(); Vector v = new Vector(size); for (int i=size-1;i>=0;i–) { UndoableEdit u = (UndoableEdit)edits.elementAt(i); if (u.canUndo() && u.isSignificant()) v.addElement(u); } UndoableEdit[] array = new UndoableEdit[v.size()]; v.copyInto(array); return array; } // Return all currently significant redoable edits. The first edit will be the // next one to be redone. public synchronized UndoableEdit[] getRedoableEdits() { int size = edits.size(); Vector v = new Vector(size); for (int i=0; i