Java JButton Create makeButton(Action action)

Here you can find the source of makeButton(Action action)

Description

make Button

License

Open Source License

Declaration

public static JButton makeButton(Action action) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import javax.swing.Action;

import javax.swing.JButton;

public class Main {
    public static JButton makeButton(Action action) {
        JButton button = new JButton(action);
        return button;
    }//from  ww  w  .  j  a  va 2 s. co  m
}

Related

  1. createToolBarButton(Action action)
  2. createToolBarButton(String text, Icon icon)
  3. createToolBarToggleButton(ImageIcon ic, String toolTip, ActionListener al)
  4. createTransparentButton(Action action, boolean withText)
  5. getCreateButton()
  6. makeButton(String name, ActionListener l)
  7. makeButtonActLikeLabel(JButton button)
  8. makeButtonBar(int align, Component... comps)
  9. makeButtonFlat(AbstractButton button)