wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes IDEA:  Distribute GUI Project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "IDEA:  Distribute GUI Project" Watch "IDEA:  Distribute GUI Project" New topic
Author

IDEA: Distribute GUI Project

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.


GenRocket - Experts at Building Test Data
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
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.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
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.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IDEA: Distribute GUI Project