This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

JavaFx and the Kawa REPL


hi

I try to run the following example from kawas website:

~~~~~~~~~~~~
(require 'javafx-defs)
(javafx-application)

(javafx-scene
 title: "Hello Button"
 width: 600 height: 450
 (Button
  text: "Click Me"
  layout-x: 25
  layout-y: 40
  on-action: (lambda (e) (format #t "Event: ~s~%~!" e))))
~~~~~~~~~~~~~
source:
https://www.gnu.org/software/kawa/Building-JavaFX-applications.html


This example works only when running as script, not when loaded from a
repl.

The line makes the repl unresponsive: "(javafx-application)"

Is this normal behaviour or how can I prepare the "stage" in the repl.

Regards
Ben


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]