Skip to content

Commit 17b0e4a

Browse files
committed
added more icons
1 parent 76fabee commit 17b0e4a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/com/marginallyClever/nodeGraphSwing/Donatello.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,10 @@ private JMenu setupNodeMenu() {
304304
SelectAllAction selectAllAction = new SelectAllAction("Select all",this);
305305
InvertSelectionAction invertSelectionAction = new InvertSelectionAction("Invert selection",this);
306306

307+
editNodesAction.putValue(Action.SMALL_ICON, new UnicodeIcon("✏"));
307308
cutGraphAction.putValue(Action.SMALL_ICON, new UnicodeIcon("✂"));
308309
addNodeAction.putValue(Action.SMALL_ICON, new UnicodeIcon("➕"));
309-
deleteGraphAction.putValue(Action.SMALL_ICON, new UnicodeIcon("🚫"));
310+
deleteGraphAction.putValue(Action.SMALL_ICON, new UnicodeIcon("🗑"));
310311

311312
actions.add(undoAction);
312313
actions.add(redoAction);

src/main/java/com/marginallyClever/nodeGraphSwing/UndoHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public UndoHandler(UndoManager undoManager, UndoAction actionUndo, RedoAction ac
2121

2222
@Override
2323
public void undoableEditHappened(UndoableEditEvent e) {
24-
System.out.println(e.getEdit().getPresentationName());
24+
System.out.println("Undoable edit "+e.getEdit().getPresentationName());
2525
undoManager.addEdit(e.getEdit());
2626
actionUndo.update();
2727
actionRedo.update();

0 commit comments

Comments
 (0)