Solved

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

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This video teaches viewers about errors in exception handling.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now