Java tutorial
//package com.java2s; import java.awt.Font; import java.awt.Insets; import javax.swing.JMenuItem; public class Main { public static final String APP_FONT = "DejaVu Sans"; public static void setUpMenuEntries(JMenuItem item) { item.setMargin(new Insets(5, 20, 50, 20)); item.setFont(new Font(APP_FONT, Font.PLAIN, 20)); } }