コード例 #1
0
  @Override
  public boolean mouseClick(Component component, Mouse.Button button, int x, int y, int count) {
    if (button == Mouse.Button.MIDDLE) {
      if (component instanceof TextInput) {
        ((TextInput) component).paste();
      } else if (component instanceof TextArea) {
        ((TextArea) component).paste();
        return true;
      }
    }

    return false;
  }