Allow to add plugins on the south of the account panel above the contact list.

cusax-fix
Yana Stamcheva 16 years ago
parent 8b96fe14a2
commit 0eb6db287f

@ -76,11 +76,6 @@ public class AccountStatusPanel
*/
private final TexturePaint texture;
/**
* Container for plugins.
*/
private final PluginContainer pluginContainer;
/**
* Creates an instance of <tt>AccountStatusPanel</tt> by specifying the
* main window, where this panel is added.
@ -122,9 +117,7 @@ public AccountStatusPanel(MainFrame mainFrame)
TransparentPanel pluginPanel
= new TransparentPanel(new FlowLayout(FlowLayout.RIGHT));
pluginContainer = new PluginContainer(
new TransparentPanel(new FlowLayout(FlowLayout.RIGHT)),
Container.CONTAINER_MAIN_TOOL_BAR);
new PluginContainer(pluginPanel, Container.CONTAINER_MAIN_TOOL_BAR);
statusToolsPanel.add(pluginPanel, BorderLayout.EAST);
@ -136,6 +129,15 @@ public AccountStatusPanel(MainFrame mainFrame)
this.add(accountImageLabel, BorderLayout.WEST);
this.add(rightPanel, BorderLayout.CENTER);
TransparentPanel southPluginPanel
= new TransparentPanel(new BorderLayout());
new PluginContainer(
new TransparentPanel(new BorderLayout()),
Container.CONTAINER_ACCOUNT_SOUTH);
this.add(southPluginPanel, BorderLayout.SOUTH);
// texture
BufferedImage bgImage
= ImageLoader.getImage(ImageLoader.WINDOW_TITLE_BAR_BG);

@ -46,7 +46,15 @@ public class Container
* Main application window main toolbar container.
*/
public static final Container CONTAINER_MAIN_TOOL_BAR
= new Container("CONTAINER_MAIN_TOOL_BAR");
= new Container("CONTAINER_MAIN_TOOL_BAR");
/**
* The container added on the south of the account panel above the
* contact list.
*/
public static final Container CONTAINER_ACCOUNT_SOUTH
= new Container("CONTAINER_ACCOUNT_SOUTH");
/**
* Main application window main tabbedpane container.
*/

Loading…
Cancel
Save