Example usage for javax.swing BorderFactory createStrokeBorder

List of usage examples for javax.swing BorderFactory createStrokeBorder

Introduction

In this page you can find the example usage for javax.swing BorderFactory createStrokeBorder.

Prototype

public static Border createStrokeBorder(BasicStroke stroke) 

Source Link

Document

Creates a border of the specified stroke .

Usage

From source file:Main.java

public Main(String name) {
    getContentPane().setLayout(new FlowLayout());
    JLabel labelTwo = new JLabel("www.java2s.com");
    labelTwo.setBorder(BorderFactory.createStrokeBorder(new BasicStroke(0)));

    add(labelTwo);/*from  ww w. j ava2 s .c  o  m*/

}