src/main/java/seedu/address/ui/PopupOverdueParcelsWindow.java
public void showAndHide () {
        logger.fine("Showing popup window for overdue.");
        dialogStage.show();
        PauseTransition pause = new PauseTransition(Duration.seconds(7));
        pause.setOnFinished(e -> dialogStage.hide());
        pause.play();
    }
/**
     * Shows the parcelsOverduePopup window, and hides the window after 7 seconds.
     * @throws IllegalStateException
     * <ul>
     *     <li>
     *         if this method is called on a thread other than the JavaFX Application Thread.
     *     </li>
     *     <li>
     *         if this method is called during animation or layout processing.
     *     </li>
     *     <li>
     *         if this method is called on the primary stage.
     *     </li>
     *     <li>
     *         if {@code dialogStage} is already showing.
     *     </li>
     * </ul>
     */
Shows the parcelsOverduePopup window, and hides the window after 7 seconds.
@throws IllegalStateException


if this method is called on a thread other than the JavaFX Application Thread.


if this method is called during animation or layout processing.


if this method is called on the primary stage.


if  dialogStage is already showing.
Shows the parcelsOverduePopup window and hides the window after 7 seconds . @throws IllegalStateException if this method is called on a thread other than the JavaFX Application Thread . if this method is called during animation or layout processing . if this method is called on the primary stage . if dialogStage is already showing .
public void showAndHide () {
        logger.fine("Showing popup window for overdue.");
        dialogStage.show();
        PauseTransition pause = new PauseTransition(Duration.seconds(7));
        pause.setOnFinished(e -> dialogStage.hide());
        pause.play();
    }
public void showAndHide ( ) { logger . fine ( "Showing popup window for overdue." ) ; dialogStage . show ( ) ; PauseTransition pause = new PauseTransition ( Duration . seconds ( 7 ) ) ; pause . setOnFinished ( e -> dialogStage . hide ( ) ) ; pause . play ( ) ; }
Shows the parcelsOverduePopup window, and hides the window after 7 seconds.
Shows the parcelsOverduePopup window and hides the window after 7 seconds .