summaryrefslogtreecommitdiff
path: root/javax/swing/border/CompoundBorder.java
blob: 5e5dbc7ce99ef9fbcf5085ae7286ffdfb8ee71b5 (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
27
28
29
30
31
32
33
package javax.swing.border;

import java.awt.*;

public class CompoundBorder extends AbstractBorder
{
    
    public Insets getBorderInsets(Component  c,
				  Insets s)
    {
	if (s == null)
	    s = new Insets();
	
	s.left = s.right = s.top = s.bottom = 5;
	
	return s;
    }
    
    public boolean isBorderOpaque()
    {
	return false;
    }
    
    public void paintBorder(Component  c, 
			    Graphics  g,
			    int  x,
			    int  y,
			    int  width,
			    int  height)
    {
    }
}