クラス SolidMenuItem

すべての実装されたインタフェース:
ImageObserver, ItemSelectable, MenuContainer, Serializable, Accessible, MenuElement, SwingConstants

public class SolidMenuItem extends JMenuItem
JMenuItem which can do the following - properly place shortcut keys on menu items - Set padding for menu items - adjust the text position of menu items
作成者:
Tom Misawa (riversun.org@gmail.com)
関連項目:
  • コンストラクタの詳細

    • SolidMenuItem

      public SolidMenuItem(SolidMenuItem.Condition creationCondition)
      Constructor for SolidMenuItem. Initializes the menu item with the given condition.
      パラメータ:
      creationCondition - the condition specifying the layout and style properties of the menu item
  • メソッドの詳細

    • paintComponent

      protected void paintComponent(Graphics g)
      Paints the component. Overridden to handle custom background and antialiasing.
      オーバーライド:
      paintComponent クラス内 JComponent
      パラメータ:
      g - the Graphics object to protect
    • getPreferredSize

      public Dimension getPreferredSize()
      オーバーライド:
      getPreferredSize クラス内 JComponent