summaryrefslogtreecommitdiff
path: root/sources/utils/VSInfoArea.java
blob: 9d3600e547420c54e9d5687a39cc054fa9349989 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package utils;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;

public class VSInfoArea extends JTextPane {
    public VSInfoArea() {
        initialize();
    }

    public VSInfoArea(String text) {
        setText(text);
        initialize();
    }

    private void initialize() {
        setOpaque(false);
        setBorder(null);
        setFocusable(false);
        setBorder(new CompoundBorder(
                      new LineBorder(Color.BLACK),
                      new EmptyBorder(15, 15, 15, 15)));
        setBackground(Color.WHITE);
    }
}