Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8454847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:07:55+00:00 2026-06-10T12:07:55+00:00

I start to learn Clojure, and I want to try JavaFX for GUI. I

  • 0

I start to learn Clojure, and I want to try JavaFX for GUI. I found this article:http://nailthatbug.net/2011/06/clojure-javafx-2-0-simple-app/
, but I want to start it via repl for fast testing and convenience.

So, for instance, I can write in repl this and see new window:

(defn main-start []
  (doto (JFrame. "Window!")
   (.setSize (java.awt.Dimension. 400 300))
   (.setVisible true)))

Is there any way to do such thing with javafx.application.Application – to see new JavaFX window?

Thx. Andrew.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T12:07:56+00:00Added an answer on June 10, 2026 at 12:07 pm

    Though it’s still in its infancy, I’ve been able to use JavaFx from the REPL using Upshot. The main trick is just to completely ignore Application and create your scene directly. To do this you need only force the runtime to initialize and example of which can be seen at core.clj:69. The other trick is that almost everything you do has to be wrapped in a run-now block to ensure it runs on the JavaFX thread. JavaFX is much more picky about threading than Swing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I start learn Fluent NHibernate. I am using this tutorial http://www.d80.co.uk/post/2011/02/20/Linq-to-NHibernate-Tutorial.aspx . Here
If I want to learn Clojure, should I start by learning Scheme or Common
I'm a little bit confused. I want to start learn Flex3 with Eclipse and
I'm learned php as functional and procedure language. Right now try to start learn
I am to learn OpenCL and wanted to start out easy. I found and
I start learn EF Fluent API. I have 2 simple POCO classes. public class
I want to start to learn about using webservices, and the best way to
Should an ASP.NET MVC Developer start to learn Silverlight either?
I'm trying to learn go and as a start I wanted to try to
I'm trying to learn Clojure, so I figured a good way to start would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.