Java Swing Menu Item getMenuItemBorder()

Here you can find the source of getMenuItemBorder()

Description

get Menu Item Border

License

Apache License

Declaration

public static Border getMenuItemBorder() 

Method Source Code

//package com.java2s;
/*//from  w w w  . jav a 2s .  c o  m
 *    Copyright 2011-2012 University of Toronto
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

import javax.swing.border.Border;
import javax.swing.border.EmptyBorder;

public class Main {
    public static Border getMenuItemBorder() {
        return new EmptyBorder(1, 10, 1, 10);
    }
}

Related

  1. faqMenuItem()
  2. findMenuItem(Container container, String[] path)
  3. getExitMenuItem()
  4. getMenuItem(Container container, Action action)
  5. getMenuItem(Container owner, String text)
  6. getMenuItemDisabledForegroundObject()
  7. getMenuItemParent()
  8. getResetAppSettingsMenuItem()
  9. getSynthContext(final MenuItemUI ui, final JComponent item)