why getBorderInsets method is not static?

71 views Asked by At

Why is the following method is not static?

public Insets getBorderInsets(Component c)

It returns the insets of the supplied Component. But since it is not static I need to create a border object to call this. What is the point? Am I missing something?

The way it is supposed to be used:

Border  b = BorderFactory.createRaisedBevelBorder();
Inset i = b.getBoderInsets(someComponent);
0

There are 0 answers