Skip to content

Commit

Permalink
Move title and icons properties to the direct scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsacha committed Jan 29, 2020
1 parent 8c9f789 commit e777f7b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011-2018, ScalaFX Project
* Copyright (c) 2011-2020, ScalaFX Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -43,9 +43,9 @@ import scala.language.implicitConversions
object StopWatchApp extends JFXApp {

stage = new PrimaryStage {
icons += new Image("/org/scalafx/extras/sfx.png")
title = "StopWatch"
scene = new Scene {
icons += new Image("/org/scalafx/extras/sfx.png")
title = "StopWatch"
root = new BorderPane {
center = new StopWatch().view
}
Expand Down

0 comments on commit e777f7b

Please sign in to comment.