//Zooming with CTRL+/-
InputMap im = this.getInputMap(ZoomControl.WHEN_IN_FOCUSED_WINDOW);
ActionMap am = this.getActionMap();
int mask = getToolkit().getMenuShortcutKeyMask();
im.put(KeyStroke.getKeyStroke(KeyEvent.VK_EQUALS, mask), "CTRL+");
am.put("CTRL+", new CustomAction("CTRL+", this));
im.put(KeyStroke.getKeyStroke(KeyEvent.VK_ADD, mask), "CTRL+");
am.put("CTRL+", new CustomAction("CTRL+", this));
im.put(KeyStroke.getKeyStroke(KeyEvent.VK_MINUS, mask), "CTRL-");
am.put("CTRL-", new CustomAction("CTRL-", this));
im.put(KeyStroke.getKeyStroke(KeyEvent.VK_SUBTRACT, mask), "CTRL-");
am.put("CTRL-", new CustomAction("CTRL-", this));
this.add(spinner, BorderLayout.CENTER);
grid = new GridIcon();
this.add(grid, BorderLayout.EAST);