Example usage for javax.swing JButton setBorderPainted

List of usage examples for javax.swing JButton setBorderPainted

Introduction

In this page you can find the example usage for javax.swing JButton setBorderPainted.

Prototype

@BeanProperty(visualUpdate = true, description = "Whether the border should be painted.")
public void setBorderPainted(boolean b) 

Source Link

Document

Sets the borderPainted property.

Usage

From source file:wsattacker.sso.openid.attacker.gui.MainGui.java

private void removeBackgroundFromButton(JButton button) {
    button.setHorizontalAlignment(SwingConstants.LEFT);
    button.setBorder(null);/*  w  w w.  ja v a  2s. c o  m*/
    button.setBorderPainted(false);
    button.setContentAreaFilled(false);
}