java - Change padding/inset of image within JButton -
how make distance between icon , text less/smaller?

use seticontextgap
to reduce gap 1 pixel:
button.seticontextgap(button.geticontextgap() - 1); to increase 1 pixel:
button.seticontextgap(button.geticontextgap() + 1);
Comments
Post a Comment