Example usage for javax.swing AbstractButton setBorderPainted

List of usage examples for javax.swing AbstractButton setBorderPainted

Introduction

In this page you can find the example usage for javax.swing AbstractButton 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:Main.java

public static void main(String[] args) {
    AbstractButton jb = new JButton("Press Me");
    jb.setBorderPainted(false);

    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(jb);/*from  ww w.  j a va 2s.c om*/
    f.pack();
    f.setVisible(true);
}