Solved

Generate and view /edit Swing GUI source code in UI Designer, IntelliJ Idea IDE

Posted on 2012-04-07
2
2,061 Views
Last Modified: 2012-06-21
I just decided to switch to IntelliJ Idea from oracle JDeveloper, because JDeveloper had a
tendency to run out of memory with larger Java programs and crash my computer. IntelliJ idea has a better reputation, used by large companies.

I was going to do my first from-scratch GUI application with intelliJ Idea UI Designer,  and to my shock, as default the form is not saved into Java code, it is saved into some XML file.
Upon compiling the program will create the appropriate byte code from the XML file.
So the Swing GUI Java format code is essentially hidden from the user / not used in creating the class file.

I have no doubt about that it works, but I want to see a regular Swing code listing to the form, that is viewable / editable, to have full control of the structure of my program, including GUI. I am quite used to Swing code, I don't need to be 'rescued' from it.

Luckily I found a note in the documentation:

"There is also an option to generate Java source code instead of using the byte-code instrumentation approach. "

I just cannot find HOW this can be done.

Can you help me with how to switch to Java code instead of XML-based form files?
Idea-UIDesigner.JPG
0
Comment
Question by:AttilaB
2 Comments
 
LVL 3

Accepted Solution

by:
fjocke earned 500 total points
ID: 37820211
This page will tell you how todo all that :)

http://www.formdev.com/jformdesigner/doc/ides/intellij-idea/

Good luck!
0
 

Author Closing Comment

by:AttilaB
ID: 37820271
Thank you.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question