Re: set compact font line on button



Yes, You are right.
It works. thanks.


You can always adjust the size of the font. AbstractButton has a method
setMargin(), from the docs;

"public void setMargin(Insets m)

Sets space for margin between the button's border and the label.
Setting to null will cause the button to use the default margin. The
button's default Border object will use this value to create the proper
margin. However, if a non-default border is set on the button, it is
that Border object's responsibility to create the appropriate margin
space (else this property will effectively be ignored).

Parameters:
m - the space between the border and the label"

--

Knute Johnson
email s/nospam/knute/


.