Is there any way to outsource the generated Java source code from the actual class (the frame or panel class) into an XML file (for example)?
I do not like this messy Swing code in my GUI objects; it makes my class huge and unreadable.
I know that the GUI Builder which is implemented into the IntelliJ IDEA can do that (see http://www.jetbrains.com/idea/features/gui_builder.html).
GUI Builder (from Google, formerly Instantiations) always generate Java code. That is actually the primary idea of the designer 🙂
There are many things you can do using Java as the implementation language that cannot be done with XML or other static specification languages.
EDIT: You can also look at XWT – XML Windowing Toolkit – though I don’t whether it works under Eclipse 3 or “just” Eclipse 4…