String (int buttonNum) { return switch (buttonNum) { case MouseEvent.BUTTON1 -> "MouseLeft"; case MouseEvent.BUTTON2 -> "MouseMiddle"; case MouseEvent.BUTTON3 -> "MouseRight"; default -> "NoMouseButton"; }; }