| |
e749. Setting the Gap Size Between the Label and Icon in a JButton Component
// To create a button with an icon, see e743 Creating a JButton Component
// Get gap size; default is 4
int gapSize = button.getIconTextGap();
// Set gap size
button.setIconTextGap(8);
e743.
Creating a JButton Component
e744.
Changing the Label of a JButton Component
e745.
Creating a Multiline Label for a JButton Component
e746.
Adding an Icon to a JButton Component
e747.
Moving the Icon in a JButton Component
e748.
Moving the Label/Icon Pair in a JButton Component
e750.
Adding a Disabled Icon to a JButton Component
e751.
Adding a Rollover and Pressed Icon to a JButton Component
© 2002 Addison-Wesley.
|