code: public static JComponent createCommandButtonColumn(JButton[] buttons) {
          ButtonStackBuilder builder = new ButtonStackBuilder();
  
          for (int i = 0; i < buttons.length; i++) {
              if (i > 0) {
                  builder.addRelatedGap();
              }
              builder.addGridded(buttons[i]);
          }
          return builder.getPanel();
      }
docs: Make a vertical row of buttons of equal size, whch are equally spaced,
  and aligned on the right.
  
  <P>
  The returned component has border spacing only on the left (of the size
  recommended by the Look and Feel Design Guidelines). All other spacing
  must be applied elsewhere ; usually, this will only mean that the
  dialog's top-level panel should use {@link #buildStandardBorder}.
  
  @param buttons
  contains <code>JButton</code> objects.
  @return A column displaying the buttons vertically.