com.alee.laf.menu.MenuBarPainter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of weblaf-ui Show documentation
Show all versions of weblaf-ui Show documentation
WebLaf is a Java Swing Look and Feel and extended components library for cross-platform applications
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 ) );
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy