Skip to content

Commit 2a2ed1f

Browse files
committed
Update dependencies
1 parent 92c3396 commit 2a2ed1f

File tree

25 files changed

+47
-46
lines changed

25 files changed

+47
-46
lines changed

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = 3.7.17
1+
version = 3.9.4
22

33
runner.dialect = scala213
44

cell_factories/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name := "Cell Factories"
22
organization := "scalafx.org"
33
version := "1.0.0"
44

5-
scalaVersion := "2.13.12"
5+
scalaVersion := "2.13.16"
66

77
scalacOptions ++= Seq("-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
88

99
// Add dependency on ScalaFX library
10-
libraryDependencies += "org.scalafx" %% "scalafx" % "21.0.0-R32"
10+
libraryDependencies += "org.scalafx" %% "scalafx" % "24.0.0-R35"
1111

1212
resolvers ++= Opts.resolver.sonatypeOssSnapshots
1313

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sbt.version=1.9.7
1+
sbt.version=1.10.11
22

cell_factories/src/main/scala/cell_factories/ColorCharactersInTableView.scala

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ object ColorCharactersInTableView extends JFXApp3 {
2121
new Person("Peggy", "Sue"),
2222
new Person("Rocky", "Raccoon"),
2323
new Person("Bill", "Bungalow")
24-
)
24+
)
2525

2626
/** Render string as colored text */
2727
def createColorText(name: String): Node = {
@@ -30,7 +30,7 @@ object ColorCharactersInTableView extends JFXApp3 {
3030
case 'r' => Color.Red
3131
case 'g' => Color.Green
3232
case 'b' => Color.Blue
33-
case _ => Color.Black
33+
case _ => Color.Black
3434
}
3535
new Text {
3636
text = char.toString
@@ -57,17 +57,18 @@ object ColorCharactersInTableView extends JFXApp3 {
5757
}
5858

5959
override def start(): Unit = {
60+
val tableView = new TableView[Person]() {
61+
columns ++= Seq(firstNameColumn, lastNameColumn)
62+
}
6063
stage = new JFXApp3.PrimaryStage {
6164
title = "Table View with Color Text - ScalaFX way"
6265
scene = new Scene {
6366
root = new VBox {
64-
children = Seq(
65-
new TableView[Person](characters) {
66-
columns ++= Seq(firstNameColumn, lastNameColumn)
67-
}
68-
)
67+
children = Seq(tableView)
6968
}
7069
}
7170
}
71+
72+
tableView.items = characters
7273
}
7374
}

event-filters/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name := "Event Filters"
22
organization := "scalafx.org"
33
version := "1.0.8"
44

5-
scalaVersion := "2.13.12"
5+
scalaVersion := "2.13.16"
66

77
scalacOptions ++= Seq("-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
88

9-
libraryDependencies += "org.scalafx" %% "scalafx" % "21.0.0-R32"
9+
libraryDependencies += "org.scalafx" %% "scalafx" % "24.0.0-R35"
1010

1111
resolvers ++= Opts.resolver.sonatypeOssSnapshots
1212

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.9.7
1+
sbt.version=1.10.11

hello-sbt/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ name := "Hello SBT"
55
version := "1.0.7"
66

77
// Version of Scala used by the project
8-
scalaVersion := "2.13.12"
8+
scalaVersion := "2.13.16"
99

1010
scalacOptions ++= Seq("-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
1111

1212
// Add dependency on ScalaFX library
13-
libraryDependencies += "org.scalafx" %% "scalafx" % "21.0.0-R32"
13+
libraryDependencies += "org.scalafx" %% "scalafx" % "24.0.0-R35"
1414

1515
resolvers ++= Opts.resolver.sonatypeOssSnapshots
1616

hello-sbt/project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.9.7
1+
sbt.version=1.10.11

molecule-3d/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ name := "Molecule 3D"
22
organization := "scalafx.org"
33
version := "0.2.6"
44

5-
scalaVersion := "2.13.12"
5+
scalaVersion := "2.13.16"
66

77
resolvers += Resolver.sonatypeRepo("snapshots")
88

99
scalacOptions ++= Seq("-unchecked", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
1010

11-
libraryDependencies += "org.scalafx" %% "scalafx" % "21.0.0-R32"
11+
libraryDependencies += "org.scalafx" %% "scalafx" % "24.0.0-R35"
1212

1313
// Fork a new JVM for 'run' and 'test:run', to avoid JavaFX double initialization problems
1414
fork := true
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.9.7
1+
sbt.version=1.10.11

0 commit comments

Comments
 (0)