Commit a55c8ae4 authored by Jyrki Moisala's avatar Jyrki Moisala
Browse files

nappulat resettiä varten

ei vielä sisällä toimintoa

Update MapDialog.java
parent cf75857c
......@@ -121,10 +121,9 @@ public class MapDialog extends JFrame {
private JButton rightB = new JButton(">");
private JButton upB = new JButton("^");
private JButton downB = new JButton("v");
private JButton zoomInB = new JButton("+");
private JButton zoomOutB = new JButton("-");
private JButton resetB = new JButton("reset");
private Timer resizeTimer;
......@@ -157,6 +156,7 @@ public class MapDialog extends JFrame {
this.downB.addActionListener(bl);
this.zoomInB.addActionListener(bl);
this.zoomOutB.addActionListener(bl);
this.resetB.addActionListener(bl);
// Timer for delaying image updates when resizing the window
this.resizeTimer = new Timer(250, new ActionListener() {
......@@ -188,6 +188,7 @@ public class MapDialog extends JFrame {
this.leftPanel.add(this.downB);
this.leftPanel.add(this.zoomInB);
this.leftPanel.add(this.zoomOutB);
this.leftPanel.add(this.resetB);
this.add(this.leftPanel, BorderLayout.WEST);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment