Skip to content
Snippets Groups Projects
Commit 582264b5 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

add done button

parent 7977f3f8
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,7 @@ public class JamApp
frame.add(view);
JToolBar toolbar = new JToolBar();
toolbar.setFloatable(false);
JButton moveBtn = new JButton("Move");
moveBtn.addActionListener(a -> {
......@@ -132,7 +133,15 @@ public class JamApp
});
toolbar.add(rangedAttackBtn);
toolbar.add(new JButton("Deploy Pigeon"));
JButton turnDone = new JButton("done");
turnDone.addActionListener(a -> {
model.done();
view.repaint();
});
toolbar.addSeparator();
toolbar.add(turnDone);
frame.add(toolbar, BorderLayout.SOUTH);
frame.pack();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment