net.alantea.swing.ribbon.RibbonTab Maven / Gradle / Ivy
package net.alantea.swing.ribbon;
import java.awt.FlowLayout;
import net.alantea.swing.pageelements.RedrawablePanel;
import net.alantea.utils.MultiMessages;
@SuppressWarnings("serial")
public class RibbonTab extends RedrawablePanel
{
public RibbonTab(Ribbon parent, String key, String title)
{
this(parent, key, title, null);
}
public RibbonTab(Ribbon parent, String key, String title, Runnable runnable)
{
super();
parent.addTab(key, MultiMessages.get(title), null, this, runnable);
setLayout(new FlowLayout(FlowLayout.LEADING));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy