Push sidebar non-tab buttons to bottom

Push sidebar non-tab buttons with custom chrome disabled to bottom.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2019-02-06 00:55:14 +01:00
parent c8a5eed56d
commit 52c0bb92d8

View File

@@ -30,6 +30,7 @@ import java.awt.Component;
import java.awt.Dimension;
import java.util.Map;
import java.util.TreeMap;
import javax.swing.Box;
import javax.swing.JToolBar;
/**
@@ -57,7 +58,6 @@ public class ClientPluginToolbar extends JToolBar
setMinimumSize(new Dimension(TOOLBAR_WIDTH, TOOLBAR_HEIGHT));
setPreferredSize(new Dimension(TOOLBAR_WIDTH, TOOLBAR_HEIGHT));
setMaximumSize(new Dimension(TOOLBAR_WIDTH, Integer.MAX_VALUE));
addSeparator();
}
void addComponent(final NavigationButton button, final Component c)
@@ -86,6 +86,7 @@ public class ClientPluginToolbar extends JToolBar
if (!entry.getKey().isTab() && !isDelimited)
{
isDelimited = true;
add(Box.createVerticalGlue());
addSeparator();
}