Put adding default compontents into method
@@ -74,9 +74,13 @@ public class StatusBar {
if (disableProgressBar != null && disableProgressBar.equals("true")) {
StatusBar.disable();
}
+ addDefaultComponents();
+ startUpdateThread();
+ }
+
+ private void addDefaultComponents() {
addComponent(new KeanuAnimationComponent());
addComponent(textComponent);
- startUpdateThread();
}
public StatusBar(PrintStream printStream) {
