code: private static void toggleTimeOneButtonClicked() {
          timePicker1.togglePopup();
          String message = "The timePicker1 menu popup is ";
          message += (timePicker1.isPopupOpen()) ? "open!" : "closed!";
          panel.messageTextArea.setText(message);
      }
docs: toggleTimeOneButtonClicked, This toggles (opens or closes) time picker one.