List of usage examples for javax.swing JLabel JLabel
public JLabel()
JLabel
instance with no image and with an empty string for the title. From source file:Main.java
public static void addNewLineTo(Container container, int lineHeight) { JLabel label = new JLabel(); label.setPreferredSize(new Dimension(SCREEN_SIZE.width, lineHeight)); label.setBorder(new LineBorder(Color.BLACK)); container.add(label);//from w w w . j ava 2 s . c o m }