/* * Copyright 2005 MH-Software-Entwicklung. All rights reserved. * Use is subject to license terms. */ package com.jtattoo.plaf.hifi; import java.awt.*; import javax.swing.*; import javax.swing.plaf.*; import javax.swing.plaf.basic.*; /** * @author Michael Hagen */ public class HiFiMenuBarUI extends BasicMenuBarUI { public static ComponentUI createUI(JComponent c) { return new HiFiMenuBarUI(); } public void installUI(JComponent c) { super.installUI(c); if ((c != null) && (c instanceof JMenuBar)) { ((JMenuBar) c).setBorder(HiFiBorders.getMenuBarBorder()); } } public void paint(Graphics g, JComponent c) { HiFiUtils.fillComponent(g, c); } }