remove Id keyword
[jSite2.git] / src / net / pterodactylus / util / swing / StatusBar.java
index f4dc146..c0e844d 100644 (file)
@@ -37,7 +37,6 @@ import javax.swing.border.EtchedBorder;
  * of a {@link JFrame}’s {@link JFrame#getContentPane() content pane}.
  * 
  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
  */
 /* TODO - make it possible to add further components. */
 public class StatusBar extends JPanel {
@@ -81,6 +80,7 @@ public class StatusBar extends JPanel {
                sideComponents.add(component);
                int newIndex = sideComponents.size();
                add(component, new GridBagConstraints(newIndex, 0, 1, 1, 0.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 2, 0, 0), 0, 0));
+               validate();
        }
 
        /**
@@ -110,6 +110,7 @@ public class StatusBar extends JPanel {
        public void removeSideComponent(int sideComponentIndex) {
                Component sideComponent = sideComponents.remove(sideComponentIndex);
                remove(sideComponent);
+               validate();
        }
 
        /**
@@ -121,6 +122,7 @@ public class StatusBar extends JPanel {
        public void removeSideComponent(Component sideComponent) {
                sideComponents.remove(sideComponent);
                remove(sideComponent);
+               validate();
        }
 
 }