Example usage for javax.swing JMenuItem setMargin

List of usage examples for javax.swing JMenuItem setMargin

Introduction

In this page you can find the example usage for javax.swing JMenuItem setMargin.

Prototype

@BeanProperty(visualUpdate = true, description = "The space between the button's border and the label.")
public void setMargin(Insets m) 

Source Link

Document

Sets space for margin between the button's border and the label.

Usage

From source file:Main.java

public static void setUpMenuEntries(JMenuItem item) {
    item.setMargin(new Insets(5, 20, 50, 20));
    item.setFont(new Font(APP_FONT, Font.PLAIN, 20));
}