This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
How do we wrap up a GUI project so that it will run for everyone? I am confused by the .form files in the sense that something in IDEA parses that XML to create the Java bytecode. But what about outside of IDEA? I know there is a "Generate to source.." plugin, but it blew up on a simple form and doesn't work.
From the IDEA Documentation GUI Designer Output Options: Unlike other Java IDEs you may have used, you have two options for the output: Compiled runtime classes only (default) Java source code By default, GUIs that you create with the GUI Designer generate runtime classes when you compile the project. The intermediate step of Java source code is bypassed (at least from your perspective as a user). You can optionally specify that the compiled classes should be written to the compiler output directory configured for the project (see link below). If you prefer, you can change the GUI Designer's output to be Java source code. Code for the UI components is generated to the class to which each form is bound.
Joined: Jul 18, 2001
Don't quote me on this... but I think that you also need to include the runtime jars for IDEA GUI stuff. They can be found in IDEA_HOME/redist.
Originally posted by Chris Mathews: By default, GUIs that you create with the GUI Designer generate runtime classes when you compile the project. The intermediate step of Java source code is bypassed (at least from your perspective as a user).
Duh. Ok. As for the redist jar files. I don't think you need them. IDEA creates a package with class files for this. I browsed to my classes folder of my project and just ran: java LoginDialog from the command line and it just took off. No classpath anything needed specified. So I'm good to go. Thanks.