Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import javax.swing.JButton;

public class Main {
    public static void main(String[] argv) throws Exception {
        JButton button = new JButton();
        // Get gap size; default is 4
        int gapSize = button.getIconTextGap();

        // Set gap size
        button.setIconTextGap(8);
    }
}