简体   繁体   English

如何为Clojure使用Java GUI设计器?

[英]How to use a Java GUI designer for Clojure?

I'm LOVING coding with Clojure. 我喜欢用Clojure编码。 It's a great language! 这是一门很棒的语言! But until the moment I haven't found any GUI designer for Clojure (with drag and drop components such as Visual Studio's Form Designer, etc). 但是直到现在我还没有找到Clojure的任何GUI设计器(带有拖放组件,例如Visual Studio的Form Designer等)。 I'm studying programming and my teachers are used to require we do forms. 我正在学习编程,我的老师习惯于要求我们做表格。 Sometimes the forms are very simple, sometimes more complex. 有时形式很简单,有时更复杂。

What I really want to know is: What's the best way to integrate Clojure code within a Java Swing project? 我真正想知道的是: 在Java Swing项目中集成Clojure代码的最佳方法什么? I know all that stuff off using jars from compiled Clojure code, but it doesn't seem the right way to do it (coding Clojure, compiling it than using it in the Java project). 我从编译的Clojure代码中使用jar知道所有这些东西,但这似乎不是正确的方法(编码Clojure,比在Java项目中使用它编译)。

I usually use NetBeans for Java projects and Atom + proto-repl for Clojure. 我通常将NetBeans用于Java项目,将Atom + proto-repl用于Clojure。

Thank you! 谢谢! (and sorry for any English mistake) (对任何英语错误深表歉意)

I use seesaw ( https://github.com/daveray/seesaw/tree/develop ). 我使用跷跷板( https://github.com/daveray/seesaw/tree/develop )。 It is not a GUI designer, only a library/DSL for constructing user interfaces in Clojure build on swing but in clojure, because of REPL, is very easy to develop gui interface interactively (see the tutorial https://gist.github.com/daveray/1441520 ) 它不是GUI设计人员,只是一个库/ DSL可以在Clojure中构建用户界面,而在Clojure中则是基于REPL,因此很容易以交互方式开发gui接口(请参阅教程https://gist.github.com / daveray / 1441520

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM