Example usage for javax.swing.border Border interface-usage

List of usage examples for javax.swing.border Border interface-usage

Introduction

In this page you can find the example usage for javax.swing.border Border interface-usage.

Usage

From source file SimpleBorder.java

class SimpleBorder implements Border {
    int top, left, bottom, right;
    Color color = null;

    public SimpleBorder() {
        this.top = 2;

From source file SimpleBorder.java

class SimpleBorder implements Border {
    int top;
    int left;
    int bottom;
    int right;
    Color color = null;

From source file OvalBorder.java

public class OvalBorder implements Border {
    protected int ovalWidth = 6;

    protected int ovalHeight = 6;

    protected Color lightColor = Color.white;

From source file FlexBorder.java

public class FlexBorder implements Border {
    public static final int NONE = 0;
    public static final int TOP_LINE = 1;
    public static final int BOTTOM_LINE = 2;
    public static final int RECT = 3;

From source file QandE.StripeBorder.java

public class StripeBorder implements Border {
    private static final int HEIGHT = 15;

    public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
        g.setColor(Color.RED);