Reputation: 851
Is there a better way to develop Java Swing applications?
SWIXML? JavaFX? Anything else that developers out here have liked and recommend?
Upvotes: 7
Views: 1401
Reputation: 1324228
Another "better way" is through the use of a better Layout Manager:
MigLayout:
an extremely flexible and easy to use Layout Manager that works for both Swing and SWT.
It can do what Table Layout, Form Layout and almost all Swing Layout Managers can with simple to understand String and/or API based coding.
It is targeted to be for manually coded layouts what Matisse/Group Layout is for IDEs.
JPanel panel = new JPanel(new MigLayout());
panel.add(firstNameLabel);
panel.add(firstNameTextField);
panel.add(lastNameLabel, "gap unrelated");
panel.add(lastNameTextField, "wrap");
panel.add(addressLabel);
panel.add(addressTextField, "span, grow");
(source: miglayout.com)
Upvotes: 9
Reputation: 13779
If you like programming in Groovy instead of Java, check out Griffon: http://griffon.codehaus.org/
Upvotes: 2
Reputation: 4928
The Swing Application Framework is a light framework that simplifies the creation and maintaining of small- to medium-sized Java desktop applications. The framework consists of a Java class library that supports constructs for things such as the following:
Here's an article about it.
It's been integrated with Netbeans 6.0 and later.
Upvotes: 1
Reputation: 328594
I like to build the UI (HTML, SWT or Swing) with Groovy. It's just so much more simple with Groovy builders.
Upvotes: 4
Reputation: 1324228
JavaDesktop is a very complete source of information for this kind of question.
Lately, I found (but not used it directly myself) the Flamingo swing component suite impressive.
Especially because it allow to integrate one latest recent UI design: ribbons
(It is not a new way to develop in the sense it is still a classic Swing component, not - for instance - an XML-based swing specification, but I would look at other projects of javadestop for other illustrations to your question)
Upvotes: 5