!7 module CurrentAction { transient JPanel stack; visualize { ret stack = dynamicVStack2(); } // API AutoCloseable showAction(S action, Runnable cancelMe) { final JComponent c = centerAndEast(jlabel(action), jbutton("Cancel", r cancelMe)); stack.add(c); ret autoCloseable { removeComponent(stack, c) }; } }