Solved

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

Posted on 2012-04-07
2
2,070 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

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 …
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to implement Singleton Design Pattern in Java.

679 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