/** * Adds the given component to the side of this {@code BottomBar}. * * @param toolToAdd the tool to add to this {@code BottomBar}. */ public void addComponentToCenter(JComponent toolToAdd) { fBottomBar.addComponentToCenter(toolToAdd); }
/** * Adds the given component to the center of this {@code BottomBar}. If this is not the first * component to be added to the center, then the given component will be preceeded by a space of * the given width. * * @param toolToAdd the tool to add to this {@code BottomBar}. * @param spacer_pixels the amount of space to pre-pend the added component with *if* the given * component is *not* the first component to be added to the center. */ public void addComponentToCenter(JComponent toolToAdd, int spacer_pixels) { fBottomBar.addComponentToCenter(toolToAdd, spacer_pixels); }