Java JButton setButtonNo(JButton anButton)

Here you can find the source of setButtonNo(JButton anButton)

Description

setButtonOk

License

LGPL

Parameter

Parameter Description
anButton JButton

Declaration

public static void setButtonNo(JButton anButton) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import javax.swing.*;

public class Main {
    private static final String BUTTON_NO = "no";

    /**// ww  w  . j  a va  2  s. c  o m
     * setButtonOk
     *
     * @param anButton JButton
     */
    public static void setButtonNo(JButton anButton) {
        anButton.setText(BUTTON_NO);
    }
}

Related

  1. registerCancelButton(final JButton cancelButton)
  2. removeAllActionListeners(JButton button)
  3. removeAllListeners(JButton bouton)
  4. removeMargins(JButton button)
  5. renderImageOnly(JButton button)
  6. setCancelButton(final JRootPane rp, final JButton b)
  7. setEmptyBorder(JButton button, int paddingTop, int paddingLeft, int paddingBottom, int paddingRight)
  8. setEnable(boolean b, JButton... bs)
  9. setImageIcon(JButton b, String fileName, String tip)