All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alee.laf.menu.MenuBarPainter Maven / Gradle / Ivy

Go to download

WebLaf is a Java Swing Look and Feel and extended components library for cross-platform applications

There is a newer version: 2.2.1
Show newest version
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