Here you can find the source of makeButton(Action action)
public static JButton makeButton(Action action)
//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 }