Java JButton Create makeButtonBar(int align, Component... comps)

Here you can find the source of makeButtonBar(int align, Component... comps)

Description

make Button Bar

License

MIT License

Declaration

public static JPanel makeButtonBar(int align, Component... comps) 

Method Source Code

//package com.java2s;
/**/*from   w w w .  j a  v a2  s . c  o m*/
 * Copyright (c) 2010 Simon Denier
 * Released under the MIT License (see LICENSE file)
 */

import java.awt.Component;
import java.awt.FlowLayout;

import javax.swing.JPanel;

public class Main {
    public static JPanel makeButtonBar(int align, Component... comps) {
        JPanel pan = new JPanel(new FlowLayout(align));
        for (Component component : comps) {
            pan.add(component);
        }
        return pan;
    }
}

Related

  1. createTransparentButton(Action action, boolean withText)
  2. getCreateButton()
  3. makeButton(Action action)
  4. makeButton(String name, ActionListener l)
  5. makeButtonActLikeLabel(JButton button)
  6. makeButtonFlat(AbstractButton button)
  7. makeButtonPanel(Vector names, ActionListener actionListener)
  8. makeIconButton(Icon icon, String tooltip)
  9. makeNavigationButton(String actionCommand, String toolTipText, String altText)