Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.awt.Color;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.border.LineBorder;

public class Main {
    public static void main(String[] argv) {
        LineBorder lineBorder = (LineBorder) BorderFactory.createLineBorder(Color.black);
        JLabel component = new JLabel("label");
        component.setBorder(lineBorder);

    }
}