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
0 answers

Check for event during event

What I'd like to achieve is the following: When the left mouse-button is pressed AND the mouse is moved (while the mouse button is still pressed!) I would like to invoke a certain method. Basically I'd like to be able to move around the canvas, just…
user4063815
0
votes
1 answer

ScalaFX and FXML example doesnt seem to work

I am following this example here object DataEditor extends JFXApp { val resource = getClass.getResource("MainWindowView.FXML") if(resource == null){ throw new IOException("Cannot load Resource") } val root:jfxs.Parent =…
0
votes
1 answer

TextArea Not growing when expanding scene in ScalaFx

I have been trying to convert a school project I originally written in Java with Swing to Scala with ScalaFX. The GUI is basically a top bar with Buttons and a search input, while the bottom part of the bar is a TextArea that will display the output…
0
votes
1 answer

Make progress bar visible when query is loading. ScalaFx

I have a login window view, and I want to display a progress bar when I click/press enter button while slick is querying the password. If I change the visible attribute for the progress bar at the button actionEvent it doesn´t appear until after the…
mimo
  • 33
  • 3
0
votes
0 answers

import scalafx.Includes._ causes error when included to file

I recently installed the latest version of Scala IDE from the link provided on its website for Eclipse, and imported scalafx version 2.22 jar and then installed SBT (the latest version). Then I was trying out the following code from scalafx.org…
atjua
  • 541
  • 1
  • 9
  • 18
0
votes
1 answer

Bidirectional binding fails to bind

Here is an example from Pro ScalaFX: package proscalafx.ch03 import scalafx.beans.property.StringProperty object BidirectionalBindingExample extends App { println("Constructing two StringProperty objects.") val prop1 = new StringProperty("") …
qed
  • 22,298
  • 21
  • 125
  • 196
0
votes
1 answer

Laziness in ScalaFX nodes

Here is an example from Pro ScalaFX: package proscalafx.ch02.stagecoach import scalafx.Includes._ import scalafx.application.JFXApp import scalafx.application.JFXApp.PrimaryStage import scalafx.beans.property.StringProperty import…
qed
  • 22,298
  • 21
  • 125
  • 196
0
votes
1 answer

Drilling down and climbing up a piechart in scalafx

Here is the code: package scalafx.ensemble.example.charts import javafx.scene.chart.PieChart.Data import scala.util.Random import scalafx.application.JFXApp import scalafx.scene.Scene import scalafx.Includes._ import…
qed
  • 22,298
  • 21
  • 125
  • 196
0
votes
1 answer

How to signal/notify super-controller of change in sub-controller?

In JavaFX, how do you model the following: I show a List of Customers in a Scene. On the left side there is a table on the right side (contentPane) the currently select customer's details are shown. (Relevant part of)…
user4063815
0
votes
1 answer

How to iterate a tableView in Javafx or Scalafx?

I am quite new at Scala. I use a tableView that has the custom type "Constraint", and I need to iterate it by the row. Here is where I have gotten so far: class ConstraintView(val stage : Stage) { var obs :…
Achref
  • 89
  • 1
  • 2
  • 6
0
votes
1 answer

In ScalaFX how to get which table row is under the mouse?

I have a tableView of person. every time i pass the mouse over a person row, i want to show some information about it . ( the information can be showed in a textArea for example). Thanx
Achref
  • 89
  • 1
  • 2
  • 6
0
votes
1 answer

ScalaFx: Bidirectional Binding with converter

JavaFx has Bindings.bindBidirectional(p1,p2,converter) for binding properties with a converter. What is the approach in ScalaFx ? I only know that you can bind properties via prop2 <==> prop1 but how to include a converter? Thanks.
Marco
  • 2,189
  • 5
  • 25
  • 44
0
votes
1 answer

How do I configure scalafx

I wish to try out scalafx targeting javafx 8 using scala 2.11.x on the latest version of Intellij. I have downloaded the most recent version of scalafx (scalafx_2.11-8.0.40-R8). To use JavaFx 8 I need JDK 8 however scala 2.11.x says the…
yorkville
  • 87
  • 4
0
votes
1 answer

How to use CheckBoxListCell in ScalaFX?

I am trying to make a list of checkBox with scalaFX. With some research i found the CheckBoxListCell Component to resolve this problem. But i didn't find a a good example with scalaFX ( there is only with javaFX). Please any help ? Thanx
Achref
  • 89
  • 1
  • 2
  • 6
0
votes
2 answers

JavaFX CSS not working

I am having trouble with this sample not styling the background borderpane green. The css has NO effect at all no matter how much I tweak it. My code: StackoverflowQuestion.scala import scalafx.application.JFXApp import…
J Atkin
  • 3,080
  • 2
  • 19
  • 33