summaryrefslogtreecommitdiff
path: root/sources/utils/VSInfoArea.java
blob: c1afd42ec50ef3262d6313111c02239bf97f1d5a (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() {
        init();
    }

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

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