private void initGUI() {
    this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
    optimizing = new InfoPanel(I18n.get("optimizeConsolePanel.optimizingNow"), "false");
    this.add(optimizing);
    totalOptimizeCount = new InfoPanel(I18n.get("optimizeConsolePanel.optimizeCount"), "0");
    this.add(totalOptimizeCount);
    lastOptimizationTime = new InfoPanel(I18n.get("optimizeConsolePanel.lastOptimizeTime"), "0");
    this.add(lastOptimizationTime);
    totalOptimizationTime = new InfoPanel(I18n.get("optimizeConsolePanel.totalOptimizeTime"), "0");
    this.add(totalOptimizationTime);
    optimizationTimeAverage =
        new InfoPanel(I18n.get("optimizeConsolePanel.optimizationTimeAverage"), "0");
    this.add(optimizationTimeAverage);
    lastOptimizationResult =
        new InfoPanel(I18n.get("optimizeConsolePanel.lastOptimizationResult"), "-");
    this.add(lastOptimizationResult);
    totalOptimizeErrors =
        new InfoPanel(I18n.get("optimizeConsolePanel.totalOptimizationErrors"), "0");
    this.add(totalOptimizeErrors);

    this.add(Box.createVerticalGlue());

    optimizeButton =
        new SolrConnectedButton(
            I18n.get("optimizeConsolePanel.optimizeNow"),
            I18n.get("optimizeConsolePanel.pingFailing"),
            this.createPingOperation());
    this.add(optimizeButton);
    optimizeButton.setAlignmentX(0.5f);
    optimizeButton.addActionListener(
        new ActionListener() {

          @Override
          public void actionPerformed(ActionEvent e) {
            controller.onOptimize();
          }
        });
  }
 private void idle() {
   optimizing.setValue("false");
   optimizeButton.setEnabled(true);
 }
 private void optimizing() {
   optimizing.setValue("true");
   optimizeButton.setEnabled(false);
 }