List of usage examples for javax.swing BorderFactory createStrokeBorder
public static Border createStrokeBorder(BasicStroke stroke)
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*/ }