alert

A sample Scala/JavaFX application

As a brief note to self, here’s an example JavaFX application written in Scala:

object MainWindow {
    def main(args: Array[String]) {
        Application.launch(classOf[MainWindow], args: _*)
    }
}

class MainWindow extends Application  {
    override def start(stage: Stage) {
        val borderPane = new MainBorderPane
        val scene = new Scene(borderPane, 600, 400)
        scene.getStylesheets.add(getClass.getResource("pizza.css").toExternalForm)
        stage.setScene(scene)
        stage.setTitle("Al’s Pizza")
        stage.show
    }
}

Long, uninterrupted, alert practice ...

“Long, uninterrupted, alert practice is the firm foundation for restraining the fluctuations of the consciousness.”

~ Patanjali (via Iyengar)

How to delete JavaFX TableView rows when a Button is pressed alvin January 16, 2018 - 6:04pm

As a note to self, I just used this code to delete rows from a JavaFX TableView in a Scala application:

How to turn off (disable) iOS AMBER alerts

After a long day of work I had climbed into bed, looking for a good night’s sleep, when suddenly my iPhone began making some bizarre, very unexpected noise. When I picked up the phone and looked at it, I saw an AMBER alert in Oklahoma had triggered an alert on my iPhone.