public BoardAbstract(int width, int height, JFrame frame) { currentState = updatingState; B_WIDTH = width; B_HEIGHT = height; mainFrame = frame; console = new Console(20, B_HEIGHT - 200, this); //slidingMessageQueue = new ConcurrentHashMap<>(); slidingMessageQueue = new ArrayList <>(); frame.addMouseWheelListener(this); frame.addKeyListener(this); /* editorPanel = new EditorPanel(this); * editorPanel.setSize(new Dimension(240, 300)); * editorPanel.setPreferredSize(new Dimension(240, 300));*/ }