Beginner to Swing

后端 未结 6 1785
难免孤独
难免孤独 2021-01-12 08:33

I\'d like to create a simple Swing app. I\'ve got very, very, very little experience with Swing, however. I want to create a one window app that refreshes every 5 minutes

6条回答
  •  一个人的身影
    2021-01-12 08:57

    Clojure's software transactional memory allows you to set watches on variables; your callback is executed whenever the variable is changed (by anything). This lends itself very well to GUI programming. Your GUI can auto-update whenever anything touches the variable.

    Here is a short but non-trivial example of how to do this, with explanation of what is going on: http://www.paullegato.com/blog/swing-clojure-gui-black-scholes/

提交回复
热议问题