Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Jyrki Moisala
dtek1066-toinen-ryhmis
Commits
a55c8ae4
Commit
a55c8ae4
authored
Jan 15, 2018
by
Jyrki Moisala
Browse files
nappulat resettiä varten
ei vielä sisällä toimintoa Update MapDialog.java
parent
cf75857c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fi/utu/dtek1066/MapDialog.java
View file @
a55c8ae4
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment