com.alee.laf.menu.MenuBarPainter Maven / Gradle / Ivy
package com.alee.laf.menu;
import com.alee.extended.layout.ToolbarLayout;
import com.alee.laf.menu.IMenuBarPainter;
import com.alee.laf.menu.WebMenuBarUI;
import com.alee.painter.decoration.AbstractDecorationPainter;
import com.alee.painter.decoration.IDecoration;
import javax.swing.*;
/**
* @author Alexandr Zernov
*/
public class MenuBarPainter>
extends AbstractDecorationPainter implements IMenuBarPainter
{
@Override
public void install ( final E c, final U ui )
{
super.install ( c, ui );
// Installing custom layout for the menu bar
component.setLayout ( new ToolbarLayout ( 0 ) );
}
}