protected JComponent createTopComponent()

in idea-plugin/src/main/java/com/jetbrains/ide/streamdeck/keymap/KeymapSelector.java [111:130]


  protected JComponent createTopComponent() {
    ActionLink link = new ActionLink(
      KeyMapBundle.message("link.get.more.keymaps.in.0.plugins", ShowSettingsUtil.getSettingsMenuName()),
      e -> {
        Settings settings = Settings.KEY.getData(DataManager.getInstance().getDataContext((ActionLink)e.getSource()));
        if (settings != null) {
          settings.select(settings.find("preferences.pluginManager"), "/tag:Keymap");
        }
      });
    Box row = new Box(BoxLayout.X_AXIS);
    row.add(Box.createRigidArea(new JBDimension(2, 0)));
    row.add(link);
    row.add(Box.createHorizontalGlue());

    Box box = new Box(BoxLayout.Y_AXIS);
    box.add(Box.createRigidArea(new JBDimension(0, 5)));
    box.add(row);
    box.add(Box.createRigidArea(new JBDimension(0, 12)));
    return box;
  }