All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.maizegenetics.gui.AlertUtils.kt Maven / Gradle / Ivy

Go to download

TASSEL 6 is a software package to evaluate traits association. Feature Tables are at the heart of the package where, a feature is a range of positions or a single position. Row in the that table are taxon.

There is a newer version: 6.0.1
Show newest version
@file:JvmName("AlertUtils")

package net.maizegenetics.gui

import javafx.application.Platform
import javafx.scene.control.Alert
import javafx.scene.control.ButtonType

/**
 * @author Terry Casstevens
 * Created November 03, 2018
 */

fun showError(message: String?) {
    if (message == null) return
    Platform.runLater {
        val alert = Alert(Alert.AlertType.ERROR, message, ButtonType.OK)
        alert.showAndWait()
    }
}

fun showWarn(message: String?) {
    if (message == null) return
    Platform.runLater {
        val alert = Alert(Alert.AlertType.WARNING, message, ButtonType.OK)
        alert.showAndWait()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy