Example usage for javax.swing AbstractButton isBorderPainted

List of usage examples for javax.swing AbstractButton isBorderPainted

Introduction

In this page you can find the example usage for javax.swing AbstractButton isBorderPainted.

Prototype

public boolean isBorderPainted() 

Source Link

Document

Gets the borderPainted property.

Usage

From source file:Main.java

public static void main(String[] args) {
    AbstractButton jb = new JToggleButton("Press Me");
    jb.setSelected(true);/*from  w ww .java2 s . co  m*/
    System.out.println(jb.isBorderPainted());

    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    f.getContentPane().add(jb);
    f.pack();
    f.setVisible(true);
}