/** * Adds a sequence of related buttons separated by a default gap. * * @param buttons an array of buttons to add */ public void addButtons(JButton[] buttons) { for (int i = 0; i < buttons.length; i++) { addGridded(buttons[i]); if (i < buttons.length - 1) addRelatedGap(); } }
/** * Adds a sequence of related buttons separated by a default gap. * * @param buttons * an array of buttons to add */ public void addButtons(JButton[] buttons) { for (int i = 0; i < buttons.length; i++) { addGridded(buttons[i]); if (i < buttons.length - 1) addRelatedGap(); } }
/** * Adds a sequence of related buttons separated by a default gap. * * @param buttons an array of buttons to add */ public void addButtons(JButton[] buttons) { for (int i = 0; i < buttons.length; i++) { addGridded(buttons[i]); if (i < buttons.length - 1) { addRelatedGap(); } } }