Java JButton Create createButton(Action action)

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

Description

create Button

License

Open Source License

Declaration

private static JButton createButton(Action action) 

Method Source Code

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

import javax.swing.Action;

import javax.swing.JButton;

import javax.swing.Icon;

public class Main {
    private static JButton createButton(String text, Icon icon) {
        return new JButton(text, icon);
    }/*w  w  w.j a  va2s . c om*/

    private static JButton createButton(Action action) {
        return new JButton(action);
    }
}

Related

  1. buildButton(AbstractButton button, String text, ActionListener handler)
  2. button(JPanel panel, String text, char mnemonic, Font font)
  3. button(String name)
  4. createAddRemoveButtonPanel(Action addAction, Icon addIcon, String addToolTip, Action removeAction, Icon removeIcon, String removeToolTip, int axis)
  5. createButton(Action action)
  6. createButton(Action action)
  7. createButton(char mnemonic, Action action, Icon icon)
  8. CreateButton(final String name, final String text, final ImageIcon icon, final JPanel panel)