diff --git a/src/lsystem/screen/main/Listener.java b/src/lsystem/screen/main/Listener.java index 06e1975..275038d 100644 --- a/src/lsystem/screen/main/Listener.java +++ b/src/lsystem/screen/main/Listener.java @@ -7,13 +7,10 @@ import lsystem.utils.Pair; import javax.swing.*; import java.awt.*; -import java.awt.event.ActionEvent; -import java.awt.event.ActionListener; -import java.awt.event.KeyEvent; -import java.awt.event.KeyListener; +import java.awt.event.*; import java.util.List; -public class Listener implements ActionListener, KeyListener { +public class Listener implements ActionListener, KeyListener, MouseWheelListener { Tab tab; MainFrame frame; Integer index; @@ -36,7 +33,7 @@ public class Listener implements ActionListener, KeyListener { case "Close": frame.getTab().removeTabAt(index-1); frame.decreaseTab(); - for(int i = 0; i