Solved

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

Posted on 2012-04-07
2
2,041 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
why cannot we forward request once the response is committed 2 42
servlet example 11 40
SHA2 certs for IIS AND Java? 2 82
how to see all occupied ports on windows 10 laptop 15 64
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…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

776 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