?
Solved

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

Posted on 2012-04-07
2
Medium Priority
?
2,170 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
fjocke earned 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month11 days, 20 hours left to enroll

752 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