Re: set compact font line on button
- From: Ray Ma <Wenj.Ma@xxxxxxxxx>
- Date: Thu, 19 Jul 2007 20:41:37 -0000
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/
.
- References:
- set compact font line on button
- From: Wenj.Ma@xxxxxxxxx
- Re: set compact font line on button
- From: Knute Johnson
- set compact font line on button
- Prev by Date: Re: to make text compact on JButton
- Next by Date: how to add listener to listen other component changes
- Previous by thread: Re: set compact font line on button
- Next by thread: to make text compact on JButton
- Index(es):