TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why should JS coders have all the fun?

31 点作者 shahriarhaque将近 15 年前

4 条评论

tomjen3将近 15 年前
I haven't seen anybody write new Swing GUIs like he did in quite some time. First of all, you don't have to declare the listeners on the form class, and you typically would create an anonymous that listens to each component.<p>Second, there is a library called swixml (<a href="http://www.swixml.org/" rel="nofollow">http://www.swixml.org/</a>) which allows you to write the GUI part of the code in a declarative manner and have the library wire the two things together.<p>Both makes it much less of a pita to write GUIs in Java.
评论 #1545622 未加载
DanielRibeiro将近 15 年前
Even in java ecosystem, there are several tools that make gui desing easier: Swing builder in groovy (<a href="http://groovy.codehaus.org/Swing+Builder" rel="nofollow">http://groovy.codehaus.org/Swing+Builder</a>), Scala Swing Dsl (<a href="http://stackoverflow.com/questions/1570175/scala-and-swing-gui-applications" rel="nofollow">http://stackoverflow.com/questions/1570175/scala-and-swing-g...</a>), Cheri for jruby (<a href="http://objectmix.com/ruby/251973-cheri-builder-style-jruby-swing-gui-development.html" rel="nofollow">http://objectmix.com/ruby/251973-cheri-builder-style-jruby-s...</a>), and the list goes on.<p>But it's good to see the effort on Java as well, which can do DSLs as well, even those these are easier on languages that actively support them, such as scala, groovy, ruby, clojure, ...
评论 #1546238 未加载
lsb将近 15 年前
As a Java-for-pay programmer, I'm not extremely experienced in the Java ecosystem; why use Swing to make a GUI instead of using HTML?
评论 #1545685 未加载
heresy将近 15 年前
Ugh, casting.<p>Is the use of generics in Java still not common?