Re: About Swing Buttons which automatically takes size of its text.
Posted By:
niklas_gustafsson
Posted On:
Thursday, October 14, 2004 02:21 AM
Try.
Insets insets = new Insets(0,0,0,0);
int bHeight = 24;
int bWidth = 24;
JButton butt = null;
for (int i = 0; i
{
butt = (JButton)comps[i];
butt.setMargin(insets);
butt.setSize(bWidth,bHeight);
}