Questions tagged [scalafx]

ScalaFX is a Scala user interface (UI) domain-specific language (DSL) built on top of JavaFX. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX are supported.

ScalaFX is a Scala user interface (UI) domain-specific language (DSL) built on top of JavaFX. This means that every ScalaFX application is also a valid Scala application. By extension it supports full interoperability with Java and can run anywhere the Java Virtual Machine (JVM) and JavaFX are supported.

214 questions
0
votes
6 answers

ScalaFX: How to couple 2 figures rotationally in perspective

A basic rotating question - How you can couple 2 figures (a box/cube with a sphere in it ANYWHERE in the cube, BUT in the center) so that these 2 are coupled ROTATIONALLY (that is why I don't want the sphere to be in the center of the cube) IN…
zarpetkov
  • 9
  • 2
0
votes
0 answers

questions about AnchorPane

I am now learning Javafx and Scalafx, I have got a class called Room, which holds name:String, width:Long, length:Long and a position:Insets and in this class there is a method render which returns a scalafx.scene.Node def render()={ val…
Terry
  • 21
  • 1
  • 3
0
votes
2 answers

How to color each character differently in a TableView TableCell

I have a tableview and in one column I would like to be able to indvidually color each character of the string. Apparently, textFill only works on the entire cell, as I did try splitting the string by characters first. I've included the code below…
TrustNoOne
  • 585
  • 1
  • 5
  • 15
0
votes
1 answer

Scala with ScalaFx: invalid or missing dependency

After I switched from SDK Version scala-SDK-4.4.1-vfinal-2.11-win32.win32.x86_64 to Version scala-SDK-4.5.0-vfinal-2.11-win32.win32.x86_64 I´m getting some error messages in eclipse: Full error message: missing or invalid dependency detected…
Fabman22
  • 183
  • 12
0
votes
1 answer

Erroneous data in some cells of tableview

New to scala and scalafx and having an issue with a tableview in a simple stock quote app [note: no prior javafx experience except in ways it is similar to things Android] Problem: (see image) erroneous data displayed in change column where there…
TrustNoOne
  • 585
  • 1
  • 5
  • 15
0
votes
1 answer

Notifying ObservableBuffer listeners on content's member change

I have an ObservableBuffer[T] that contains a number of elements and ComboBox[T] which displays these elements most likely using it's toString() method. Class T (for now let's assume it is mutable) has a name field which is changed during execution…
ZbyszekKr
  • 512
  • 4
  • 15
0
votes
1 answer

How do I handle exiting ScalaFX

I use java.util.Timer to run a method every 10th of a second. I have to cancel this before exiting ScalaFX. How do I accomplish this?
J. Busk
  • 17
  • 4
0
votes
0 answers

scalaFX style sheet failing quietly

I am just learning scalaFX/javaFX after years with swing and months with scalaSwing. ScalaSwing had a few little issues that I felt weren't worth dealing with given the opportunity to update to something current. It Doesn't surprise me that I am…
Bday
  • 1,005
  • 7
  • 13
0
votes
1 answer

Can't get example code on www.scalafx.org to run

I'm trying to get the example code (HelloScalaFX) on http://www.scalafx.org/ to run. However, the line fill <== when (hover) choose Color.Green otherwise Color.Red give me the error overloaded method value…
David Matuszek
  • 1,263
  • 1
  • 16
  • 30
0
votes
1 answer

ScalaFXML Application: Add Components to Form at Runtime on CheckBox Click

I am creating a order management system for a family member. I need the application to be able to update itself at runtime when the user selects whether the order is for cakes, cookies, cupcakes or other. What I have been trying as a solution is…
Patrick S.
  • 275
  • 1
  • 5
  • 19
0
votes
1 answer

ScalaFXML Application Cannot Find Controller

I have a ScalaFX application and I am using FXML for my views. I am having a terrible time connecting the views to the controllers. I cannot find much information online except examples on Github and it doesn't work even when I try to mimic how they…
Patrick S.
  • 275
  • 1
  • 5
  • 19
0
votes
1 answer

ScalaFX plotting multiple shapes

I have the following code: import scalafx.application.JFXApp import scalafx.scene.Scene import scalafx.scene.layout.HBox import scalafx.scene.paint.Color._ import scalafx.scene.shape.Rectangle object Main extends JFXApp { stage = new…
Froom2
  • 1,269
  • 2
  • 13
  • 26
0
votes
1 answer

ScalaFX/JavaFX: How can I change the overrun style of a ComboBox?

I need to set the overrun style of the selected item. To set the overrun style, as far as I understand, I need to access the buttonCell (which is of type ObjectProperty[javafx.scene.control.ListCell[T]]). Hence I wrote val fileComboBox = new…
ideaboxer
  • 3,863
  • 8
  • 43
  • 62
0
votes
1 answer

ScalaFX/JavaFX 8 get nearest Nodes

Currently experimenting with ScalaFX a bit. Imagine the following: I have some nodes and they are connected by some edges. Now when I click the mousebutton I want to select the ones next to the mouse click, e.g. if I click between 1 and 2, I want…
user4063815
0
votes
1 answer

How to get the mouse "x" and "y" when I click in scala

Hello I'd like to know if there's a way to get the mouse x and y pos when I click, currently I have a button that when clicked it shows up a textbox, and after you're done with the input youre prompted to click on a gridpane and it will draw a…
Mavi
  • 33
  • 7