/** * Builds and returns a button bar with the given buttons. All button * columns will grow with the bar. * * @param buttons an array of buttons to add * @return a filled button bar with the given buttons */ public static JPanel buildGrowingBar(JButton[] buttons) { ButtonBarBuilder builder = new ButtonBarBuilder(); builder.addGriddedGrowingButtons(buttons); return builder.getPanel(); }
/** * Builds and returns a button bar with the given buttons. All button * columns will grow with the bar. * * @param buttons * an array of buttons to add * @return a filled button bar with the given buttons */ public static JPanel buildGrowingBar(JButton[] buttons) { ButtonBarBuilder builder = new ButtonBarBuilder(); builder.addGriddedGrowingButtons(buttons); return builder.getPanel(); }